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 "MILLER,MARK M (HP-Corvallis,ex1)" <ma...@hp.com> on 2000/10/18 23:03:30 UTC

RE: Why always get the error "Can not find the method getNamespac eURI" using Xerces 3.1.0

I had the same problem and thought you might want to know the solution. The
problem was not at the application server, it was on my NT workstation.  I
decided to change the java plugin revision that I was using and I noticed a
slight change in the error message.  After perfoming a search at
forum.java.soft.com, I found an article that mentioned the workstation CLASSPATH
needed to be cleared.

Mark
 <<CLASSPATH_prob.htm>> 

-----Original Message-----
From:	John Wang [mailto:jwang@versifi.com]
Sent:	Wednesday, October 11, 2000 11:29 AM
To:	soap-user@xml.apache.org
Subject:	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!