• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Permission for getResourceAsStream call on WebSphere

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic