We need to have the latest version of jar Xalan / Serialize / Xerces files inside our ear. The version inside the Jboss 5.1 lib / endorsed directory is loaded first when we run our application code, and then we get it java.lang.NoSuchMethodError.
I read articles like this: http://www.openscope.net/2010/07/15/setting-up-a-jboss-instance-v5-x-class-loading/
I added the jboss-app.xml file to my meta-inf directory, which was packaged in my ear. Here is what I am stuck there:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-app PUBLIC
"-//JBoss//DTD Java EE Application 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
<jboss-app>
<loader-repository>
org.apache.xalan:archive=servicebroker-enterprise.ear
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
</jboss-app>
When I have this code, my ear does not load in jboss. I see that he finds an ear, and then just move to other ears without loading it. I turned on the debug log and I don’t see a single error, nor a mention of why it did not load.
Why won't my ear be loaded?