Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis Parser Error

 
Matt Hoffman
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error when I click on the WSDL link for a service in AXIS. This is the URL that spawns this: http://localhost:8080/axis/services/HelloService?wsdl. Any ideas would be GREATLY appreciated!

AXIS error
Sorry, something seems to have gone wrong... here are the details:

Fault - ; nested exception is:
WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: can't declare any more prefixes in this context: java.lang.IllegalStateException: can't declare any more prefixes in this context
 
Matt Hoffman
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I force Axis to use Xerces instead of Crimson?
 
Matt Hoffman
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured this out.

You must make a endoresed directory in your JAVA_HOME\lib dirfectory and put the Xerces jars in there. Then you have to change the catalina.xml file to put to this directory and restart tomcat.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic