servlet中的非http请求和响应

时间:2011-01-05 04:58:23

标签: jbossws

我正在使用jboss在eclipse中运行一个简单的servlet。

在我部署时,我收到以下错误:

  

09:34:29,062 ERROR [[ServletExample]] Servlet.service()for servlet   ServletExample引发了异常javax.servlet.ServletException:   非HTTP请求或响应   javax.servlet.http.HttpServlet.service(HttpServlet.java:715)at at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)   在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   在   org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)   在   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)   在   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)   在   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)   在   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)   在   org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)   在   org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)   在   org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)   在   org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)   在   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)   在   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)   在   org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)   在   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)   在   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)   在   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)   在   org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:598)   在   org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:447)   在java.lang.Thread.run(未知来源)

我做错了什么?

1 个答案:

答案 0 :(得分:1)