Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.naming.CommunicationException

 
Suhas Mohamedali
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic