This content has been marked as final.
Show 2 replies
-
1. Re: jboss 7 jndi error
morphy Oct 4, 2011 5:10 AM (in response to vamshi.a)look my answer here http://community.jboss.org/message/629776#629776
it worked for me, said in 2 words: put the interfaces in jboss modules instead in the 2 packages (ear and war), add the Dependencies entry
it is not what's expected but a workaround
bye
-
2. Re: jboss 7 jndi error
szhigunov Oct 4, 2011 11:17 AM (in response to morphy)If you deploy war outside of ear it gets its own classloader in JBoss 7. You get the same interface loaded twice by different classloaders, one in ear and one in war. You can not cast one to another. You can refactor interface to a separate module as suggested above, or just include your war into ear and remove api.jar from WEB-INF. This is a good link about it: https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7