[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-19 Thread heizenberg
I just saw what the problem is, even though I thought I already looked before. The J2EE utility project I've deployed had the same libraries selected in both the tabs (J2EE Modules and Web Libraries) of the J2EE Module Dependencies settings (on Windows... this doesn't seem to happen on the

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-13 Thread jaikiran
Let's try another approach then. When you start JBoss through run.bat (or run.sh) pass the -verbose:class JVM parameter. Like this(for run.bat): set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=256m -verbose:class | Then start JBoss. This will print out to STDOUT the classes being

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-12 Thread heizenberg
Thanks JaiKiran. I did check my class loaders in my JMX console. It showed no duplicates. I also tried playing with a jboss-app.xml file and tried to specify one classloader for the entire EAR. That didn't help either. View the original post :

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-11 Thread heizenberg
I doubt if it's EAR packaging. If I had a ClassNotFoundException, that would have been my first guess. I can see the classes... I just cannot seem to class it to the base interface. Perhaps one of the documents pointed out by JaiKiran holds a clue or two, but I haven't found them so far. View

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-11 Thread heizenberg
I meant 'cast' and not 'class' in my last reply above. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128411#4128411 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128411 ___

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-11 Thread ejb3workshop
Maybe have a look at the EJB3 specification Section EE 8.2. It describes the mechanism for packaging utility classes within EAR files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128381#4128381 Reply to the post :

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-11 Thread jaikiran
There's a jmx-console method mentioned at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions. See if that's of any help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128574#4128574 Reply to the post :

[jboss-user] [EJB 3.0] - Re: ClassCastException within an EAR deployment

2008-02-10 Thread jaikiran
See these: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration View the original post :