aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Getting javax.naming.CommunicationException Using Jboss 4.0.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Getting javax.naming.CommunicationException Using Jboss 4.0.5" Watch "Getting javax.naming.CommunicationException Using Jboss 4.0.5" New topic
Author

Getting javax.naming.CommunicationException Using Jboss 4.0.5

nav katoch
Ranch Hand

Joined: May 02, 2008
Posts: 246

Hi all,

I am getting the following error after running "ant run" in command prompt while running chapter 1 on jboss 4.0.5GA of ejb 3 in action:-

[java] javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[java] at com.ejb3inaction.actionbazaar.client.HelloUserClient.main(HelloUserClient.java:16)
[java] Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)
[java] at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:535)
[java] at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
[java] at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
[java] at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
[java] at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
[java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
[java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
[java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
[java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
[java] at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
[java] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
[java] ... 3 more

It has been deployed fine using "ant" in command prompt.

Please help to fix this problem,

Thanks a lots,

Naveen
PS: Eventually, I tested with jboss 4.2.2 and It's working fine. Am I missing something?
 
wood burning stoves
 
subject: Getting javax.naming.CommunicationException Using Jboss 4.0.5
 
Similar Threads
unable to call bean from jboss server!!! HELP NEEDED!!
JMS with Jboss Errors
Error whiling running the server
Getting an EJB session bean which uses @SecurityDomain annotation, in a unit test case through JNDI
ejb3.proxy erro