• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Help needed creating XML Document From Servlet urgent!!

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys
I have a class which parses a schema and creates an XML document from the schema.It works fine but when I try to write it as a servlet application, I get the following internal server error:
java.lang.NoClassDefFoundError: javax/xml/parsers/ParserConfigurationException
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:429)
at com.sun.web.core.ServletLoader.loadClass(ServletLoader.java:124)
at com.sun.web.core.ServletLoader.loadServlet(ServletLoader.java:30)
at com.sun.web.core.ServletWrapper.loadServlet(ServletWrapper.java:81)
at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:109)
at com.sun.web.core.InvokerServlet.service(InvokerServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
at com.sun.web.core.Context.handleRequest(Context.java:375)
at com.sun.web.server.ConnectionHandler.run(Compiled Code)
Normal servlets work fine except this one.
I tried changing the classpath but no joy.
I was wondering if any body out there had a similar problem and could give me some advice.
ps I already posted this on the servlet forum apologies if u have seen it twice.
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frank m , Welcome to javaranch.

Please refer to official javaranch naming policy & reregister with proper first & last name. Please comply with javaranch policies & help maintain the decorum of the forum.

Your Friendly Bartender
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!