WE are getting an .AccessControlException for a getResourceAsStream call in a class in a jar file onm WebSphere. The error is a standard file.io.FilePermission but it occurs only on this call. All the jars have read access already granted.
A dump indicates that the error is occurring at the getResourceAsStream call in the class "com.chengror.common.Environment".
Can anyone help ?
Below is the relevant part of the error stack:
[25-3-08 23:31:24:906 CET] 0000001b SecurityManag W SECJ0314W: Current
Java 2 Security policy reported a potential violation of Java 2 Security Permission. Please refer to InfoCenter for further information.
Permission:
\appl\xxx.ear.ear\YbCommon.jar : Access denied (java.io.FilePermission \appl\xxx.ear.ear\YbCommon.jar read)
Code:
com.chengror.common.Environment in {file:/appl/xxx.ear.ear/YbCommon.jar}
Stack Trace:
java.security.AccessControlException: Access denied (java.io.FilePermission \appl\xxx.ear.ear\YbCommon.jar read)
at java.security.AccessController.checkPermission(AccessController.java:108)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:548)
etc. etc.