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 "Malani, Prakash" <PM...@eBuilt.com> on 2001/01/16 18:53:32 UTC

Problem running the address sample...


Hi,

How are you doing?  I have just installed SOAP with Tomcat.  The following
URL: http://localhost:8080/soap/index.html works fine.  I can also run the
'admin' client.  But when I try to visit SOAP RPC router URL for this SOAP
server, tomcat error out with the following:
2001-01-15 06:45:26 - Ctx( /soap ): 404 R( /soap + /servlet/rpcrouter +
null) null

Also, I tried the example, and I get the following stack trace:
C:\soap-2_0>java samples.addressbook.GetAddress
http://localhost:8080/soap/servl
et/rpcrouter "John B. Good"
org.xml.sax.SAXParseException: The markup in the document following the root
ele
ment must be well-formed.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056
)
        at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:626)
        at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumen
tScanner.java:680)
        at
org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher
.dispatch(XMLDocumentScanner.java:1497)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison
.java:85)
        at org.apache.soap.rpc.Call.invoke(Call.java:157)
        at samples.addressbook.GetAddress.main(GetAddress.java:125)
Caught SOAPException (SOAP-ENV:Protocol): <head><title>Not Found
(404)</title></
head>
<body><h1>Not Found (404)</h1>
<b>Original request:</b> /soap/servlet/rpcrouter<br><br>
<b>Not found request:</b> /soap/servlet/rpcrouter</body>

Here is my classpath for soap:
CLASSPATH=.;C:\soap-2_0;C:\soap-2_0\lib\soap.jar;C:\xerces-1_2_3\xerces.jar

Here is my classpath for tomcat:
Using CLASSPATH:
C:\xerces-1_2_3\xerces.jar;C:\jakarta-tomcat-3.2.1\classes;C:\j
akarta-tomcat-3.2.1\lib\ant.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jaka
rta-
tomcat-3.2.1\lib\servlet.jar;C:\jakarta-tomcat-3.2.1\lib\parser.jar;C:\jakar
ta-t
omcat-3.2.1\lib\webserver.jar;C:\jakarta-tomcat-3.2.1\lib\jasper.jar;.;C:\so
ap-2
_0;C:\soap-2_0\lib\soap.jar;C:\xerces-1_2_3\xerces.jar;C:\JBuilder4\jdk1.3\l
ib\t
ools.jar

Is there some problem with xerces 1.2.3?  Do I need to do something
special/other...

Any help in this regard is greatly appreciated,
-Prakash




Re: Problem running the address sample...

Posted by "David C. Hicks" <dh...@machturtle.com>.
Did you make sure to install the latest Xerces classes in the front of
your classpath?  Tomcat comes with an older version of Xerces that does
not work with SOAP.  You need to make sure that the Tomcat classpath has
a newer Xerces.jar file in the front of the path.


"Malani, Prakash" wrote:
> 
> Hi,
> 
> How are you doing?  I have just installed SOAP with Tomcat.  The following
> URL: http://localhost:8080/soap/index.html works fine.  I can also run the
> 'admin' client.  But when I try to visit SOAP RPC router URL for this SOAP
> server, tomcat error out with the following:
> 2001-01-15 06:45:26 - Ctx( /soap ): 404 R( /soap + /servlet/rpcrouter +
> null) null
> 
> Also, I tried the example, and I get the following stack trace:
> C:\soap-2_0>java samples.addressbook.GetAddress
> http://localhost:8080/soap/servl
> et/rpcrouter "John B. Good"
> org.xml.sax.SAXParseException: The markup in the document following the root
> ele
> ment must be well-formed.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056
> )
>         at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
> LDocumentScanner.java:626)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumen
> tScanner.java:680)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher
> .dispatch(XMLDocumentScanner.java:1497)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> canner.java:381)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
>         at
> org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison
> .java:85)
>         at org.apache.soap.rpc.Call.invoke(Call.java:157)
>         at samples.addressbook.GetAddress.main(GetAddress.java:125)
> Caught SOAPException (SOAP-ENV:Protocol): <head><title>Not Found
> (404)</title></
> head>
> <body><h1>Not Found (404)</h1>
> <b>Original request:</b> /soap/servlet/rpcrouter<br><br>
> <b>Not found request:</b> /soap/servlet/rpcrouter</body>
> 
> Here is my classpath for soap:
> CLASSPATH=.;C:\soap-2_0;C:\soap-2_0\lib\soap.jar;C:\xerces-1_2_3\xerces.jar
> 
> Here is my classpath for tomcat:
> Using CLASSPATH:
> C:\xerces-1_2_3\xerces.jar;C:\jakarta-tomcat-3.2.1\classes;C:\j
> akarta-tomcat-3.2.1\lib\ant.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jaka
> rta-
> tomcat-3.2.1\lib\servlet.jar;C:\jakarta-tomcat-3.2.1\lib\parser.jar;C:\jakar
> ta-t
> omcat-3.2.1\lib\webserver.jar;C:\jakarta-tomcat-3.2.1\lib\jasper.jar;.;C:\so
> ap-2
> _0;C:\soap-2_0\lib\soap.jar;C:\xerces-1_2_3\xerces.jar;C:\JBuilder4\jdk1.3\l
> ib\t
> ools.jar
> 
> Is there some problem with xerces 1.2.3?  Do I need to do something
> special/other...
> 
> Any help in this regard is greatly appreciated,
> -Prakash
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org

