Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Tomcat giving JDK Precedence Over JARs in WAR

Gregor Schneider

2007-08-09

Replies:

david,

> I already include xml-apis-1.3.03.jar in the WAR's WEB-INF/lib-directory.

are you saying that the jar containing the said class is in your
WEB-INF/lib-directory already and you get that NullPointer?

On which OS are you running? Is it possible, that you have set an
environment-variable like JAVA_ENDORSED? This overwrites the default
XML-handling

In your logs, is there a root-cause for that exception you posted?

If all that doesn't give you a clue, start Tomcat in JPDA-mode,
connect remotely with your Eclipse-debugger and set a breakpoint at

com.myorg.myapp.ws.notification.impl.BufferedSubscriptionManager.publish(BufferedSubscriptionManager.java:73)

Then check the variables which are null but ought to be set, maybe
that gives you a figure.

HTH

Gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.