Hi, I have an signed applet which communicates over Http with Servlets (both in a war-file). And the servlets communicate with my EJBs.
Now I want to set up JMS on my system, and I had no problem to set it up for the servlets. But when I try to get a ConnectionFactory inside the applet I always get the following Error inside the JVM. (I never configured the IP 230.0.0.4)
I searched for absolutely everything and don`t know where the problem is.
Maybe I can get some help?
ERROR-MESSAGE from JVM
Looking up connection factory...
java.security.AccessControlException: access denied (java.net.SocketPermission 230.0.0.4 connect,accept,resolve)
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.checkMulticast(Unknown Source)
at java.net.MulticastSocket.joinGroup(Unknown Source)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1069)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
at javax.naming.InitialContext.lookup(Unknown Source)
at liato.web.applet.JmsClient.register1(JmsClient.java:92)
at liato.web.applet.JmsClient.(JmsClient.java:46)
at liato.web.applet.Liato_Applet.init(Liato_Applet.java:91)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
conf/jndi.properties:
jnp.disableDiscovery=true
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
I get no errors with the InitialContext, but I don`t get any connection-factory.
Need more code? Just post "more"
Thanks Marcus
At first: What does: 230.0.0.4 mean....?