[jboss-user] [EJB 3.0] - Re: java.lan.ClassCastException when casting to remote bean

jaikiran do-not-reply at jboss.com
Thu Nov 20 05:09:20 EST 2008


I should have read your original post before responding :-) I missed the point that you have an EAR and a WAR file which are deployed separately. In such cases, you have to use classloader scoping for your applications. So the EAR (containing your simple-ejb.jar) should have a jboss-app.xml which configures the classloader for the application. Then your WAR (containing a simple-ejb-client.jar - note that you just need the remote/local interfaces in the jar. no need of the implementation) should have a jboss-web.xml which configures the classloader for the WAR. See this wiki for details http://www.jboss.org/community/docs/DOC-9288  (section "Specifying Isolation").

anonymous wrote : Oh and BTW for some reason JNDIView is not present in my JMX console ?! 

Did you use the JEMS installer to install JBoss? If yes, see this https://jira.jboss.org/jira/browse/JBINSTALL-374

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

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



More information about the jboss-user mailing list