Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Validation works as a stand alone, but not as a servlet -- ideas??

Status
Not open for further replies.

link102

Programmer
Jan 4, 2005
7
US
Hey all, I am writing a simple parser and DTD validator for an InputStream that will passed in as a POST message. I have tried parsing and validating both InputStreams and just Strings from a small test program that I wrote. That works fine. However, when I put the SAME EXACT code into a file that is turned into a servlet, it still parses the XML and checks for well-formedness, but this time there is no DTD validation (that is the only difference). The webserver that it is being run on is resin and is powered by a master RequestServlet. I just can't figure out why the same code would not work the same on the same server as a servlet. Please advise if you can, this issue is driving me nuts.
 
Its probably something to do with a difference between the XML parser libraries you have on your test machine, and the servlet container ... make sure they are the same. Don't forget to check the JVM's default jar load directories such as jre\lib\ext and jre\lib\endorsed, aswell as resin's default library areas.

Click here to learn Ways to help with Tsunami Relief
--------------------------------------------------
Free Database Connection Pooling Software
 
Thanks sedj. Perhaps this is a stupid but how do I check the JVM's default jar load directories?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top