You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Smith, Jonathan" <js...@PaineWebber.COM> on 2000/08/03 19:09:09 UTC

Chating List

I would like to talk to other xerces-j dev. If you have ICQ my number is 83986926
 

Johnathan Mark Smith 
Messaging & Collaboration 
PaineWebber Incorporated 
1000 Harbor Boulevard, 6th Floor 
Weehawken, NJ 07087-6791 
Phone: 201.352.1387 
Fax: 201.902.5273 
E-mail: jsmith4@painewebber.com 

 

-----Original Message-----
From: Cabrera, Alan [mailto:adc@multex.com]
Sent: Thursday, August 03, 2000 11:29 AM
To: 'xerces-j-dev@xml.apache.org'
Subject: RE: XERCES and SOAP


Doh!
 
In the $JRUN\lib\ext directory there are two jar files, parser.jar and jaxp.jar.  I renamed them and everything works now.
 
Still, I'm very interested, in a Java internals sort of way, why

*	that node object said it's class was org.apache.xerces.dom.DeferredElementNSImpl 

*	why that class said that it had a getNamespaceURI  methd 

*	why, when I took that method object and invoked getNamespaceURI on that node object, I got the correct results

Thanks,
Alan

-----Original Message-----
From: Ed Staub [mailto:estaub@mediaone.net]
Sent: Thursday, August 03, 2000 11:35 AM
To: xerces-j-dev@xml.apache.org
Subject: RE: XERCES and SOAP


Alan,
 
You may have missed something.  I'd look a little harder for another copy of the interface org.w3c.dom.Node.
 
When you say "I cannot find the classes", are you referring to a org.w3c.dom.* class?
If not, it's irrelevant information.
 
Some VM's include some other jar's by default; in particular, I'd look around for an "xml.jar"; that's the usual culprit.
Whose VM are you using?
 
-Ed
 

-----Original Message-----
From: Cabrera, Alan [mailto:adc@multex.com]
Sent: Thursday, August 03, 2000 11:11 AM
To: 'soap-dev@xml.apache.org'; 'xerces-j-dev@xml.apache.org'
Subject: RE: XERCES and SOAP


Then why is it that when I ask the object for it's class it says "org.apache.xerces.dom.DeferredElementNSImpl"?  Also, why is it that if I ask for all its Method objects I find the getNamespaceURI method?  If I remove the xerces.jar file, I cannot find the classes so I know they don't exist anywhere else.
 
BTW, here's my path
 
D:\dev\xerces-1_1_3\xerces.jar;D:\dev\xml-soap-2_0_rc2\lib\SOAP.jar;D:\dev\xml-soap-2_0_rc2\lib\pop3.jar;D:\dev\xml-soap-2_0_rc2\lib\smtp.jar;D:\dev\xml-soap-2_0_rc2\lib\xmisoap.jar;.;Z:\classes;D:\classes;C:\VisualCafe\JAVA\LIB;C:\VisualCafe\JAVA\LIB\SYMCLASS.ZIP;C:\VisualCafe\JAVA\LIB\CLASSES.ZIP;C:\VisualCafe\JFC\SWINGALL.JAR;C:\VisualCafe\BIN\COMPONENTS\SFC.JAR;C:\VisualCafe\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafe\JAVA\LIB\ERADTOOLS.JAR;C:\VisualCafe\JAVA\LIB\ERADPUBLIC.JAR;C:\VisualCafe\JAVA\LIB\Collections.zip;C:\VisualCafe\JAVA\LIB\jsdk.jar;C:\VisualCafe\JAVA\LIB\SYMTOOLS.JAR;C:\VisualCafe\JAVA\LIB\Olite35.JAR
 
 
Alan

-----Original Message-----
From: Jean-Noel Gadreau [mailto:jngadreau@activcard.com]
Sent: Wednesday, August 02, 2000 7:42 PM
To: 'soap-dev@xml.apache.org'; 'xerces-j-dev@xml.apache.org'
Subject: RE: XERCES and SOAP



I exeprienced the same problem before. The problem is to run SOAP, you need the DOM level 2 classes that are provided in xerces.jar . What happens (I guess) is that you have in your CLASSPATH another XML package that is not compliant with DOM level 2 and that is BEFORE xerces.jar.

Try to put xerces.jar at the beginning of your classpath. 

Regards, 
Jean-Noel Gadreau 

-----Original Message----- 
From: Cabrera, Alan [ mailto:adc@multex.com <ma...@multex.com> ] 
Sent: Wednesday, August 02, 2000 4:36 PM 
To: 'xerces-j-dev@xml.apache.org' 
Cc: 'soap-dev@xml.apache.org' 
Subject: XERCES and SOAP 


I'm trying to run the addressbook demo of SOAP with the command 

java samples.addressbook.GetAddress 
http://localhost:80/apache-soap/rpcrouter/rpcrouter.jsp <http://localhost:80/apache-soap/rpcrouter/rpcrouter.jsp>  "John B. Good" 

and the JSP page throws an error: 

java.lang.NoSuchMethodError: org.w3c.dom.Node: method 
getNamespaceURI()Ljava/lang/String; not found 
        at org.apache.soap.util.xml.QName.matches(QName.java:166) 
        at org.apache.soap.Envelope.unmarshall(Envelope.java, Compiled Code) 
        at jrun__apache2dsoap__rpcrouter__rpcrouter2ejsp24._jspService(jrun__apache2dsoap__rpcrouter__rpcrouter2ejsp24.java, Compiled Code) 
        at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40) 
        at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013) 
        at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code) 
        at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34) 
        at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:174) 
        at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013) 
        at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code) 
        at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88) 
        at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131) 
        at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330) 
        at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354) 
        at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code) 
        at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code) 

Adding some debug messages I found out that an instance, named node, doesn't 
seem to have the method getNamespaceURI().  The class of the instance named 
node is org.apache.xerces.dom.DeferredElementNSImpl.  This class extends a 
class that does have the method; I double checked by printing the methods of 
that class.  Now, here's the really wierd part.  I take the Method object 
getNamespaceURI and invoke it on the node object and I get the correct URI! 

Details: 

        Jrunner v3.0 
        java version 1.2.2 
        XERCES v1.1.3 
        XML-SOAP-2_0_rc2 

Any pointers on where I should look next would be appreciated. 

Thanks, 
Alan