tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: Tomcat Xalan classpath problem
Date Tue, 03 Nov 2009 14:22:53 GMT
Just to make sure w.r.t. it being working in Jetty: You use the same
Java version? Sun changed an important bit between Java 5 and Java 6,
where they are now caching something detected during runtime in a global
static thus partially breaking the dynamics of XML parser detection when
using mutiple classloaders. The usual indication is a class cast
exception, which is not the case in your situation, but nevertheless I
wanted to check, whether there's a relation to Java 6 vs. Java 5
(handling in Java 6 is broken).



On 03.11.2009 14:00, Benson Margulies wrote:
> Here's the relevant log traffic of the missing method. I can get past this
> problem by putting xalan into the endorsed directory, but I should not have
> to do that when using the JAXP 1.4 API to create XPathFactory.
> Caused by: java.lang.NoSuchMethodError:
> org.apache.xpath.XPathContext.<init>(Z)V
>     at org.apache.xpath.jaxp.XPathImpl.eval(
>     at org.apache.xpath.jaxp.XPathImpl.evaluate(
>     at
> com.basistech.vws.env.GazetteerConfigManager.initialGazetteerConfiguration(
>     at
> com.basistech.vws.env.RLPEnvironmentManager.initialGazetteerConfiguration(
>     at
> com.basistech.vws.env.RLPEnvironmentManager.initialConfiguration(
>     at
> com.basistech.vws.env.RLPEnvironmentManager.initialize(
>     ... 48 more
> org.apache.cxf.common.injection.ResourceInjector  - method annotated by
> @PostConstruct throws exception when invoked
> java.lang.reflect.InvocationTargetException
> On Tue, Nov 3, 2009 at 7:48 AM, André Warnier <> wrote:
>> Benson Margulies wrote:
>>> I have a webapp that makes calls to the JAXP 1.4/Java 1.6 APIs that allow
>>> the caller to pass in the class name of implementation classes.
>>> It all works find standalone. It works fine in Jetty. It fails in Tomcat
>>> 6.0.20. The error is a missing method in a Xalan class; as if Tomcat has
>>> somehow gotten an older version of Xalan into the classpath.
>>> I don't see any likely suspects in the Tomcat tree, so I'm momentarily
>>> mystified.
>>>  A piece of the logfile where the error messages occur may help someone to
>> help you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message