[jboss-user] [JNDI and Naming] - Lookup bean from AS 4.0.5 to 5.1.0
Gabriel Valencia
do-not-reply at jboss.com
Thu Dec 9 13:01:15 EST 2010
Gabriel Valencia [http://community.jboss.org/people/gvalenc] created the discussion
"Lookup bean from AS 4.0.5 to 5.1.0"
To view the discussion, visit: http://community.jboss.org/message/575250#575250
--------------------------------------------------------------
I have an EJB3 stateless session bean deployed in AS 5.1.0 that I am trying to look up from some client code deployed in a remote AS 4.0.5 installation. The client isn't a true EJB client, just something that happens to be running within the context of a 3rd party EJB in that server. Should this be possible? The client has the same class files inside its jar as those in the 5.1.0 bean's jar. I specifically set the JNDI provider URL to be the remote 5.1.0 server in the InitialContext properties before lookup.
I get this exception during the narrow() call:
Caused by: java.lang.ClassCastException
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at com.venetica.vbr.res.ejb.EJBLocator.locateDirector(EJBLocator.java:115)
... 23 more
Caused by: java.lang.ClassCastException: javax.naming.Reference
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
... 25 more
Caused by: java.lang.ClassCastException
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at ****(****.java:115)
... 23 more
Caused by: java.lang.ClassCastException: javax.naming.Reference
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)
... 25 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/575250#575250]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101209/6862ec80/attachment.html
More information about the jboss-user
mailing list