You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Fung, Francis" <FF...@travelersexpress.com> on 2001/01/05 20:09:47 UTC

RE: Does soap need jdk 1.1.x? (No! It's a problem with xerces in classpath)

Hi! I think you all are running into a problem arising from Tomcat 3.2's new
way of appending its jar files to the classpath in tomcat.bat. It appends
all its jars, etc. to a variable CP, and then *prepends* that to the
existing classpath. 

A straightforward solution is to edit tomcat.bat if you want xerces.jar
ahead of tomcat's xml.jar; one way is to manually append xerces.jar to the
CP variable before the tomcat jars are added.

Hope this helps!

Best wishes, 
Francis Fung

-----Original Message-----
From: Kent Loving [mailto:KLoving@Paradigm4.com]
Sent: Friday, January 05, 2001 1:00 PM
To: 'soap-user@xml.apache.org'
Subject: RE: Does soap need jdk 1.1.x? (was: Help me Obi-Wan)


I'm glad, I think, that this doesn't make sense to you either.   Here's what
I'm trying:

1) OS is Win NT 4 +SP5
2) soap is 2.0 [did I see somewhere that something did't work with 2.0?]
3) xerces is 1.2.3
4) tomcat is 3.2.1
5) open new DOS window, environment variables before starting tomcat:
CLASSPATH=d:\j\xerces-1_2_3\xerces.jar;d:\j\soap\lib\soap.jar
JAVA_HOME=d:\j\jdk  <which is 1.2.2
PATH=d:\j\jdk\bin;C:\WINNT\system32;C:\WINNT;C:\DMI\bin;D:\j\jakarta-tomcat-
3.2.1\bin
6) cd to D:\j\jakarta-tomcat-3.2.1\bin and run tomcat start
tomcat reports:
Using CLASSPATH:
d:\j\xerces-1_2_3\xerces.jar;d:\j\soap\lib\soap.jar;D:\j\jakarta-tomcat-3.2.
1\classes;D:\j\jakarta-tomcat-3.2.1\lib\ant.jar;D:\j\jakarta-tomcat-3.2.1\li
b\jasper.jar;D:\j\jakarta-tomcat-3.2.1\lib\jaxp.jar;D:\j\jakarta-tomcat-3.2.
1\lib\parser.jar;D:\j\jakarta-tomcat-3.2.1\lib\servlet.jar;D:\j\jakarta-tomc
at-3.2.1\lib\webserver.jar;

7) now cd to D:\j\SOAP\samples\stockquote
8) try to run command line deploy tool:
java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

I get exception:
Exception in thread "main" java.lang.NoSuchMethodError: org.w3c.dom.Node:
method getNamespaceURI()Ljava/lang/String; not found
        at
org.apache.soap.server.DeploymentDescriptor.fromXML(DeploymentDescriptor.jav
a, Compiled Code)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java,
Compiled Code)

If I change JAVA_HOME and PATH to point to my jdk1.1.8 before starting
tomcat, then I don't get that exception, the deploy tool works and the
GetQuote client works.


-----Original Message-----
From: Amandeep.Singh@vodafone-us.com
[mailto:Amandeep.Singh@vodafone-us.com]
Sent: Friday, January 05, 2001 10:34 AM
To: soap-user@xml.apache.org
Subject: Re: Does soap need jdk 1.1.x? (was: Help me Obi-Wan)


It should work with 1.2.x. There must be something wrong with your class
path setting. Try to point it back to jdk 1.2.2. If it doesn't work then
there is something wrong with your classpath setting. Now to answer your
question..... No it does not make any sense :)
aman.


 

                    Kent Loving

                    <KLoving@Para        To:
"'soap-user@xml.apache.org'" <so...@xml.apache.org>      
                    digm4.com>           cc:

                                         Subject:     Does soap need jdk
1.1.x? (was: Help me Obi-Wan)        
                    01/05/01

                    06:43 AM

                    Please

                    respond to

                    soap-user

 

 




I had this problem and fixed it by using JDK 1.1.8 instead of 1.2.2.  I
already had Xerces in the classpath (at the front).

