I have a similar situation. I am attempting to deploy a second instance of my application in order to test a build from a branch and having class loading issues. The first instance deployed works fine but the second gets a ClassCastException.
The application is deployed as an ear and I have tried following the class loading documentation to set the loader-repository and Java2ParentDelegation in my jboss-app.xml but the problem persists.
Is it possible to run two instances of the same application? I'm assuming yes, but so far I can't figure it out.
Anyone have any suggestions?
Thanks in advance,
I forgot to mention, I am currently running JBoss AS 4.2.0, and this is a Seam application if it matters.