Results 1 to 2 of 2
  1. #1
    errodr is offline Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Exclamation Why is my signed applet still running into permissions problems?

    I have a signed applet that performs a JNDI lookup on a Weblogic 10.3.5 data source.

    When I try to run the applet from the browser I get this exception:
    Java Code:
    java.lang.ExceptionInInitializerError
    	at weblogic.security.service.SecurityManager.getKernelIdentity(SecurityManager.java:164)
    	at weblogic.security.service.GetKernelIdentityAction.run(GetKernelIdentityAction.java:25)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at weblogic.jndi.WLSJNDIEnvironmentImpl.<clinit>(WLSJNDIEnvironmentImpl.java:56)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at weblogic.jndi.internal.JNDIEnvironment.getJNDIEnvironment(JNDIEnvironment.java:33)
    	at weblogic.jndi.Environment.<clinit>(Environment.java:89)
    	at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    	at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    	at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    	at javax.naming.InitialContext.init(Unknown Source)
    	at javax.naming.InitialContext.<init>(Unknown Source)
    	at com.ericr.jndiApplet.Applet1.init(Applet1.java:54)
    	at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source)
    	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "com.bea.core.internal.client" "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 weblogic.security.subject.SubjectManager.<clinit>(SubjectManager.java:207)
    	... 17 more
    Ignored exception: java.lang.ExceptionInInitializerError
    This applet depends on two other jar files, which have both been signed (and verified) as well.

    Any ideas on what this is? I thought that signing the applet would allow me to do things like this? I can perform the JNDI look up on a stand alone app so I am thinking that it is some sort of applet specific security setting. I just don't know what is causing this.

    Environment: Win 7, JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM, Weblogic 10.3.5

    Thanks!
    Last edited by errodr; 12-14-2012 at 05:02 AM.

  2. #2
    ElvisMachuca is offline Member
    Join Date
    Jan 2013
    Posts
    32
    Rep Power
    0

    Default Re: Why is my signed applet still running into permissions problems?

    I think it has to do with the fact that at some point you assign a new Security Manager.

    When you run the applet from the IDE, or eclipse or whatever java editor compiler, you don't get the message because applets are not forbidden from anything.

    But when you run the applet from an webpage, an html, then the security permissions come up.

    For instance take a look at this page of what applets are allowed and are not allowed to do:

    What Applets are allowed and are not allowed to do...

    May be you can find an answer there...bye good luck!

Similar Threads

  1. Signed .jar file for applet
    By anchitanc in forum Java Applets
    Replies: 3
    Last Post: 03-26-2012, 03:26 PM
  2. Replies: 0
    Last Post: 10-11-2011, 02:18 AM
  3. How to add AWTpermission to a signed applet?
    By katnyan in forum Java Applets
    Replies: 1
    Last Post: 10-07-2011, 04:12 PM
  4. First signed applet, doesn't even run :\
    By menzow in forum Java Applets
    Replies: 2
    Last Post: 02-21-2011, 11:19 AM
  5. [SOLVED] signed applet, or what
    By AXH in forum Java Applets
    Replies: 2
    Last Post: 10-10-2008, 01:28 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •