[jboss-user] [JNDI/Naming/Network] - Re: JBoss 4.04 EJB3 lookup: classCastException on proxy obje

PeterJ do-not-reply at jboss.com
Wed Sep 5 11:28:05 EDT 2007


This sure does sound like a class loader issue. Possibly the EJB container instantiated the $Proxy133 object with one class loader and your code is using a different class loader, so even though both of the class loaders have the interface declaration, those interfaces are not the same.

I suggest moving the EJB JAR file out of the WAR file and placing it into the deploy directory. If that works, you can always repackage your app as an EAR containing the EJB JAR and your WAR.

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

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



More information about the jboss-user mailing list