• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis with JAXP 1.3

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

***Axis Error: AxisFault
faultCode: {http://www.w3.org/2003/05/soap-envelope}Server.userException
faultSubcode:
faultString: java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema

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?

Thanks,
Joe
 
Joe Busch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

set JAVA_ENDORSED_DIRS=%CATALINA_HOME%\webapps\axis\WEB-INF\lib\endorsed

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().
 
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic