• 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

XML in a JSP

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic