jQuery in Action, 3rd edition
The moose likes EJB and other Java EE Technologies and the fly likes javax.naming.CommunicationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.naming.CommunicationException " Watch "javax.naming.CommunicationException " New topic


Suhas Mohamedali

Joined: Jun 05, 2012
Posts: 29

I am calling an interface from my client ( simple java) from eclipse.

My client.java

I kept my remote interface in the same package of client ( client side). jndi.properties placed at the root folder of client...

I have both local and remote in the serverside. The local and remote interfaces, bean and entity have been bundled in a jar and deployed in JBOSS.

Now when I run my client as java program i am getting following exception

javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.oic.hcs.interfaces.area.AreaRemoteBI (no security manager: RMI class loader disabled)]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:786)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at ejb.client.Client.main(Client.java:27)
Caused by: java.lang.ClassNotFoundException: com.oic.hcs.interfaces.area.AreaRemoteBI (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadProxyClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadProxyClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(Unknown Source)
at java.io.ObjectInputStream.readProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.rmi.MarshalledObject.get(Unknown Source)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
... 3 more
Exception in thread "main" java.lang.NullPointerException
at ejb.client.Client.main(Client.java:35)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: javax.naming.CommunicationException
It's not a secret anymore!