The Xerces SAX examples didn't work with jdk1.2.2, but they did with 1.1.8.
So before starting tomcat, I set the JAVA_HOME and the PATH to point to
jdk1.1.8.  Then all xerces examples work as well as the SOAP examples.

Does that make sense?

-----Original Message-----
From: Eric Cotter [mailto:Eric.Cotter@Qsent.com]
Sent: Thursday, January 04, 2001 5:49 PM
To: 'soap-user@xml.apache.org'
Subject: RE: Help me Obi-Wan


Whew!....it works!

Thanks for all your athletic support.  No really...it's up and "Jive
Talking". I'm so excited it's like a Mary Katherine Gallagher moment!

I had to place the Xerces in my windows environmental variable as well as
my
Tomcat.bat file. hmmm.....something seems intrinsicly wrong with that.  But
anyhow it's up and running!

Thanks!

Eric

-----Original Message-----
From: Amandeep.Singh@vodafone-us.com
[mailto:Amandeep.Singh@vodafone-us.com]
Sent: Thursday, January 04, 2001 4:04 PM
To: soap-user@xml.apache.org
Subject: RE: Help me Obi-Wan


I have it working with xerces1.2.3 and soap 2.0. It gave me a problem but
after switching jar files in classpath it worked. Make sure you don't have
multiple xerces.jar file in your classpath. Just echo the classpath before
running the client. My setup is on linux and also I it works in Solaris. It
should work in windows as well.
                                                                    aman.




                    Eric Cotter

                    <Eric.Cotter@        To:
"'soap-user@xml.apache.org'" <so...@xml.apache.org>
                    Qsent.com>           cc:

                                         Subject:     RE: Help me Obi-Wan

                    01/04/01

                    03:57 PM

                    Please

                    respond to

                    soap-user








Thank you very much for the reply....

I have xerces 1.2.3 as well and I get the same results. I'm thinking that I
dont' have my Tomcat.bat file setup correct.  There is the section where
the
bat file iterates through the .jar files in the \lib directory.  Is it
advised the you hard code the set
classpath=C:\apache_group\xerces\xerces.jar in the bat file prior to the
\lib fetching?

I have it now just set as an environmental variable in my classpath. By the
way I'm running win2k server. *doh*

Thanks again very much..

Eric

-----Original Message-----
From: Peter Go [mailto:peter.go@bea.com]
Sent: Thursday, January 04, 2001 2:54 PM
To: soap-user@xml.apache.org
Subject: RE: Help me Obi-Wan


I don't know if this is related but I am using Xerces 1.2.3 and it works
great. Xerces 2.0 however would not work with SOAP 2.0.

-----Original Message-----
From: Eric Cotter [mailto:Eric.Cotter@qsent.com]
Sent: Thursday, January 04, 2001 5:35 PM
To: 'soap-user@xml.apache.org'
Subject: Help me Obi-Wan


Hello all :)

Let me first say that I'm thankful that such community resource exists!

I'm having some issues with setting and even running anything in the
soap-2_0 jar.  I believe that I have followed the installation correctly
for
the xerces in Tomcat 3.2 but I'm still getting some errors when running
anything.

I get the following message when running any client.

###################################################################
  URL= http://localhost:8080/soap/servlet/rpcrouter
  URN =urn:demo1:exchange
org.xml.sax.SAXParseException: The markup in the document preceding the
root
element must be well-formed.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1016
)
        at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:625)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
atch(XMLDocumentScanner.java:804)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison
.java:85)
        at org.apache.soap.rpc.Call.invoke(Call.java:157)
        at Client.main(Client.java:39)
SOAPException= SOAP-ENV:Protocol, java.lang.NoSuchMethodError
        at org.apache.soap.util.xml.QName.<init>(QName.java:80)
        at org.apache.soap.util.xml.QName.matches(QName.java:146)
        at org.apache.soap.Envelope.unmarshall(Envelope.java:210)
        at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
java:182)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
        at java.lang.Thread.run(Thread.java:484)
############################################################################


###

What gives?   My jars are as follows:

           soap-2_0.jar
           xerces-1-2-2.jar
           xalan-j_1_2_2.jar
           sax2.jar

           and I have in my Classpath xml-tr2.xml.jar ("org.w3c.dom")

