ALRubinger wrote : ...
| Because more than one classloader was picking up duplicates of the class
definitions, the WAR-scoped classloader was attempting to cast the object
retrieved from JNDI (of type recognized by the EJB3 JAR Classloader) and cast
it (incorrectly) into its own version.
|
genman wrote : Use the javax.management.MBeanServerInvocationHandler class to
forward calls to your MBean.
|
| You have classcastexception since the same class is loaded in two different
classloaders.
right. the same was here
?
Environment:
Jboss 4.2.0 RC2
Java 6
Windows XP
Regards,
Ulmer
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045696#4045696
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045696
___
jboss
mean while I putted the jar with the ejb and the client war into an ear package.
the jar file was completed with the /META-INF/jboss.xml:
| ?xml version=1.0 encoding=UTF-8?
| jboss
| enterprise-beans
| session
| ejb-nameMyBean/ejb-name
| jndi-nameMyBean/jndi-name
Hi all,
executing a mbean method with a custom return type i can't cast the returned
object instance to the appropriate data type.
ClassCastException:
anonymous wrote :
| java.lang.ClassCastException: mypackage.MyDto cannot be cast to
mypackage.MyDto
MBean:
| public interface MyMBean