Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 79841 invoked from network); 2 Oct 2007 03:24:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 03:24:33 -0000 Received: (qmail 75284 invoked by uid 500); 2 Oct 2007 03:24:20 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 75264 invoked by uid 500); 2 Oct 2007 03:24:20 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 75253 invoked by uid 99); 2 Oct 2007 03:24:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2007 20:24:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jgawor@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 03:24:20 +0000 Received: by an-out-0708.google.com with SMTP id c5so714256anc for ; Mon, 01 Oct 2007 20:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=IBjqmq1MkCLOLx7nF9UQkikh01aZHwg03Yoca0mdaAs=; b=LsEReK6jaaqmHWY5wdo3Z49Pz1cvNfZfNPmEYokBXlHthkCatJZ/kEwgu1nvtfbETzQFx+cla6gw1Dpq/MZuWPAPJJxLMHh9YvYcNov5Il8xGQg9keTBAZHdOmzq4Q/2ql+rBfVUZOHiGtQmvzCVygdcmV/itLaQBcXS62H31oc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BooDEOhvgKj3Lv00VSk+WmQulHKgTuXaPTOCACH4J2c4Ns/pNvRNcMosPF7vcsvN6DZNue9kJOouuo50aOjWwMzGCsI2oCF1NNWMdNNEU6E0RbA/exFgRPmKZojChAiggvMK3xV42ICas/oV6pLqMT74qSTefmoCrJn7StxV6as= Received: by 10.114.132.5 with SMTP id f5mr1582262wad.1191295439110; Mon, 01 Oct 2007 20:23:59 -0700 (PDT) Received: by 10.114.240.17 with HTTP; Mon, 1 Oct 2007 20:23:59 -0700 (PDT) Message-ID: <5eb405c70710012023qbe11b74y39c60e543fd27fde@mail.gmail.com> Date: Mon, 1 Oct 2007 23:23:59 -0400 From: "Jarek Gawor" To: user@geronimo.apache.org Subject: Re: does geronimo support RESTful Web Service with JAX-WS? In-Reply-To: <12953519.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12937533.post@talk.nabble.com> <5eb405c70709280803ud105f06k6cf30378448fb582@mail.gmail.com> <12953519.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Yuan, I was looking at this today and was able to replicate the problem you saw. It looks like Geronimo did not handle HTTP GET correctly for such web services. The spec is just not very clear on this topic. Anyway, I opened a bug on that issue (https://issues.apache.org/jira/browse/GERONIMO-3494) and wrote a test case for it (http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-rest-war/). Also, I just committed some fixes to trunk and branches/2.0 (so that they will be included in the upcoming 2.0.2 release) that should make this work better. There is still one issue that I have to look at. The HTTP GET will only work if the Content-Type header is set to "application/xml" (with Axis2). Hope this helps, Jarek On 9/29/07, yuanyun wrote: > > Hi,Jarek > > Thanks for your response. > I follow your instruction, and this link > http://cwiki.apache.org/GMOxDOC20/simple-web-service-with-jax-ws.html. > But I still can't make the sample work. > When i access > http://localhost:8080/jaxws-restful/addnumbers/num1/10/num2/20, it outputs > the follwing error in server.log: > ERROR [Axis2WebServiceContainer] Exception occurred while trying to invoke > service method doService() > org.apache.axis2.AxisFault: Cannot create DocumentElement without > destination EPR > at > org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:89) > at > org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:160) > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:111) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:101) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.processGETRequest(Axis2WebServiceContainer.java:307) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2WebServiceContainer.java:243) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2WebServiceContainer.java:202) > at > org.apache.geronimo.axis2.Axis2WebServiceContainer.invoke(Axis2WebServiceContainer.java:164) > at > org.apache.geronimo.webservices.WebServiceContainerInvoker.service(WebServiceContainerInvoker.java:84) > at > org.apache.geronimo.webservices.POJOWebServiceServlet.service(POJOWebServiceServlet.java:79) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at > org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) > at > org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351) > at > org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Unknown Source) > > I also upload the application. > http://www.nabble.com/file/p12953519/jaxws-restful.rar jaxws-restful.rar > I don't know whether there is anything i didn't do. > Thanks for any response in advance again. > > Yuan > > > Jarek Gawor-2 wrote: > > > > Yuan, > > > > What's on that page should work but with some changes. For example, > > you need to provide a slightly different web.xml descriptor. Try with > > the following: > > > > > > > > restful-addnumbers > > restful.server.AddNumbersImpl > > 0 > > > > > > restful-addnumbers > > /addnumbers/* > > > > > > > > As to JSR 311, yes, we are thinking about it but right now we don't > > have any concrete plans. As we've done with JAX-WS, most likely we > > would work with projects such as Apache Axis2 or CXF and integrate > > their JSR 311 implementations (assuming they will have one) into > > Geronimo. > > > > Jarek > > > > > > -- > View this message in context: http://www.nabble.com/does-geronimo-support-RESTful-Web-Service-with-JAX-WS--tf4533415s134.html#a12953519 > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >