Hi,
I've got a web services bundle deployed as a .WAR within my main EAR. The web services servlet needs to use Xerces to parse the WSDL file. When I deploy the application, the web services application can successfully load this class and parse the file.
However, whenever I log into the main application (that uses Cocoon, Xerces/Xalan etc), any further attempts to retrieve the WSDL file from my webservices servlet results in:
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
Now, I have tried a couple of different things:
1. Have placed the xercesImpl-2.0.0.jar in the WEB-INF/lib of my webservices.war.
2. Have placed the xercesImpl-2.0.0.jar in the root of my .EAR and added to my application.xml
<module> <java>xercesImpl-2.0.0.jar</java> </module>
NoClassDefFoundError is thrown when you load another class that tries to import
the class not found.
If the SAXParser class is not visible from that other class's classloader you
will get this error.
Regards,
Adrian