I am using JBoss-3.0.0 RC1 with integrated Tomcat 4.0.3. I compile and run the applet to ejb example on online doc. Also copy the AppletEjbCaller.jar, jboss-client.jar, jboss-j2ee.jar, jbosssx-client.jar, jnp-client.jar, jndi.jar, jaas.jar and the HTML file into the root directory of the web pages. However, I keep getting following error message when I load applet and click "get server message" button:
java.security.accesscontrolexception: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo)
I tried to access the ejb using a java standalone application. It works fine.
Any help is appreciated.
An Applet can not use RMI, if it is not signed...This could be the problem. So the problem is probably on the client side and not on the server-side.
It can be solved by making http tunnelling through a servlet.