Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 61827 invoked from network); 1 Jun 2006 22:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2006 22:55:59 -0000 Received: (qmail 78742 invoked by uid 500); 1 Jun 2006 22:55:53 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 77823 invoked by uid 500); 1 Jun 2006 22:55:49 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 77812 invoked by uid 99); 1 Jun 2006 22:55:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 15:55:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of Jeffrey.W.Scudder@boeing.com designates 130.76.64.48 as permitted sender) Received: from [130.76.64.48] (HELO slb-smtpout-01.boeing.com) (130.76.64.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 15:55:48 -0700 Received: from blv-av-01.boeing.com ([192.42.227.216]) by slb-smtpout-01.boeing.com (8.9.2.MG.10092003/8.8.5-M2) with ESMTP id PAA02196; Thu, 1 Jun 2006 15:55:19 -0700 (PDT) Received: from xch-swbh-11.sw.nos.boeing.com (localhost [127.0.0.1]) by blv-av-01.boeing.com (8.11.3/8.11.3/MBS-AV-LDAP-01) with ESMTP id k51MtNB08721; Thu, 1 Jun 2006 15:55:24 -0700 (PDT) Received: from XCH-SW-4V1.sw.nos.boeing.com ([129.172.87.226]) by xch-swbh-11.sw.nos.boeing.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 1 Jun 2006 15:55:23 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Axis 2 example web service fails Date: Thu, 1 Jun 2006 15:55:23 -0700 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Axis 2 example web service fails Thread-Index: AcaFwsVgP989GoKTS1iqPaAOaQTJxwAC2Gzg From: "Scudder, Jeffrey W" To: , "Martin Gainty" X-OriginalArrivalTime: 01 Jun 2006 22:55:23.0887 (UTC) FILETIME=[775B57F0:01C685CE] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Here is the WSDL for my service. After looking at it I tried changing the url in the namespace from http://jeff.scudder to http://jeff.scudder/xsd =20 Thank you, Jeff -----Original Message----- From: Martin Gainty [mailto:mgainty@hotmail.com]=20 Sent: Thursday, June 01, 2006 2:23 PM To: axis-user@ws.apache.org Subject: Re: Axis 2 example web service fails Jeff- Lets take a look at your WSDL Martin -- ********************************************************************* This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: "Scudder, Jeffrey W" To: Sent: Thursday, June 01, 2006 5:07 PM Subject: RE: Axis 2 example web service fails Since the test service I wrote was in the following package: package scudder.jeff=20 I modified the message sent from the client to add a namespace. It is now: Hello Axis2 But I still get exactly the same error from the client and the same error in the tomcat logs. The first line of tomcat's exception stack says:=20 "SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope." Which makes me think that the problem occurs before the contents of the soap body are ever examined. Thank you, Jeff Scudder -----Original Message----- From: Junaid.Bhatra@mro.com [mailto:Junaid.Bhatra@mro.com]=20 Sent: Thursday, June 01, 2006 11:09 AM To: axis-user@ws.apache.org Subject: Re: Axis 2 example web service fails The first child element of SOAP Body () is not namespace qualified. - Junaid =20 "Scudder, Jeffrey W" =20 cc=20 06/01/2006 01:58 PM Subject=20 Axis 2 example web service fails =20 Please respond to axis-user@ws.apac he.org =20 =20 Hello all, I sent out an email a week ago and am resubmitting my question. I am getting an exception in Tomcat when running Axis2 1.0 with the example service from the user's guide. I had previously followed the example for Axis 0.95 and everything worked perfectly. With 1.0 I had to change the libraries used in my code and I eventually started from a clean slate trying to track down the cause of this problem. I wrote a web service in java, packaged into an .aar and dropped it into Axis2. I have also written a simple client which sends a SOAP:Envelope to invoke the echo service. When I send the following xml: Hello Axis2 I receive the following response from the server: Error reading response from service provider: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/axis2/services/JeffService A peek into the Tomcat logs reveals the following exception stack trace: - Servlet.service() for servlet AxisServlet threw exception org.apache.axiom.om.OMException: SOAPEnvelope must contain a body element which is either first or second child element of the SOAPEnvelope. at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getBody(SOAPEnvelopeImp l.java:142) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.addChild(SOAPEnvelopeIm pl.java:103) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeI mpl.java:82) at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine. java:183) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java :168) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) - Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:599) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:195) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:1 17) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:1 91) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspF actoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryIm pl.java:75) at org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp .java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio nDispatcher.java:465) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp atcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat cher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java :363) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java :284) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.j ava:228) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :134) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) Have I formatted my request incorrectly for the new Axis2 1.0 handlers? Any help would be greatly appreciated. Thank you, Jeff Scudder --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org