[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-18 Thread Ulmer
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. |

[jboss-user] [Management, JMX/JBoss] - Re: MBeans: Unable to cast the returned object instance

2007-05-18 Thread Ulmer
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

[jboss-user] [EJB 3.0] - ClassCastExeption while invoking a Bean

2007-05-15 Thread Ulmer
? 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

[jboss-user] [EJB 3.0] - Re: ClassCastExeption while invoking a Bean

2007-05-15 Thread Ulmer
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

[jboss-user] [Management, JMX/JBoss] - MBeans: Unable to cast the returned object instance

2007-05-08 Thread Ulmer
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