jakarta-tomcat-3.2

I have the actual SOAP Admin UI working correctly...I can list, deploy and
undeploy. But when I use the command line tool I cannot deploy...same
errors
as previously mentioned.

I realize that this is something really simple but it's killing me!

Thanks a million!@

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org

Re: Does soap need jdk 1.1.x? (No! It's a problem with xerces in classpath)

Posted by George I Matkovits <ma...@uswest.net>.
IMHO Tomcat 3.2 has some other problems also.  I have been using Tomcat3.2B1 for
many months now with Soap from its earliest IBM release to yesterdays Apache
CVS.  Unfortunately I need the 'openxml.jar' in Java's JRE directory to make it
work :-) ALL. I also hacked Soap extensively, I use it on Linux, I used it with
all the older Java releases from Sun and IBM but with Java2 STDedition1.3 I
still need the very old 'openxml-1.2.jar' I already sent it to several people on
this list off line. Could someone  take and 'own' this Soap/Tomcat problem,
please?
Regards - George

"Fung, Francis" wrote:

> Hi! I think you all are running into a problem arising from Tomcat 3.2's new
> way of appending its jar files to the classpath in tomcat.bat. It appends
> all its jars, etc. to a variable CP, and then *prepends* that to the
> existing classpath.
>
> A straightforward solution is to edit tomcat.bat if you want xerces.jar
> ahead of tomcat's xml.jar; one way is to manually append xerces.jar to the
> CP variable before the tomcat jars are added.
>
> Hope this helps!
>
> Best wishes,
> Francis Fung
>
> -----Original Message-----
> From: Kent Loving [mailto:KLoving@Paradigm4.com]
> Sent: Friday, January 05, 2001 1:00 PM
> To: 'soap-user@xml.apache.org'
> Subject: RE: Does soap need jdk 1.1.x? (was: Help me Obi-Wan)
>
> I'm glad, I think, that this doesn't make sense to you either.   Here's what
> I'm trying:
>
> 1) OS is Win NT 4 +SP5
> 2) soap is 2.0 [did I see somewhere that something did't work with 2.0?]
> 3) xerces is 1.2.3
> 4) tomcat is 3.2.1
> 5) open new DOS window, environment variables before starting tomcat:
> CLASSPATH=d:\j\xerces-1_2_3\xerces.jar;d:\j\soap\lib\soap.jar
> JAVA_HOME=d:\j\jdk  <which is 1.2.2
> PATH=d:\j\jdk\bin;C:\WINNT\system32;C:\WINNT;C:\DMI\bin;D:\j\jakarta-tomcat-
> 3.2.1\bin
> 6) cd to D:\j\jakarta-tomcat-3.2.1\bin and run tomcat start
> tomcat reports:
> Using CLASSPATH:
> d:\j\xerces-1_2_3\xerces.jar;d:\j\soap\lib\soap.jar;D:\j\jakarta-tomcat-3.2.
> 1\classes;D:\j\jakarta-tomcat-3.2.1\lib\ant.jar;D:\j\jakarta-tomcat-3.2.1\li
> b\jasper.jar;D:\j\jakarta-tomcat-3.2.1\lib\jaxp.jar;D:\j\jakarta-tomcat-3.2.
> 1\lib\parser.jar;D:\j\jakarta-tomcat-3.2.1\lib\servlet.jar;D:\j\jakarta-tomc
> at-3.2.1\lib\webserver.jar;
>
> 7) now cd to D:\j\SOAP\samples\stockquote
> 8) try to run command line deploy tool:
> java org.apache.soap.server.ServiceManagerClient
> http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
>
> I get exception:
> Exception in thread "main" java.lang.NoSuchMethodError: org.w3c.dom.Node:
> method getNamespaceURI()Ljava/lang/String; not found
>         at
> org.apache.soap.server.DeploymentDescriptor.fromXML(DeploymentDescriptor.jav
> a, Compiled Code)
>         at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java,
> Compiled Code)
>
> If I change JAVA_HOME and PATH to point to my jdk1.1.8 before starting
> tomcat, then I don't get that exception, the deploy tool works and the
> GetQuote client works.
>
> -----Original Message-----
> From: Amandeep.Singh@vodafone-us.com
> [mailto:Amandeep.Singh@vodafone-us.com]
> Sent: Friday, January 05, 2001 10:34 AM
> To: soap-user@xml.apache.org
> Subject: Re: Does soap need jdk 1.1.x? (was: Help me Obi-Wan)
>
> It should work with 1.2.x. There must be something wrong with your class
> path setting. Try to point it back to jdk 1.2.2. If it doesn't work then
> there is something wrong with your classpath setting. Now to answer your
> question..... No it does not make any sense :)
> aman.
>
>
>
>                     Kent Loving
>
>                     <KLoving@Para        To:
> "'soap-user@xml.apache.org'" <so...@xml.apache.org>
>                     digm4.com>           cc:
>
>                                          Subject:     Does soap need jdk
> 1.1.x? (was: Help me Obi-Wan)
>                     01/05/01
>
>                     06:43 AM
>
>                     Please
>
>                     respond to
>
>                     soap-user
>
>
>
>
>
> I had this problem and fixed it by using JDK 1.1.8 instead of 1.2.2.  I
> already had Xerces in the classpath (at the front).
>
> The Xerces SAX examples didn't work with jdk1.2.2, but they did with 1.1.8.
> So before starting tomcat, I set the JAVA_HOME and the PATH to point to
> jdk1.1.8.  Then all xerces examples work as well as the SOAP examples.
>
> Does that make sense?
>
> -----Original Message-----
> From: Eric Cotter [mailto:Eric.Cotter@Qsent.com]
> Sent: Thursday, January 04, 2001 5:49 PM
> To: 'soap-user@xml.apache.org'
> Subject: RE: Help me Obi-Wan
>
> Whew!....it works!
>
> Thanks for all your athletic support.  No really...it's up and "Jive
> Talking". I'm so excited it's like a Mary Katherine Gallagher moment!
>
> I had to place the Xerces in my windows environmental variable as well as
> my
> Tomcat.bat file. hmmm.....something seems intrinsicly wrong with that.  But
> anyhow it's up and running!
>
> Thanks!
>
> Eric
>
> -----Original Message-----
> From: Amandeep.Singh@vodafone-us.com
> [mailto:Amandeep.Singh@vodafone-us.com]
> Sent: Thursday, January 04, 2001 4:04 PM
> To: soap-user@xml.apache.org
> Subject: RE: Help me Obi-Wan
>
> I have it working with xerces1.2.3 and soap 2.0. It gave me a problem but
> after switching jar files in classpath it worked. Make sure you don't have
> multiple xerces.jar file in your classpath. Just echo the classpath before
> running the client. My setup is on linux and also I it works in Solaris. It
> should work in windows as well.
>                                                                     aman.
>
>                     Eric Cotter
>
>                     <Eric.Cotter@        To:
> "'soap-user@xml.apache.org'" <so...@xml.apache.org>
>                     Qsent.com>           cc:
>
>                                          Subject:     RE: Help me Obi-Wan
>
>                     01/04/01
>
>                     03:57 PM
>
>                     Please
>
>                     respond to
>
>                     soap-user
>
> Thank you very much for the reply....
>
> I have xerces 1.2.3 as well and I get the same results. I'm thinking that I
> dont' have my Tomcat.bat file setup correct.  There is the section where
> the
> bat file iterates through the .jar files in the \lib directory.  Is it
> advised the you hard code the set
> classpath=C:\apache_group\xerces\xerces.jar in the bat file prior to the
> \lib fetching?
>
> I have it now just set as an environmental variable in my classpath. By the
> way I'm running win2k server. *doh*
>
> Thanks again very much..
>
> Eric
>
> -----Original Message-----
> From: Peter Go [mailto:peter.go@bea.com]
> Sent: Thursday, January 04, 2001 2:54 PM
> To: soap-user@xml.apache.org
> Subject: RE: Help me Obi-Wan
>
> I don't know if this is related but I am using Xerces 1.2.3 and it works
> great. Xerces 2.0 however would not work with SOAP 2.0.
>
> -----Original Message-----
> From: Eric Cotter [mailto:Eric.Cotter@qsent.com]
> Sent: Thursday, January 04, 2001 5:35 PM
> To: 'soap-user@xml.apache.org'
> Subject: Help me Obi-Wan
>
> Hello all :)
>
> Let me first say that I'm thankful that such community resource exists!
>
> I'm having some issues with setting and even running anything in the
> soap-2_0 jar.  I believe that I have followed the installation correctly
> for
> the xerces in Tomcat 3.2 but I'm still getting some errors when running
> anything.
>
> I get the following message when running any client.
>
> ###################################################################
>   URL= http://localhost:8080/soap/servlet/rpcrouter
>   URN =urn:demo1:exchange
> org.xml.sax.SAXParseException: The markup in the document preceding the
> root
> element must be well-formed.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1016
> )
>         at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
> LDocumentScanner.java:625)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
> atch(XMLDocumentScanner.java:804)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> canner.java:380)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
>         at
> org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison
> .java:85)
>         at org.apache.soap.rpc.Call.invoke(Call.java:157)
>         at Client.main(Client.java:39)
> SOAPException= SOAP-ENV:Protocol, java.lang.NoSuchMethodError
>         at org.apache.soap.util.xml.QName.<init>(QName.java:80)
>         at org.apache.soap.util.xml.QName.matches(QName.java:146)
>         at org.apache.soap.Envelope.unmarshall(Envelope.java:210)
>         at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
> java:182)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
> )
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.
> java:797)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
> )
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:210)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
> :498)
>         at java.lang.Thread.run(Thread.java:484)
> ############################################################################
>
> ###
>
> What gives?   My jars are as follows:
>
>            soap-2_0.jar
>            xerces-1-2-2.jar
>            xalan-j_1_2_2.jar
>            sax2.jar
>
>            and I have in my Classpath xml-tr2.xml.jar ("org.w3c.dom")
>
> jakarta-tomcat-3.2
>
> I have the actual SOAP Admin UI working correctly...I can list, deploy and
> undeploy. But when I use the command line tool I cannot deploy...same
> errors
> as previously mentioned.
>
> I realize that this is something really simple but it's killing me!
>
> Thanks a million!@
>
> Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


