Hi,
I just get to know that this web service program does not use any SOAP stack but just
build on but axiom with the library provided by itself. I've tried to delete some SOAP
related jars but it cause exceptions when the JBoss server starting.
I decompile the javax.servlet.http.servlet and add some print before where error occurs
and found that the problem might be caused some other java class confliction.
Hope someone to give me some further help.
Thanks.
The service() operation code is modified as following:
|
| public abstract class HttpServlet extends GenericServlet
| implements Serializable
| {
| ... ...
|
| public void service(ServletRequest req, ServletResponse res)
| throws ServletException, IOException
| {
| HttpServletRequest request;
| HttpServletResponse response;
| System.err.println("HttpServlet.service(): req
class:"+req.getClass().getName()+"----------------------");
|
| System.err.println("HttpServlet.service():rsp
class:"+res.getClass().getName()+"-----------------------");
|
| try
| {
| request = (HttpServletRequest)req;
| response = (HttpServletResponse)res;
| }
| catch(ClassCastException e)
| {
| throw new ServletException("non-HTTP request or response");
| }
| service(request, response);
| }
|
| }
|
After I call the web service operation, I get Message from server as following:
| 11:41:46,265 ERROR [STDERR] HttpServlet.service(): req class:org.apache.catalina
| .connector.RequestFacade----------------------
| 11:41:46,265 ERROR [STDERR] HttpServlet.service():rsp class:org.apache.catalina.
| connector.ResponseFacade-----------------------
| 11:41:46,265 ERROR [[ApacheMuseServlet]] Servlet.service() for servlet ApacheMus
| eServlet threw exception
| javax.servlet.ServletException: non-HTTP request or response
| at javax.servlet.http.HttpServlet.service(Unknown Source)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
| lter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
| icationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
| ilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
| alve.java:235)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
| alve.java:191)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
| yAssociationValve.java:190)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
| e.java:92)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
| ss(SecurityContextEstablishmentValve.java:126)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
| e(SecurityContextEstablishmentValve.java:70)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
| ava:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
| ava:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
| onnectionValve.java:158)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
| ve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
| a:330)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
| :828)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
| ss(Http11Protocol.java:601)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
| 7)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218262#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...