Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP having problem accessing signed .jar

 
Tom Katz
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The application I'm working on sends output strings to an embedded object(applet plugin maybe better way to put it) in another page in differnt frame thru javascript:



Ive recently signed this jar, and have been sending a similar function the strings I need to write to a properties file on the client machine. I was seeing these strings get over to the applet, just fine so the call was working. Once I signed all my jars in the package, I get this exception stack when it tries to write to the file



java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at AppMain.setDisplayValues(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)


Is there someway to give the JSP access to this jar?? I sure hope so, I'm in need of writing a configuration file to the client machine, and this seems to be the best (and first) way I could think of to do it.
 
Tom Katz
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW, the reason I'm thinking its the call from the JSP is because when the exception comes up, I can open up .NET and it will point to that very line of javascript in the JSP.

But the crash stack seems to say that the jar is having permission problems.

A little confused...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic