HAS ANYONE SOME IDEA ABOUT WHAT IS GOING ON WITH MY APACHE? I can visit the rpcrouter, but when running the stockquote sample is like this:
1) i can deploy 2) can't call the method from the service (because of the exception you see at the end of the mail) 3) I can undeploy service (running the testit.sh) So what is wrong with the Content is not allowed in prolog??? Searched the net, is seems because of UTF-8 but I thing this should not be the problem!!! dovle > Great helping me last time. Tx. But now I have a big problem. I get the > following exception on server side (I will attach the request and response > at the end of the mail): > > > <faultcode>SOAP-ENV:Server</faultcode> > <faultstring>Exception from service object: Content is not allowed in > prolog.</faultstring> > <faultactor>/soap/servlet/rpcrouter</faultactor> > <detail> > <stackTrace>org.xml.sax.SAXParseException: Content is not allowed in > prolog. at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267) > at > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:2 >01) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122) > > > There seems to be a problem with the fact that the client sends a > Content-Tye header like this (might be because of the utf-8 encoding???) : > Content-Type: text/xml; charset=utf-8 > > But when requiring the installed services, the client uses the same headers > and works fine. (?!??!) So might not be this the cause. > > Please help me (quick) > dovle > > > Here is the request and the answer > > REQUEST: > POST /soap/servlet/rpcrouter HTTP/1.0 > Host: localhost:8081 > Content-Type: text/xml; charset=utf-8 > Content-Length: 453 > SOAPAction: "" > > <?xml version='1.0' encoding='UTF-8'?> > <SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <SOAP-ENV:Body> > <ns1:getQuote xmlns:ns1="urn:xmltoday-delayed-quotes" > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> > <symbol xsi:type="xsd:string">IBM</symbol> > </ns1:getQuote> > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > > > RESPONSE: (huge stack trace) > HTTP/1.1 500 Internal Server Error > Set-Cookie: JSESSIONID=97A682E53E7F22821687EE9823955263; Path=/soap > Content-Type: text/xml; charset=utf-8 > Content-Length: 4073 > Date: Thu, 07 Nov 2002 14:54:05 GMT > Server: A<faultcode>SOAP-ENV:Server</faultcode> > <faultstring>Exception from service object: Content is not allowed in > prolog.</faultstring> > <faultactor>/soap/servlet/rpcrouter</faultactor> > <detail> > <stackTrace>org.xml.sax.SAXParseException: Content is not allowed in > prolog. at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267) > at > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:2 >01) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122) > pache Coyote/1.0 > Connection: close > > <?xml version='1.0' encoding='UTF-8'?> > <SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <SOAP-ENV:Body> > <SOAP-ENV:Fault> > <faultcode>SOAP-ENV:Server</faultcode> > <faultstring>Exception from service object: Content is not allowed in > prolog.</faultstring> > <faultactor>/soap/servlet/rpcrouter</faultactor> > <detail> > <stackTrace>org.xml.sax.SAXParseException: Content is not allowed in > prolog. at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267) > at > org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:2 >01) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122) at > samples.stockquote.StockQuoteService.getQuote(StockQuoteService.java:81) at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >9) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.soap.server.RPCRouter.invoke(Unknown Source) > at org.apache.soap.providers.RPCJavaProvider.invoke(Unknown Source) > at org.apache.soap.server.http.RPCRouterServlet.doPost(Unknown Source) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio >nFilterChain.java:247) at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC >hain.java:193) at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j >ava:260) at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo >keNext(StandardPipeline.java:643) at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j >ava:191) at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo >keNext(StandardPipeline.java:643) at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18 >0) at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo >keNext(StandardPipeline.java:643) at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve >.java:170) at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo >keNext(StandardPipeline.java:641) at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17 >2) at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo >keNext(StandardPipeline.java:641) at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav >a:174) at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo >keNext(StandardPipeline.java:643) at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn >ection(Http11Protocol.java:380) at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >va:533) at java.lang.Thread.run(Thread.java:536) > </stackTrace> > </detail> > </SOAP-ENV:Fault> > > </SOAP-ENV:Body> > </SOAP-ENV:Envelope> -- To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>