• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML in a JSP

 
Tom Diamond
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello people,
When I am trying to read from an XML file inside a JSP page I get a ParserConfigurationException. What may have caused that? (The code itself has been tested as an app and it's OK).
Tom.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ParserConfigurationException gets thrown when there is a serious error involving the parser classes. Perhaps you have conflict between different parser versions? Which parser are you trying to use?
Bill
 
Tom Diamond
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I don't know :-)
I have a Jakarta-Tomcat server (ver. 4 - beta 5) and the first time I tried my page I got the configuration exception. Then I put a couple of jars in Root/WEB-INF/lib directory (jaxp.jar, crimson.jar, xalan.jar - think they are the Sun's API for XML parsing) and the problem got bigger : the server shutdown on its own and I had to exlpore the logs to find out that a "NoClassDefFoundException : javax/xml/parsers/ParserConfigurationException not found" (or omething similar to that...) had occurred.
Any ideas???
Tom.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic