It may not be possible, but if you can send a tiny sample applet
example I can run, I'll take a stab at adding at getting it running.
-David
On Mar 13, 2008, at 9:59 AM, molinemc wrote:
Hi,
I'm trying to use the OpenEJB in an applet, and I encounter the
following
exception in JNDIContext.lookup().
Exception in thread "AWT-EventQueue-2"
java.security.AccessControlException:
access denied (java.util.PropertyPermission /AddUserBeanRemote 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 org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:
192)
at javax.naming.InitialContext.lookup(Unknown Source)
at
com
.knexusresearch.rvsrapplet.GameLogic.lookupRepeatedly(GameLogic.java:
141)
at
com
.knexusresearch
.rvsrapplet.GameLogic.getNewAddUserService(GameLogic.java:127)
at
com.knexusresearch.rvsrapplet.GameLogic.register(GameLogic.java:152)
at
com.knexusresearch.rvsrapplet.RegisterPanel
$2.actionPerformed(RegisterPanel.java:109)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
This appears to result from trying to check client system
properties, not
attempting to connect to the OpenEJB server (which is on the same
computer
as the applet, so it shouldn't be a problem). I'd like to run this
applet in
a default browser sandbox without a signature or policy changes, so
I was
wondering if there was a way to work around the property check. Any
suggestions?
Thanks in advance,
-Matt
--
View this message in context:
http://www.nabble.com/AccessControl-exception-in-JNDIContext.lookup-tp16031344p16031344.html
Sent from the OpenEJB User mailing list archive at Nabble.com.