Get the latest release from: http://www.jboss.org/bin/jboss-2.1.zip and see the JAXP howto that describes how to change the xml parsers: http://www.jboss.org/documentation/HTML/ch09s101.html ----- Original Message ----- From: Lisa Plato To: [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 4:31 PM Subject: [JBoss-user] Xerces / JBoss class conflict (or: How I Nearly Lost My Mind) OK -- I've researched the archives and I know that this topic has been covered, but I can't get any of the recommended solutions to work. I'm trying to deploy some EJBs that use Xalan and Xerces classes for parsing and modifying an input XML doc. I keep getting NoSuchMethodErrors when invoking certain methods (such as XPathAPI.selectSingleNode() or Node.normalize()), because these methods are not included in the class files in xml.jar. I have tried the following: - Put xalan.jar and xerces.jar in the lib/ext directory -- didn't work - Put xalan.jar and xerces.jar up front in the $CLASSPATH prior to running java -jar run.jar (and ensured that the classpath was exported) -- didn't work. - Tried copying xerces.jar over xml.jar -- JBoss would not start. - Removed both jar files from lib/ext and placed them in a 'lib' directory under my app directory. Added the ClassPath line (with the empty line following) to the manifest file, packaged the whole mess (myapp.jar, lib/*.jar, and META-INF) into a .ear file and deployed. After some tweaking, finally got it to deploy correctly and saw the "Added lib/xerces.jar" and "Added lib/xalan.jar" lines come up. It still gives me the NoSuchMethod error when my stateless session bean invokes XPathAPI.selectSingleNode (what actually blows up is the subsequent call to Node.isSupported()). To ensure that this wasn't a Xalan/Xerces problem, I ran the same code fragment in a standalone program and it worked fine. What gives? How do I get the Xerces classes to override the corresponding xml.jar classes? Is there a config file that has to be modified somewhere? Many thanks, John Plato _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
