GeeCON Prague 2014*
The moose likes JNLP and Web Start and the fly likes permission problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "permission problem" Watch "permission problem" New topic
Author

permission problem

mickey hendrix
Greenhorn

Joined: May 08, 2005
Posts: 19
Hello to everybody....
I have a problem in the client when I download theejb stubs class and when I try to makethe lookup I receive the followException:

weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Failed to generate class for irma.ejb.serviceSessionManager.ServiceSessionManager_b1engw_EOImpl_813_WLStub ] - with nested exception:
[java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)]
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:814)
at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:797)
at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)
at weblogic.rmi.utils.io.RemoteObjectReplacer.resolveObject(RemoteObjectReplacer.java:2


I have resolved the problem adding the propery line regerding the "getClassLoader" in the java.policy file under the jre installation dir but I would want to resolve the problem in aother way without modify any file......
Is this possible,perhaps modifing the main source code or the sign jar parameter?
Can anyone help me?
Cristian Negresco
Ranch Hand

Joined: Sep 15, 2001
Posts: 182
Hi,

This might help (from Sun's developer guide, http://java.sun.com/products/javawebstart/docs/developersguide.html):

"An application can request full access to a client system when all its JAR
files are signed by including the following settings in the JNLP file:

<security>
<all-permissions/>
</security>
"

BR,
Cristian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: permission problem