File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

permission problem

 
mickey hendrix
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic