How do you see that it uses .ear first?
Since isolation != hierarchy, hence it should still go to server/lib first.
I have different versions of the same jar file in the .ear package and in server/lib. It works fine without isolation But I get a ClassCastException the moment I introduce it. That's why I think isolation is causing the issue.
I would guess you have the dup jar in your .war inside .ear?
Hence child-first=true kicks in due to servlet spec CL rules.
no, the duplicate jar file is not in the .war of the .ear. It's just in the root of the .ear. The problem jar is antlr.
- In the .ear root, i have antlr-2.7.7.jar
- In jboss's server/myServerName/lib I have antlr-2.7.6.jar
Currently I are using the following jboss-app.xml to try to resolve my issue, but I continue to get the ClassCastException which makes me believe it is still pulling the antlr version from the ear file, not the server/lib as i expect.
Thanks a lot for your help!