  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Tomcat giving JDK Precedence Over JARs in WAR | Tomcat giving JDK Precedence Over JARs in WAR 2007-08-09 - By david2
Back
I have a web application that uses commons XML (xml-apis-1 (See http://pis-1.ora-code.com).3.03.jar). The usage of javax.xml.xpath.XPathFactory.newInstance() works fine in the Eclipse debugger, but when the code is packaged into a WAR and deployed to Tomcat, I get a NullPointerException when javax.xml.xpath.XPathFactory.newInstance() is called:
java.lang.NullPointerException at javax.xml.xpath.XPathFactoryFinder._newFactory(XPathFactoryFinder.java:222) at javax.xml.xpath.XPathFactoryFinder.newFactory(XPathFactoryFinder.java:143) at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:185) at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:99) at com.myorg.myapp.ws.notification.impl.ExtnMessagePatternFilter.accepts (ExtnMessagePatternFilter.java:69) at org.apache.muse.ws.notification.impl.FilterCollection.accepts(FilterCollection .java:64) at com.myorg.myapp.ws.notification.impl.BufferedSubscriptionManager.publish (BufferedSubscriptionManager.java:73) at com.myorg.myapp.ws.notification.impl.NewsNotificationProducer.publish (NewsNotificationProducer.java:38) at org.apache.muse.ws.notification.impl.SimpleNotificationProducer.publish (SimpleNotificationProducer.java:420) at com.myorg.myapp.ws.handler.DDSHandler.run(DDSHandler.java:304) at com.myorg.commons.util.reactor.ReactorAdapter.run(ReactorAdapter.java:19) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java :885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
Any idea what might be going wrong here?
Thanks, -David -- View this message in context: http://www.nabble.com/Tomcat-giving-JDK -Precedence-Over-JARs-in-WAR-tf4243247.html#a12074492 Sent from the Tomcat - User mailing list archive at Nabble.com.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |