JBoss部署错误:java.lang.NoSuchMethodError

时间:2014-03-11 08:12:11

标签: java jboss jboss6.x

我正在使用jBoss 6.0.i尝试部署我有一个名为helloapp.war .i的文件夹粘贴在默认情况下>部署文件夹在jBoss.no错误显示。但是当我尝试在浏览器上使用url localhost访问我的应用程序时:8080 / helloapp / sayhello .it在控制台中出错:

ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getEffectiveSessionTrackingModes()Ljava/util/Set;
    at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:567)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:359)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
    at java.lang.Thread.run(Thread.java:701) [:1.6.0_30]

我的web.xml文件是:

<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<servlet>
<servlet-name>Hello Servlet</servlet-name>
<servlet-class>
com.manning.jbia.intro.HelloWorldServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Hello Servlet</servlet-name>
<url-pattern>/sayhello</url-pattern>
</servlet-mapping>
</web-app>

为什么我面对这个可以任何人指出。

0 个答案:

没有答案