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 "Francis.Vanhemmens" <Fr...@portima.com> on 2000/12/08 15:14:33 UTC

problem having the soap samples working with TOMCAT, any help app reciated ! :-)

Hi ! I am actually trying to have the samples of soap-2.0 running on the
TomCat 3.2

i installed java 2 SDK v1.3
Tomcat 3.2 (jakarta-tomcat 3.2)
Xerces J v1.2.2
Soap v2.0

TomCat is running,
The admin interface for soap is working ( list, deploy, undeploy )

but when i try to use (first soap call from the java application) the soap
calculator sample, or register the calculator using the dd.xml file, here is
the error i get :

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(XMLDocume
ntScanner.java:625)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:804)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)
        at org.apache.soap.rpc.Call.invoke(Call.java:157)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:1
88)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=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:18
2)
        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:404)
        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:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)
]
        at org.apache.soap.rpc.Call.invoke(Call.java:167)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:1
88)



Has someone got the same problem, did i something wrong ? 
was somebody able to make the samples working ? and what did he to be
successfull ?

I need your help !

Thanx in advance guys ;-)



Re: problem having the soap samples working with TOMCAT, any help appreciated ! :-)

Posted by Gregor Rayman <gr...@gmx.de>.
"Francis.Vanhemmens" <Fr...@portima.com> writes:
To: <so...@xml.apache.org>
Sent: Friday, December 08, 2000 3:14 PM
Subject: problem having the soap samples working with TOMCAT, any help
appreciated ! :-)


> Hi ! I am actually trying to have the samples of soap-2.0 running on the
> TomCat 3.2
>
> i installed java 2 SDK v1.3
> Tomcat 3.2 (jakarta-tomcat 3.2)
> Xerces J v1.2.2
> Soap v2.0
>
> TomCat is running,
> The admin interface for soap is working ( list, deploy, undeploy )
>
> but when i try to use (first soap call from the java application) the soap
> calculator sample, or register the calculator using the dd.xml file, here
is
> the error i get :
>
> org.xml.sax.SAXParseException: The markup in the document preceding the
root
> element must be well-formed.

I've had the same problem. Make sure, xerces.jar is the first jar in the
classpath.
On linux, simply rename it to axerces.jar

--
gR




Re: problem having the soap samples working with TOMCAT, any help appreciated ! :-)

Posted by Gregor Rayman <gr...@gmx.de>.
"Francis.Vanhemmens" <Fr...@portima.com> writes:
To: <so...@xml.apache.org>
Sent: Friday, December 08, 2000 3:14 PM
Subject: problem having the soap samples working with TOMCAT, any help
appreciated ! :-)


> Hi ! I am actually trying to have the samples of soap-2.0 running on the
> TomCat 3.2
>
> i installed java 2 SDK v1.3
> Tomcat 3.2 (jakarta-tomcat 3.2)
> Xerces J v1.2.2
> Soap v2.0
>
> TomCat is running,
> The admin interface for soap is working ( list, deploy, undeploy )
>
> but when i try to use (first soap call from the java application) the soap
> calculator sample, or register the calculator using the dd.xml file, here
is
> the error i get :
>
> org.xml.sax.SAXParseException: The markup in the document preceding the
root
> element must be well-formed.

I've had the same problem. Make sure, xerces.jar is the first jar in the
classpath.
On linux, simply rename it to axerces.jar

--
gR




RE: problem having the soap samples working with TOMCAT, any help appreciated ! :-)

Posted by Jason Townsend <ja...@technolog.com>.
I have the same problem.  I have some additional information.  If a execute

java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list

I get:

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(XMLDocume
ntScanner.java:625)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:804)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)

etc

If I use the web admin service I can list/deploy services but once deployed
the services will not work.

Cheers,
____________________________________________________________________________
Jason Townsend					Telephone: +44 1629 823611
Development Engineer 					Fax: +44 1629 826597
Technolog Ltd 						Email: jason@technolog.com
Ravenstor Rd 						Web: http://www.technolog.com/
Wirksworth
Derbyshire
DE4 4FY
United Kingdom

