Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access Control Exception

2 views
Skip to first unread message

pstevens

unread,
Nov 12, 2002, 1:28:28 PM11/12/02
to
In the process of converting wls 4.5 to 7.0 Getting the following
exception when trying the get the home for an EJB from an applet.

code:
--------------------------------------------------------------------------------

java.lang.ExceptionInInitializerError:
java.security.AccessControlException: access denied
(java.util.PropertyPermission file.encoding 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.utils.http.HttpParsing.<clinit>(HttpParsing.java:30)
at weblogic.utils.classloaders.ServletClassFinder.<init>(ServletClassFinder.java:32)
at weblogic.j2ee.ApplicationManager.getFinder(ApplicationManager.java:553)
at weblogic.j2ee.ApplicationManager.loadFromNetwork(ApplicationManager.java:529)
at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:322)
at weblogic.rmi.internal.ClientRuntimeDescriptor.computeInterfaces(ClientRuntimeDescriptor.java:226)
at weblogic.rmi.internal.ClientRuntimeDescriptor.intern(ClientRuntimeDescriptor.java:123)

--------------------------------------------------------------------------------

I tried AllPermission in the policy file.

Kumar Allamraju

unread,
Nov 12, 2002, 4:50:09 PM11/12/02
to
Not all System.getProperty ( ) are allowed in applets.
Can you tell which system property you are trying to get/read?

Kumar

pstevens

unread,
Nov 13, 2002, 7:32:18 AM11/13/02
to
Two things. The first, this is just a straight convert from 4.5 to
7.0. No changes at all. The second. The error happens on this
statement.

home = ctx.lookup("cpl.EjbfController");

It is just trying to get the home.


Kumar Allamraju <Rep...@newsgroups.com> wrote in message news:<3DD17791...@newsgroups.com>...

0 new messages