Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about Transformer&DOMSource when I try jsp code in tomcat4,Headache!!!

xi ruo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The underneath is my code in jsp:
javax.xml.parsers.DocumentBuilderFactory dbf=javax.xml.parsers.DocumentBuilderFactory.newInstance();
javax.xml.parsers.DocumentBuilder db=dbf.newDocumentBuilder();
javax.xml.transform.TransformerFactory tf=javax.xml.transform.TransformerFactory.newInstance();
javax.xml.transform.Transformer t=tf.newTransformer();
org.w3c.dom.Document document=db.parse(request.getRealPath("tree\\tree2.xml"));
javax.xml.transform.dom.DOMSource domsource=new javax.xml.transform.dom.DOMSource(document);
This code is under the weblogic7 however can normal movement,When I try movement this the code of jsp in the tomcat4,Throwing the exception is shown as below:
javax.servlet.ServletException: Class org/w3c/dom/Node violates loader constraints
What is it???I should how resolve this problem
Thanks for your help!
[ April 14, 2003: Message edited by: xi ruo ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic