[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3
yanlong11
do-not-reply at jboss.com
Wed Jan 16 12:06:52 EST 2008
I still had class-cast exc even with code you provided.
below output from loader-rep as suggested in article you gave link to.
I am loading these dynamically with intellij idea IDE
thanks
yanlong
book.HelloBean Information
Repository cache version:
book.HelloBean(11be075).ClassLoader=org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
..org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
....file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar
..org.jboss.system.server.NoAnnotationURLClassLoader at 1de3f2d
..sun.misc.Launcher$AppClassLoader at a39137
....file:/C:/Sun/AppServer/jdk/lib/tools.jar
....file:/D:/devel/java/jboss-4.2.2.GA/bin/run.jar
..sun.misc.Launcher$ExtClassLoader at 92e78c
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/dnsns.jar
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/localedata.jar
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/sunjce_provider.jar
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/sunpkcs11.jar
++++CodeSource: (file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar )
Implemented Interfaces:
++interface book.Hello(1f20541)
++++ClassLoader: org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
++++CodeSource: (file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar )
### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
book.Hello Information
Repository cache version:
book.Hello(1f20541).ClassLoader=org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
..org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
....file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar
..org.jboss.system.server.NoAnnotationURLClassLoader at 1de3f2d
..sun.misc.Launcher$AppClassLoader at a39137
....file:/C:/Sun/AppServer/jdk/lib/tools.jar
....file:/D:/devel/java/jboss-4.2.2.GA/bin/run.jar
..sun.misc.Launcher$ExtClassLoader at 92e78c
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/dnsns.jar
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/localedata.jar
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/sunjce_provider.jar
....file:/C:/Sun/AppServer/jdk/jre/lib/ext/sunpkcs11.jar
++++CodeSource: (file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar )
Implemented Interfaces:
### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3 at 1683e80{ url=file:/D:/devel/java/jboss-4.2.2.GA/server/all/tmp/deploy/tmp64792EJB.jar ,addedOrder=49}
I am deploying war file with jsp and classes and jar file with classes only.
web.war
-WEB-INF
--classes
--- ...all classes in packages
-index.jsp
ejb.jar
-beans
-book
-META-INF
beans and book are packages for my sample and book sample.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120551#4120551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120551
More information about the jboss-user
mailing list