[jboss-user] [JNDI/Naming/Network] - Re: JNDI Look up in JBoss 4.0.5GA

pmadhum do-not-reply at jboss.com
Tue Jun 26 11:24:16 EDT 2007


Hi,
  I am using below code for getting the Homeinterface of session bean SessionMaterial as follows
(Same as you mentioned in the code, but looking for "java:comp/env/ejb/SessionMaterial")  this same code was working in jboss 3.2.8.
--------------------------------------------------------------------
Object obj = ictx.lookup("java:comp/env/ejb/SessionMaterial");
return PortableRemoteObject.narrow(obj, SessionMaterialHome.class);
--------------------------------------------------------------
Now getting
----------
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException: Receive timed out
----------

when i changed to look for only "ejb/SessionMaterial", getting below error
----
ava.lang.LinkageError: loader constraints violated when linking javax/ejb/Handle class
	at java.lang.Class.getDeclaredFields0(Native Method)
	at java.lang.Class.privateGetDeclaredFields(Class.java:2232)
	at java.lang.Class.getDeclaredField(Class.java:1852)
	at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1555)
	at java.io.ObjectStreamClass.access$600(ObjectStreamClass.java:47)
	at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:381)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.io.ObjectStreamClass.(ObjectStreamClass.java:373)
	at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:268)
	at java.io.ObjectStreamClass.initProxy(ObjectStreamClass.java:464)
	at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1502)
----


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057757#4057757

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057757



More information about the jboss-user mailing list