Discussion:
Textpad & Ejb's
(too old to reply)
Jeff
2004-01-19 20:05:46 UTC
Permalink
I have my bean deployed to the Jboss server.
When I run my client class through texpad everything runs fine.
When I try running the program from the command line I get this error:

java.security.AccessControlException: access denied (java.net.SocketPermission 2
30.0.0.4 connect,accept,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 2
30.0.0.4 connect,accept,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:269)
at java.security.AccessController.checkPermission(AccessController.java:
401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkMulticast(SecurityManager.java:1180)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:267)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:10
69)
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(InitialContext.java:347)
at HelloWorldTestClass2.main(HelloWorldTestClass2.java:44)

Any Ideas?
Jeff
2004-01-20 20:45:57 UTC
Permalink
Post by Jeff
I have my bean deployed to the Jboss server.
When I run my client class through texpad everything runs fine.
java.security.AccessControlException: access denied (java.net.SocketPermission 2
30.0.0.4 connect,accept,resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission 2
30.0.0.4 connect,accept,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:269)
401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkMulticast(SecurityManager.java:1180)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:267)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:10
69)
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(InitialContext.java:347)
at HelloWorldTestClass2.main(HelloWorldTestClass2.java:44)
Any Ideas?
Got the problem fixed.
Turns out when I fixed the java.policy file in the jre/lib/security
directory that it fixed the problem for the security textpad was
using. But then I changed another one of them on the computer and it
solved the problem.

Loading...