This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I need to use JAXP 1.3 for my web service under Axis on Tomcat. The problem is that JAXP 1.2 is the default, and when I add the external jars for JAXP 1.3 support to lib/endorsed Axis, which uses 1.2 throws the following fault:
There must be some way to allow the web service to use JAXP 1.3 while Axis uses JAXP 1.2. Got a solution for me?
Joined: Jan 07, 2005
I have found the solution, and am replying to my own topic here in case someone else is interested. The Tomcat server invokes Axis, so it's the Tomcat environment that must support the JAXP 1.3 environment. In catalina.bat I placed the following endorsed directory information:
In this directory place all five JAXP 1.3 files: dom.jar jaxp-api.jar sax.jar xalan.jar and xercesImpl.jar
Add these jars to your project's build path and that's all that needs to be done. Since its an "endorsed" diretory path, the jars in this path will override any jdk classes that come with the sdk, like JAXP 1.2, at least that is my understanding. Axis now works properly, both from a web service client call and when testing within eclipse as a standalone object via main().