aspose file tools*
The moose likes Security and the fly likes JSP having problem accessing signed .jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "JSP having problem accessing signed .jar" Watch "JSP having problem accessing signed .jar" New topic
Author

JSP having problem accessing signed .jar

Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
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

Joined: Aug 19, 2002
Posts: 169
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP having problem accessing signed .jar