[jboss-user] [JNDI/Naming/Network] - ClassCastException with iiop
kathy90031
do-not-reply at jboss.com
Fri Jul 6 21:55:09 EDT 2007
When I use jnp - everything is fine, no ClassCastException when accessing the eJB I deployed on Jboss 4.01. However, when I set up the bean to use iiop (updating the jboss.xml and deploying on the server config all), I get a ClassCastException on the PortableRemoteObject.narrow method.
I have my EJB deployed on JBoss 4.01.
I can a WEB Application running inside Jdeveloper on OC4J application server. I don't think that my remote EJB is deployed on the OC4J. I have read the wiki on ClassCastException. Here is my dump from the JMX console
com.infomanager.ejb.userindex.UserIndexBean Information
Repository cache version:
com.infomanager.ejb.userindex.UserIndexBean(1e84ff1).ClassLoader=org.jboss.mx.loading.UnifiedClassLoader3 at 945d2d{ url=file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear ,addedOrder=39}
..org.jboss.mx.loading.UnifiedClassLoader3 at 945d2d{ url=file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear ,addedOrder=39}
....file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear
....file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear-contents/UserIndexEJB.jar
....file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear-contents/RazorSourceCommon.jar
....file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear-contents/WebAdviser.jar
....file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear-contents/jt400.jar
..org.jboss.system.server.NoAnnotationURLClassLoader at 1f6f296
..sun.misc.Launcher$AppClassLoader at a39137
....file:/C:/Development/jboss-4.0.2/bin/run.jar
..sun.misc.Launcher$ExtClassLoader at 92e78c
....file:/C:/Program%20Files/Java/jre1.5.0_10/lib/ext/dnsns.jar
....file:/C:/Program%20Files/Java/jre1.5.0_10/lib/ext/sunjce_provider.jar
....file:/C:/Program%20Files/Java/jre1.5.0_10/lib/ext/sunpkcs11.jar
++++CodeSource: (file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear-contents/UserIndexEJB.jar )
Implemented Interfaces:
++interface javax.ejb.SessionBean(1464fee)
++++ClassLoader: org.jboss.mx.loading.UnifiedClassLoader3 at 125d61e{ url=file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43073jboss-service.xml ,addedOrder=2}
++++CodeSource: (file:/C:/Development/jboss-4.0.2/server/all/lib/jboss-j2ee.jar )
### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3 at 945d2d{ url=file:/C:/Development/jboss-4.0.2/server/all/tmp/deploy/tmp43145UserIndexEAR.ear ,addedOrder=39}
Please advise
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061537#4061537
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061537
More information about the jboss-user
mailing list