We are developing some applets that need to access some EJB session beans in Jboss.
The applets is invoked from the following HTML:
<OBJECT ...>
...
This works when the applet is signed. However, we need this applet to be left unsigned . And since we only access the machine from which the applet was loaded, this should work.
For unsigned applets, when the applet tries to retrive the home interface, we get an exception, SecurityException. The stacktrace is included below.
Any tips or ideas will be gratefulle appeciated.
Regards
Rolf Woll
The following stacktrace is received.
SecurityException: access denied (java.lang.RuntimePermission
org.jboss.security.SecurityAssociation.getPrincipalInfo)
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
org.jboss.security.SecurityAssociation.getPrincipalInfo)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at
java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at
org.jboss.security.SecurityAssociation.getPrincipal(SecurityAssociation.java:112)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:74)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at
com.ca.uslm.client.applet.util.FacadeUtil.setAppletFacadeHome(FacadeUtil.java:77)