I remember that issue. It is actually caused by the interaction of three factors:
* There is a misconfiguration of Axis2 (but I don't remember what kind of misconfiguration causes this). * Axis2 ignores some exceptions received from the servlet container where this is not appropriate, i.e. where Axis2 should actually just propagate the error. * There is an issue in Tomcat where the internal state of the servlet container gets corrupted if the servlet continues to call methods of the servlet API after receiving an exception. On the trunk this was fixed in r902271. I will try to merge that change to the 1.5 branch so that it will appear in the 1.5.3-SNAPSHOT builds. You will then get a more meaningful error message that allows you to identify the configuration issue. Andreas On Thu, Sep 9, 2010 at 18:00, Cencio1980 <[email protected]> wrote: > Hi all, > > i'm trying to deploy a Web Service with Axis2. > > Thos are my spec: > > Axis2 v 1.5.1 > Jboss 5.0.1 > Java 1.5 > > I added all axis2 libs in WEB-INF/lib, except xercesImpl-2.6.2.jar and > xml-apis-1.3.02.jar. > In attachment the war (with service source), WITHOUT libs. > > When i deploy, everything seems fine. > If i try to invoke the service, i get: > ERROR [AxisEngine] The service cannot be found for the endpoint reference > (EPR) http://localhost:8380/sample/IntegrationManager > > Then i try to search the service invoking > http://localhost:8380/sample/IntegrationManager?wsdl and i have an http 404. > Looking at jboss log there is an exception: > > 17:13:38,108 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet > threw exception > java.lang.StackOverflowError > at > javax.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:114) > at > javax.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:114) > [......................................] > [......................................] > at > javax.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:114) > at > javax.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:114) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:610) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480) > at > org.apache.axis2.transport.http.AbstractAgent.renderView(AbstractAgent.java:121) > at > org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:390) > at > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480) > at > org.apache.axis2.transport.http.AbstractAgent.renderView(AbstractAgent.java:121) > at > org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:390) > at > org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > [......................................] > [......................................] > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480) > at > org.apache.axis2.transport.http.AbstractAgent.renderView(AbstractAgent.java:121) > 17:13:38,116 INFO [AbstractAgent] Old Servlet API > :javax.servlet.ServletException: Servlet execution threw an exception > > > > Similar exception when invoking > http://localhost:8380/sample/services/listServices (i should get the > deployed services, right?), ending with: > > [......................................] > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480) > at > org.apache.axis2.transport.http.AbstractAgent.renderView(AbstractAgent.java:121) > at > org.apache.axis2.transport.http.ListingAgent.processListServices(ListingAgent.java:404) > at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > 17:13:38,116 INFO [AbstractAgent] Old Servlet API > :javax.servlet.ServletException: Servlet execution threw an exception > > Where i'm wrong?? > > Thx, > Lorenzo > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