-- 
David C. Hicks
Mach Turtle Technologies,  Inc. (www.machturtle.com)
dhicks@machturtle.com
770-753-8810

Re: Problem running the address sample...

Posted by "David C. Hicks" <dh...@machturtle.com>.
Did you make sure to install the latest Xerces classes in the front of
your classpath?  Tomcat comes with an older version of Xerces that does
not work with SOAP.  You need to make sure that the Tomcat classpath has
a newer Xerces.jar file in the front of the path.


"Malani, Prakash" wrote:
> 
> Hi,
> 
> How are you doing?  I have just installed SOAP with Tomcat.  The following
> URL: http://localhost:8080/soap/index.html works fine.  I can also run the
> 'admin' client.  But when I try to visit SOAP RPC router URL for this SOAP
> server, tomcat error out with the following:
> 2001-01-15 06:45:26 - Ctx( /soap ): 404 R( /soap + /servlet/rpcrouter +
> null) null
> 
> Also, I tried the example, and I get the following stack trace:
> C:\soap-2_0>java samples.addressbook.GetAddress
> http://localhost:8080/soap/servl
> et/rpcrouter "John B. Good"
> org.xml.sax.SAXParseException: The markup in the document following the root
> ele
> ment must be well-formed.
>         at
> org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056
> )
>         at
> org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
> LDocumentScanner.java:626)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumen
> tScanner.java:680)
>         at
> org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher
> .dispatch(XMLDocumentScanner.java:1497)
>         at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> canner.java:381)
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
>         at
> org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison
> .java:85)
>         at org.apache.soap.rpc.Call.invoke(Call.java:157)
>         at samples.addressbook.GetAddress.main(GetAddress.java:125)
> Caught SOAPException (SOAP-ENV:Protocol): <head><title>Not Found
> (404)</title></
> head>
> <body><h1>Not Found (404)</h1>
> <b>Original request:</b> /soap/servlet/rpcrouter<br><br>
> <b>Not found request:</b> /soap/servlet/rpcrouter</body>
> 
> Here is my classpath for soap:
> CLASSPATH=.;C:\soap-2_0;C:\soap-2_0\lib\soap.jar;C:\xerces-1_2_3\xerces.jar
> 
> Here is my classpath for tomcat:
> Using CLASSPATH:
> C:\xerces-1_2_3\xerces.jar;C:\jakarta-tomcat-3.2.1\classes;C:\j
> akarta-tomcat-3.2.1\lib\ant.jar;C:\jakarta-tomcat-3.2.1\lib\jaxp.jar;C:\jaka
> rta-
> tomcat-3.2.1\lib\servlet.jar;C:\jakarta-tomcat-3.2.1\lib\parser.jar;C:\jakar
> ta-t
> omcat-3.2.1\lib\webserver.jar;C:\jakarta-tomcat-3.2.1\lib\jasper.jar;.;C:\so
> ap-2
> _0;C:\soap-2_0\lib\soap.jar;C:\xerces-1_2_3\xerces.jar;C:\JBuilder4\jdk1.3\l
> ib\t
> ools.jar
> 
> Is there some problem with xerces 1.2.3?  Do I need to do something
> special/other...
> 
> Any help in this regard is greatly appreciated,
> -Prakash
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org

-- 
David C. Hicks
Mach Turtle Technologies,  Inc. (www.machturtle.com)
dhicks@machturtle.com
770-753-8810