You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Becky Givner <bg...@uslynx.com> on 2001/05/15 20:33:40 UTC

using Xalan with j2ee

I am having problems with what appears to be multiple class definitions.

When I tried to use Xalan 2.0.1 on a Linux machine that was using Apache Jserv, with j2ee in the classpath
(j2ee.jar has a different Node class in package org.w3c.dom than is in xalan.jar)

The error reported from SimpleXSLTServlet was:

-----------------------------------------------------------------------------------------------------------------------------
java.lang.NoSuchMethodError: org.w3c.dom.Node: method isSupported(Ljava/lang/String;Ljava/lang/String;)Z not found
-----------------------------------------------------------------------------------------------------------------------------

When I tried to run SimpleTransform.java from the console, I got this error:

-----------------------------------------------------------------------------------------------------------------------------
java.lang.NoSuchMethodError: org.w3c.dom.Node: method getLocalName()Ljava/lang/String; not found
-----------------------------------------------------------------------------------------------------------------------------

What can I do to avoid these errors and be able to use Xalan to transform XML documents?




Thank you.


Re: using Xalan with j2ee

Posted by Gary L Peskin <ga...@firstech.com>.
Adjust your classpath so that xerces.jar comes before j2ee.jar.

Gary

> Becky Givner wrote:
> 
> I am having problems with what appears to be multiple class
> definitions.
> 
> When I tried to use Xalan 2.0.1 on a Linux machine that was using
> Apache Jserv, with j2ee in the classpath
> (j2ee.jar has a different Node class in package org.w3c.dom than is in
> xalan.jar)
> 
> The error reported from SimpleXSLTServlet was:
> 
> -----------------------------------------------------------------------------------------------------------------------------
> java.lang.NoSuchMethodError: org.w3c.dom.Node: method
> isSupported(Ljava/lang/String;Ljava/lang/String;)Z not found
> -----------------------------------------------------------------------------------------------------------------------------
> 
> When I tried to run SimpleTransform.java from the console, I got this
> error:
> 
> -----------------------------------------------------------------------------------------------------------------------------
> java.lang.NoSuchMethodError: org.w3c.dom.Node: method
> getLocalName()Ljava/lang/String; not found
> -----------------------------------------------------------------------------------------------------------------------------
> 
> What can I do to avoid these errors and be able to use Xalan to
> transform XML documents?
> 
> 
> 
> 
> Thank you.
>