This content has been marked as final.
Show 2 replies
-
1. Re: Lookup EJB 3 + ClassCastException ( jboss-4.2.2.GA )
jaikiran Feb 20, 2008 8:19 AM (in response to pedro.neves)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. -
2. Re: Lookup EJB 3 + ClassCastException ( jboss-4.2.2.GA )
pedro.neves Feb 20, 2008 9:52 AM (in response to pedro.neves)Thank you , Jaikiran
I already had the jboss-app.xml in META-INF, added the party <loader-repository-config> but has not worked<jboss-app> <loader-repository>myApp:loader=mytest-web <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </jboss-app> and <jboss-app> <loader-repository>myApp:loader=mytest-modelo <loader-repository-config>java2ParentDelegation=false</loader-repository-config> </loader-repository> </jboss-app>
some idea ?
Thank you for help
Pedro Neves
Brazil