[jboss-user] [EJB/JBoss] - Re: Lookup EJB 3 + ClassCastException ( jboss-4.2.2.GA )
jaikiran
do-not-reply at jboss.com
Wed Feb 20 08:19:16 EST 2008
Have you setup the ears for classloader isolation? See these for details:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases
Create a jboss-app.xml file for each of these EARs and place it in the META-INF folder the ear. The jboss-app.xml should contain something like this:
<jboss-app>
| <loader-repository>
| myApp:loader=MyApp1
| <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
| </loader-repository>
|
| </jboss-app>
Similarly for the other EAR, the content should look like:
| <jboss-app>
| <loader-repository>
| myApp:loader=MyApp2
| <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
| </loader-repository>
|
| </jboss-app>
Make sure the loader names (myApp:......) are unique names.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130736#4130736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130736
More information about the jboss-user
mailing list