This email and the information that it contains may be confidential, legally
privileged and protected by law. Access by the intended recipient only is
authorised. Any liability (in negligence or otherwise) arising from any
third party acting, or refraining from acting, on any information contained
in this email is hereby excluded. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in
any medium. Copyright in this email and attachments created by us belongs to
Technolog Limited (The Company): the author also asserts the right to be
identified as such and object to any misuse. The Company does not authorise
the making of any contracts via email. The views expressed in this email are
not necessarily those held by the Company. Please note that the Company
whilst trying to ensure that the attachments to any emails are virus free
cannot accept responsibility for situations where this is not the case.



-----Original Message-----
From: Francis.Vanhemmens [mailto:Francis.Vanhemmens@portima.com]
Sent: 08 December 2000 14:15
To: 'soap-user@xml.apache.org'
Subject: problem having the soap samples working with TOMCAT, any help
appreciated ! :-)


Hi ! I am actually trying to have the samples of soap-2.0 running on the
TomCat 3.2

i installed java 2 SDK v1.3
Tomcat 3.2 (jakarta-tomcat 3.2)
Xerces J v1.2.2
Soap v2.0

TomCat is running,
The admin interface for soap is working ( list, deploy, undeploy )

but when i try to use (first soap call from the java application) the soap
calculator sample, or register the calculator using the dd.xml file, here is
the error i get :

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(XMLDocume
ntScanner.java:625)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:804)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)
        at org.apache.soap.rpc.Call.invoke(Call.java:157)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:1
88)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=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:18
2)
        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:404)
        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:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)
]
        at org.apache.soap.rpc.Call.invoke(Call.java:167)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:1
88)



Has someone got the same problem, did i something wrong ?
was somebody able to make the samples working ? and what did he to be
successfull ?

I need your help !

Thanx in advance guys ;-)



RE: problem having the soap samples working with TOMCAT, any help appreciated ! :-)

Posted by Jason Townsend <ja...@technolog.com>.
I have the same problem.  I have some additional information.  If a execute

java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list

I get:

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(XMLDocume
ntScanner.java:625)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:804)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)

etc

If I use the web admin service I can list/deploy services but once deployed
the services will not work.

Cheers,
____________________________________________________________________________
Jason Townsend					Telephone: +44 1629 823611
Development Engineer 					Fax: +44 1629 826597
Technolog Ltd 						Email: jason@technolog.com
Ravenstor Rd 						Web: http://www.technolog.com/
Wirksworth
Derbyshire
DE4 4FY
United Kingdom

This email and the information that it contains may be confidential, legally
privileged and protected by law. Access by the intended recipient only is
authorised. Any liability (in negligence or otherwise) arising from any
third party acting, or refraining from acting, on any information contained
in this email is hereby excluded. If you are not the intended recipient,
please notify the sender immediately and do not disclose the contents to any
other person, use it for any purpose, or store or copy the information in
any medium. Copyright in this email and attachments created by us belongs to
Technolog Limited (The Company): the author also asserts the right to be
identified as such and object to any misuse. The Company does not authorise
the making of any contracts via email. The views expressed in this email are
not necessarily those held by the Company. Please note that the Company
whilst trying to ensure that the attachments to any emails are virus free
cannot accept responsibility for situations where this is not the case.



-----Original Message-----
From: Francis.Vanhemmens [mailto:Francis.Vanhemmens@portima.com]
Sent: 08 December 2000 14:15
To: 'soap-user@xml.apache.org'
Subject: problem having the soap samples working with TOMCAT, any help
appreciated ! :-)


Hi ! I am actually trying to have the samples of soap-2.0 running on the
TomCat 3.2

i installed java 2 SDK v1.3
Tomcat 3.2 (jakarta-tomcat 3.2)
Xerces J v1.2.2
Soap v2.0

TomCat is running,
The admin interface for soap is working ( list, deploy, undeploy )

but when i try to use (first soap call from the java application) the soap
calculator sample, or register the calculator using the dd.xml file, here is
the error i get :

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(XMLDocume
ntScanner.java:625)
        at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:804)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:380)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:908)
        at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)
        at org.apache.soap.rpc.Call.invoke(Call.java:157)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:1
88)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=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:18
2)
        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:404)
        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:79
7)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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)
]
        at org.apache.soap.rpc.Call.invoke(Call.java:167)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:1
88)



Has someone got the same problem, did i something wrong ?
was somebody able to make the samples working ? and what did he to be
successfull ?

I need your help !

Thanx in advance guys ;-)