The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

nkatoch2001 (35) [Avatar] Offline
#1
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:72smilie
[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:62smilie
[java] at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
[java] at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:23smilie
[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
reza_rahman (456) [Avatar] Offline
#2
Re: javax.naming.CommunicationException
Naveen,

I would suggest using JBoss 4.2 instead.

Thanks,
Reza
nkatoch2001 (35) [Avatar] Offline
#3
Re: javax.naming.CommunicationException
Hi Reza,

Thanks for your time.

Naveen