[jboss-user] [EJB/JBoss] - Re: jboss throws an exception when casting a proxy class

jborra do-not-reply at jboss.com
Thu Apr 24 18:05:44 EDT 2008


Jaikiran,

First of all, thank you for your suggestion.

No, I do not have the bean interface in more than one jar (at least not in the files I have deployed). I have read the document for which you sent a link and also followed the suggested jmx-console steps to verify if the bean interface appears in multiple places. This is what I found:

j2eetest.ejb.ConfigurationBean Information
Repository cache version:
j2eetest.ejb.ConfigurationBean(77b794).ClassLoader=org.jboss.mx.loading.UnifiedClassLoader3 at 1186cf9{ url=file:/C:/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1179J2EETest-ejb.jar ,addedOrder=47}
..org.jboss.mx.loading.UnifiedClassLoader3 at 1186cf9{ url=file:/C:/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1179J2EETest-ejb.jar ,addedOrder=47}
....file:/C:/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1179J2EETest-ejb.jar
....file:/C:/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1179J2EETest-ejb.jar-contents/TKUSA.jar
..org.jboss.system.server.NoAnnotationURLClassLoader at 8a0d5d
..sun.misc.Launcher$AppClassLoader at df6ccd
....file:/C:/apps/jboss-4.2.2.GA/bin/run.jar
....file:/C:/Program%20Files/Java/jdk1.6.0/lib/tools.jar
..sun.misc.Launcher$ExtClassLoader at 601bb1
....file:/C:/Program%20Files/Java/jdk1.6.0/jre/lib/ext/dnsns.jar
....file:/C:/Program%20Files/Java/jdk1.6.0/jre/lib/ext/localedata.jar
....file:/C:/Program%20Files/Java/jdk1.6.0/jre/lib/ext/sunjce_provider.jar
....file:/C:/Program%20Files/Java/jdk1.6.0/jre/lib/ext/sunmscapi.jar
....file:/C:/Program%20Files/Java/jdk1.6.0/jre/lib/ext/sunpkcs11.jar
++++CodeSource: (file:/C:/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1179J2EETest-ejb.jar )
Implemented Interfaces:
++interface javax.ejb.SessionBean(1b57dcb)
++++ClassLoader: org.jboss.mx.loading.UnifiedClassLoader3 at 11e0c13{ url=null ,addedOrder=2}
++++CodeSource: (file:/C:/apps/jboss-4.2.2.GA/server/default/lib/jboss-j2ee.jar )

### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3 at 1186cf9{ url=file:/C:/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp1179J2EETest-ejb.jar ,addedOrder=47}

>From the documentation and jmx's output I would say that I only have one instance of my test bean (ConfigurationBean). 

I have more information but still do not know how to correct the problem. :(

Regards,
Jesus

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

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



More information about the jboss-user mailing list