• 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

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

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic