geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor" <jga...@gmail.com>
Subject Re: RESTful Web Services support in Geronimo
Date Tue, 24 Jun 2008 14:50:57 GMT
What version of Geronimo are you using?

I think this particular problem is/was a bug in Axis2. Actually, it is
a bug in Axis2 1.3 (the version we are using in Geronimo now) but it
was fixed in Axis2 1.4. The issue was with HTTP Content-Type header.
Web browsers don't send one at all or send one with a different type
than Axis2 was expecting.

Jarek

On Tue, Jun 24, 2008 at 9:55 AM, Sainath Chowdary
<sainathdreams@gmail.com> wrote:
> Hi,
>
> I am tryig to deploy a RESTful Web Service in Geronimo. The sample that I am
> using for RESTful is from Geronimo web services test-suite. I have also
> attached the sample that I am trying to deploy.
>
> The application is getting deployed successfully but if I try to access the
> servlet
> (http://localhost:8080/jaxws-restful-test/calculator?num1=10&num2=50)
> exposed its throwing me following exception.
>
> <Exception>
> org.apache.axis2.AxisFault: Could not create new Message
>
>     at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
>
>     at
> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:166)
>
>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>
>     at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125)
>
>     at
> org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119)
>
>     at
> org.apache.geronimo.axis2.Axis2WebServiceContainer.processGETRequest(Axis2WebServiceContainer.java:339)
>
>     at
> org.apache.geronimo.axis2.Axis2WebServiceContainer.doService2(Axis2WebServiceContainer.java:263)
>
>     at
> org.apache.geronimo.axis2.Axis2WebServiceContainer.doService(Axis2WebServiceContainer.java:204)
>
>     at
> org.apache.geronimo.axis2.Axis2WebServiceContainer.invoke(Axis2WebServiceContainer.java:167)
>
>     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:233)
>
>     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:396)
>
>     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:102)
>
>     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:263)
>
>     at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>
>     at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
>
>     at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>
>     at java.lang.Thread.run(Thread.java:595)
>
> Caused by: javax.xml.ws.WebServiceException: Could not create new Message
>
>     at
> org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:172)
>
>     at
> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:69)
>
>     at
> org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:117)
>
>     at
> org.apache.axis2.jaxws.message.util.MessageUtils.getMessageFromMessageContext(MessageUtils.java:151)
>
>     at
> org.apache.axis2.jaxws.core.MessageContext.<init>(MessageContext.java:114)
>
>     at
> org.apache.axis2.jaxws.server.JAXWSMessageReceiver.receive(JAXWSMessageReceiver.java:99)
>
>     ... 25 more
>
> </Exception>
>
> Can anyone help me in this regard?
>
> Thanks in Advance
>
> --
> Sainath Chowdary
> B.Tech III yr, Spring Semester
> Electronics & Communication Engg
> Indian Institute of Technology Roorkee

Mime
View raw message