Re: Does soap need jdk 1.1.x? (No! It's a problem with xerces in classpath)

Posted by George I Matkovits <ma...@uswest.net>.
IMHO Tomcat 3.2 has some other problems also.  I have been using Tomcat3.2B1 for
many months now with Soap from its earliest IBM release to yesterdays Apache
CVS.  Unfortunately I need the 'openxml.jar' in Java's JRE directory to make it
work :-) ALL. I also hacked Soap extensively, I use it on Linux, I used it with
all the older Java releases from Sun and IBM but with Java2 STDedition1.3 I
still need the very old 'openxml-1.2.jar' I already sent it to several people on
this list off line. Could someone  take and 'own' this Soap/Tomcat problem,
please?
Regards - George

"Fung, Francis" wrote:

> Hi! I think you all are running into a problem arising from Tomcat 3.2's new
> way of appending its jar files to the classpath in tomcat.bat. It appends
> all its jars, etc. to a variable CP, and then *prepends* that to the
> existing classpath.
>
> A straightforward solution is to edit tomcat.bat if you want xerces.jar
> ahead of tomcat's xml.jar; one way is to manually append xerces.jar to the
> CP variable before the tomcat jars are added.
>
> Hope this helps!
>
> Best wishes,
> Francis Fung
>
> -----Original Message-----
> From: Kent Loving [mailto:KLoving@Paradigm4.com]
> Sent: Friday, January 05, 2001 1:00 PM
> To: 'soap-user@xml.apache.org'
> Subject: RE: Does soap need jdk 1.1.x? (was: Help me Obi-Wan)
>
> I'm glad, I think, that this doesn't make sense to you either.   Here's what
> I'm trying:
>
> 1) OS is Win NT 4 +SP5
> 2) soap is 2.0 [did I see somewhere that something did't work with 2.0?]
> 3) xerces is 1.2.3
> 4) tomcat is 3.2.1
> 5) open new DOS window, environment variables before starting tomcat:
> CLASSPATH=d:\j\xerces-1_2_3\xerces.jar;d:\j\soap\lib\soap.jar
> JAVA_HOME=d:\j\jdk  <which is 1.2.2
> PATH=d:\j\jdk\bin;C:\WINNT\system32;C:\WINNT;C:\DMI\bin;D:\j\jakarta-tomcat-
> 3.2.1\bin
> 6) cd to D:\j\jakarta-tomcat-3.2.1\bin and run tomcat start
> tomcat reports:
> Using CLASSPATH:
> d:\j\xerces-1_2_3\xerces.jar;d:\j\soap\lib\soap.jar;D:\j\jakarta-tomcat-3.2.
> 1\classes;D:\j\jakarta-tomcat-3.2.1\lib\ant.jar;D:\j\jakarta-tomcat-3.2.1\li
> b\jasper.jar;D:\j\jakarta-tomcat-3.2.1\lib\jaxp.jar;D:\j\jakarta-tomcat-3.2.
> 1\lib\parser.jar;D:\j\jakarta-tomcat-3.2.1\lib\servlet.jar;D:\j\jakarta-tomc
> at-3.2.1\lib\webserver.jar;
>
> 7) now cd to D:\j\SOAP\samples\stockquote
> 8) try to run command line deploy tool:
> java org.apache.soap.server.ServiceManagerClient
> http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
>
> I get exception:
> Exception in thread "main" java.lang.NoSuchMethodError: org.w3c.dom.Node:
> method getNamespaceURI()Ljava/lang/String; not found
>         at
> org.apache.soap.server.DeploymentDescriptor.fromXML(DeploymentDescriptor.jav
> a, Compiled Code)
>         at
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java,
> Compiled Code)
>
> If I change JAVA_HOME and PATH to point to my jdk1.1.8 before starting
> tomcat, then I don't get that exception, the deploy tool works and the
> GetQuote client works.
>
> -----Original Message-----
> From: Amandeep.Singh@vodafone-us.com
> [mailto:Amandeep.Singh@vodafone-us.com]
> Sent: Friday, January 05, 2001 10:34 AM
> To: soap-user@xml.apache.org
> Subject: Re: Does soap need jdk 1.1.x? (was: Help me Obi-Wan)
>
> It should work with 1.2.x. There must be something wrong with your class
> path setting. Try to point it back to jdk 1.2.2. If it doesn't work then
> there is something wrong with your classpath setting. Now to answer your
> question..... No it does not make any sense :)
> aman.
>
>
>
>                     Kent Loving
>
>                     <KLoving@Para        To:
> "'soap-user@xml.apache.org'" <so...@xml.apache.org>
>                     digm4.com>           cc:
>
>                                          Subject:     Does soap need jdk
> 1.1.x? (was: Help me Obi-Wan)
>                     01/05/01
>
>                     06:43 AM
>
>                     Please
>
>                     respond to
>
>                     soap-user
>
>
>
>
>
> I had this problem and fixed it by using JDK 1.1.8 instead of 1.2.2.  I
> already had Xerces in the classpath (at the front).
>
> The Xerces SAX examples didn't work with jdk1.2.2, but they did with 1.1.8.
> So before starting tomcat, I set the JAVA_HOME and the PATH to point to
> jdk1.1.8.  Then all xerces examples work as well as the SOAP examples.
>
> Does that make sense?
>
> -----Original Message-----
> From: Eric Cotter [mailto:Eric.Cotter@Qsent.com]
> Sent: Thursday, January 04, 2001 5:49 PM
> To: 'soap-user@xml.apache.org'
> Subject: RE: Help me Obi-Wan
>
> Whew!....it works!
>
> Thanks for all your athletic support.  No really...it's up and "Jive
> Talking". I'm so excited it's like a Mary Katherine Gallagher moment!
>
> I had to place the Xerces in my windows environmental variable as well as
> my
> Tomcat.bat file. hmmm.....something seems intrinsicly wrong with that.  But
> anyhow it's up and running!
>
> Thanks!
>
> Eric
>
> -----Original Message-----
> From: Amandeep.Singh@vodafone-us.com
> [mailto:Amandeep.Singh@vodafone-us.com]
> Sent: Thursday, January 04, 2001 4:04 PM
> To: soap-user@xml.apache.org
> Subject: RE: Help me Obi-Wan
>
> I have it working with xerces1.2.3 and soap 2.0. It gave me a problem but
> after switching jar files in classpath it worked. Make sure you don't have
> multiple xerces.jar file in your classpath. Just echo the classpath before
> running the client. My setup is on linux and also I it works in Solaris. It
> should work in windows as well.
>                                                                     aman.
>
>                     Eric Cotter
>
>                     <Eric.Cotter@        To:
> "'soap-user@xml.apache.org'" <so...@xml.apache.org>
>                     Qsent.com>           cc:
>
>                                          Subject:     RE: Help me Obi-Wan
>
>                     01/04/01
>
>                     03:57 PM
>
>                     Please
>
>                     respond to
>
>                     soap-user
>
> Thank you very much for the reply....
>
> I have xerces 1.2.3 as well and I get the same results. I'm thinking that I
> dont' have my Tomcat.bat file setup correct.  There is the section where
> the
> bat file iterates through the .jar files in the \lib directory.  Is it
> advised the you hard code the set
> classpath=C:\apache_group\xerces\xerces.jar in the bat file prior to the
> \lib fetching?
>
> I have it now just set as an environmental variable in my classpath. By the
> way I'm running win2k server. *doh*
>
> Thanks again very much..
>
> Eric
>
> -----Original Message-----
> From: Peter Go [mailto:peter.go@bea.com]
> Sent: Thursday, January 04, 2001 2:54 PM
> To: soap-user@xml.apache.org
> Subject: RE: Help me Obi-Wan
>
> I don't know if this is related but I am using Xerces 1.2.3 and it works
> great. Xerces 2.0 however would not work with SOAP 2.0.
>
> -----Original Message-----
> From: Eric Cotter [mailto:Eric.Cotter@qsent.com]
> Sent: Thursday, January 04, 2001 5:35 PM
> To: 'soap-user@xml.apache.org'
> Subject: Help me Obi-Wan
>
> Hello all :)
>
> Let me first say that I'm thankful that such community resource exists!
>
> I'm having some issues with setting and even running anything in the
> soap-2_0 jar.  I believe that I have followed the installation correctly
> for
> the xerces in Tomcat 3.2 but I'm still getting some errors when running
> anything.
>
> I get the following message when running any client.
>
> ###################################################################
>   URL= http://localhost:8080/soap/servlet/rpcrouter
>   URN =urn:demo1:exchange
> org.xml.sax.SAXParseException: The markup in the document preceding the
> root
> element must be well-formed.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1016
> )
>         at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
> LDocumentScanner.java:625)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
> atch(XMLDocumentScanner.java:804)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> canner.java:380)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
>         at
> org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison
> .java:85)
>         at org.apache.soap.rpc.Call.invoke(Call.java:157)
>         at Client.main(Client.java:39)
> SOAPException= SOAP-ENV:Protocol, java.lang.NoSuchMethodError
>         at org.apache.soap.util.xml.QName.<init>(QName.java:80)
>         at org.apache.soap.util.xml.QName.matches(QName.java:146)
>         at org.apache.soap.Envelope.unmarshall(Envelope.java:210)
>         at
> org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.
> java:182)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
>         at org.apache.tomcat.core.Handler.service(Handler.java:286)
>         at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
> )
>         at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.
> java:797)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
> )
>         at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(HttpConnectionHandler.java:210)
>         at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> 416)
>         at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
> :498)
>         at java.lang.Thread.run(Thread.java:484)
> ############################################################################
>
> ###
>
> What gives?   My jars are as follows:
>
>            soap-2_0.jar
>            xerces-1-2-2.jar
>            xalan-j_1_2_2.jar
>            sax2.jar
>
>            and I have in my Classpath xml-tr2.xml.jar ("org.w3c.dom")
>
> jakarta-tomcat-3.2
>
> I have the actual SOAP Admin UI working correctly...I can list, deploy and
> undeploy. But when I use the command line tool I cannot deploy...same
> errors
> as previously mentioned.
>
> I realize that this is something really simple but it's killing me!
>
> Thanks a million!@
>
> Eric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org