The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


J2EE and Applets

Posted by Dan Desch on February 13, 2002 at 4:03 PM

I have a J2EE compliant application. I want to run the client tier from within a web browser. Trouble is, soon as I start up the application, I get an exception thrown by the security manager: AccessControlException: access denied.

The traceback points to a line of code where I perform a JNDI InitialContext lookup() to obtain the Home reference to a bean. I am guessing that the Applet security manager somehow thinks that I am attempting to make a network connection to a computer other than the one from which the applet came. This is not the case (I know so because I am running everything--browser, client, server, and database all on the same computer). So, how do I convince the security manager that I am not trying to break the rules of security that govern Applets?

Any assistance or even just a nudge in the right direction greatly appreciated.

Dan Desch.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us