You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by John Wang <jw...@versifi.com> on 2000/10/11 20:29:11 UTC

Why always get the error "Can not find the method getNamespaceURI" using Xerces 3.1.0

I am using Tomcat 3.1 and Xerces 3.1.0 and JDK1.2.2, I set the PATH as
below:

set
XERCES_CLASSPATH=C:/software/ibm/XML4J-3_1_0/xml4j.jar;C:/software/ibm/XML4J
-3_1_0/xerces.jar
set SOAP_CLASSPATH=C:/software/Apache_Group/soap-2_0/lib/soap.jar
set
TOMCAT_CLASSPATH=C:/software/Apache_Group/jakarta-tomcat/lib/webserver.jar;C
:/software/Apache_Group/jakarta-tomcat/lib/xml.jar;C:/software/Apache_Group/
jakarta-tomcat/lib/ant.jar;C:/software/Apache_Group/jakarta-tomcat/lib/servl
et.jar;C:/software/Apache_Group/jakarta-tomcat/lib/jasper.jar

Then in the tomcat.bat, I set the CLASSPATH to be:
set
CLASSPATH=%XERCES_CLASSPATH%;%SOAP_CLASSPATH%;%TOMCAT_CLASSPATH%;%JDK1_2_CLA
SSPATH%

but I always get the error when I tried to accedd the getAddress, it said
that "java.lang.NoSuchMethodError: org.w3c.dom.Node: method
getNamespaceURI()Ljava/lang/string:Not found"

I have even tried to remove the xml.jar form TOMCAT_CLASSPATH, but same
error exists.
I am using Xerces 3.1.0 downloaded form IBM web site, I have checked the
source code and am sure that it has that mathod.  The final classpath that
run tomcat is as below:

classPath="C:/software/ibm/XML4J-3_1_0/xml4j.ja
r;C:/software/ibm/XML4J-3_1_0/xerces.jar;.;C:\software\Apache_Group\jakarta-
tomc
at\lib\soap.jar;C:\software\Apache_Group\jakarta-tomcat\lib\webserver.jar;C:
\sof
tware\Apache_Group\jakarta-tomcat\lib\jasper.jar;C:\software\Apache_Group\ja
kart
a-tomcat\lib\servlet.jar;c:/software/sun/jdk1.2.2/lib/tools.jar;c:/software/
sun/
jdk1.2.2/jre/lib/rt.jar;c:/software/sun/jdk1.2.2/jre/lib/i18n.jar;c:/softwar
e/su
n/jdk1.2.2/jre/lib/jaws.jar;c:/software/sun/jdk1.2.2/lib/dt.jar;C:/software/
Apac
he_Group/soap-2_0/lib/soap.jar;c:\software\Apache_Group\soap-2_0"

I do not know why I always get that error, hope someone can help me, thanks
a lot!