Security excpetion while calling thrid party IBM AS/400 classes
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   dhananjay_devdikar
Posted On:   Wednesday, February 15, 2006 12:05 PM

Hi, I am trying to call a AS/400 RPG program from JSP using PCML document. I am using Java Application Server. I have copied required IBM jar files (ex jt400.jar etc) to C:SunAppServerlib. I have even added below to server.policy grant codeBase "file:/C:/Sun/AppServer/lib/jt400.jar" { permission java.lang.RuntimePermission "createClassLoader"; }; I keep getting below mentioned error when I call my JSP. Any ideas why??? [#|2006-02-14T11:04:58.125-0500|INFO|sun-appserver- pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=11;| access denied (java.lang.RuntimePermission createClassLoader)|#] [#|2006-02-1   More>>

Hi,

I am trying to call a AS/400 RPG program from JSP using PCML document.

I am using Java Application Server. I have copied required IBM jar files (ex
jt400.jar etc)
to C:SunAppServerlib.

I have even added below to server.policy

grant codeBase "file:/C:/Sun/AppServer/lib/jt400.jar" {
permission java.lang.RuntimePermission "createClassLoader";
};


I keep getting below mentioned error when I call my JSP. Any ideas why???

[#|2006-02-14T11:04:58.125-0500|INFO|sun-appserver-
pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=11;|
access denied (java.lang.RuntimePermission createClassLoader)|#]

[#|2006-02-14T11:04:58.141-0500|WARNING|sun-appserver-
pe8.1_02|javax.enterprise.system.stream.err|_ThreadID=11;|java.security.AccessCo
ntrolException: access denied (java.lang.RuntimePermission createClassLoader)
at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:264)
at java.security.AccessController.checkPermission
(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkCreateClassLoader
(SecurityManager.java:594)
at java.lang.ClassLoader. (ClassLoader.java:225)
at com.ibm.as400.data.SystemClassLoader.
(SystemClassLoader.java:24)
at com.ibm.as400.data.SystemResourceFinder.getLoader3
(SystemResourceFinder.java:150)
at com.ibm.as400.data.SystemResourceFinder.loadResource
(SystemResourceFinder.java:89)
at com.ibm.as400.data.SystemResourceFinder.getSerializedPCMLDocument
(SystemResourceFinder.java:263)
at com.ibm.as400.data.ProgramCallDocument.loadSerializedPcmlDocument
(ProgramCallDocument.java:1303)
at com.ibm.as400.data.ProgramCallDocument.loadPcmlDocument
(ProgramCallDocument.java:1214)
at com.ibm.as400.data.ProgramCallDocument.
(ProgramCallDocument.java:131)

   <<Less
About | Sitemap | Contact