[jboss-user] [JNDI/Naming/Network] - Re: ClassCastException after redeploy
jaikiran
do-not-reply at jboss.com
Wed Oct 11 10:17:25 EDT 2006
Where are placing the remote and home interfaces of your beans. Is it in two separate locations(once in war and once in a jar)? If yes, then maintain it at only one place and remove those interfaces from the war.
Have a look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingOverview
Here's an extract from the same:
anonymous wrote : I get ClassCastException
|
| Assuming it is the same class name, this problem relates to classes getting loaded from different classloaders. At compile time your class has only one identity, its name. If you "deploy" a class many times in different jars, it has multiple identities. They are not the same. See below for more information on the solutions to this problem.
|
| This can also be caused by you only redeploying part of your application. e.g. a webapp uses an EJB and you only redeploy the EJB. The webapp will still have the old versions of the classes.
Also, look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions
Specifically, the jmx-console method mentioned over there
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977558#3977558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977558
More information about the jboss-user
mailing list