访问Wicket应用程序时的AbstractMethodError(jboss服务器)

时间:2015-08-17 23:22:37

标签: spring servlets jboss wicket jboss-4.2.x

出现的错误是:

19:09:30,077 ERROR [[default]] Servlet.service() for servlet default threw exception java.lang.AbstractMethodError: org.apache.catalina.connector.RequestFacade.isAsyncStarted()Z

我已经在这个主题上检查了几个堆栈溢出帖子,但是对于isAsyncStarted()Z,所有帖子都引用了“NoClassDefFoundError”。我处于停顿状态,因为当我尝试访问localhost时:8080 / appname /抛出此异常。

我读到javax.servlet-api-3.1.0.jar可能是个问题,但我不确定为什么我的错误与其他错误不同。

我知道这很模糊,但我想有人会遇到这个问题w / wicket servlets。

我是否缺少使用Wicket / Jboss / Spring的重要配置? (如果需要,我可以提供其他信息)

完整的堆栈跟踪:

    19:09:30,077 ERROR [[default]] Servlet.service() for servlet default threw exception
    java.lang.AbstractMethodError: org.apache.catalina.connector.RequestFacade.isAsyncStarted()Z
        at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:234)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Unknown Source)

2 个答案:

答案 0 :(得分:1)

您需要升级到servlet API 3的Tomcat 7或servlet API 3.1的Tomcat 8。必须打包WAR中的任何servlet API jar

更新

您无法在JBoss AS 4上运行它。您至少需要JBoss AS 7或EAP 6或WildFly 8。

答案 1 :(得分:0)

Wicket 7依赖于Servlets 3,你的类路径上似乎有一个旧版本。