0

想在 Wicket 6 中试用新的 EventBus,但我无法让 Tomcat7 正确部署它......

任何类型的实现都会导致某种错误。最新的尝试是使用 wicket 1.6、Tomcat7 和 Wicket-atmosphere 0.3,我想我现在差不多了!

无论如何,当尝试部署模块时,我会从 Tomcat 获得“NoClassDefFound ...

dec 07, 2012 10:50:54 EM org.apache.catalina.loader.WebappClassLoader loadClass
Info: Illegal access: this web application instance has been stopped already.  Could not load org.apache.catalina.websocket.WsOutbound.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to at
tempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1597)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
        at org.atmosphere.container.version.TomcatWebSocket.close(TomcatWebSocket.java:129)
        at org.atmosphere.cpr.AtmosphereResponse$1.close(AtmosphereResponse.java:545)
        at org.atmosphere.cpr.AsynchronousProcessor.cancelled(AsynchronousProcessor.java:568)
        at org.atmosphere.container.BlockingIOCometSupport.cancelled(BlockingIOCometSupport.java:165)
        at org.atmosphere.cpr.AsynchronousProcessor$AsynchronousProcessorHook.closed(AsynchronousProcessor.java:634)
        at org.atmosphere.websocket.DefaultWebSocketProcessor.close(DefaultWebSocketProcessor.java:262)
        at org.atmosphere.container.TomcatWebSocketHandler.onClose(TomcatWebSocketHandler.java:71)
        at org.apache.catalina.websocket.StreamInbound.doOnClose(StreamInbound.java:215)
        at org.apache.catalina.websocket.StreamInbound.closeOutboundConnection(StreamInbound.java:197)
        at org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:161)
        at org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:583)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1770)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

dec 07, 2012 10:50:54 EM org.apache.coyote.AbstractProtocol$AbstractConnectionHandler process
Allvarlig: null
java.lang.NoClassDefFoundError: org/apache/catalina/websocket/WsOutbound
        at org.atmosphere.container.version.TomcatWebSocket.close(TomcatWebSocket.java:129)
        at org.atmosphere.cpr.AtmosphereResponse.close(AtmosphereResponse.java:785)
        at org.atmosphere.cpr.AtmosphereResourceImpl.cancel(AtmosphereResourceImpl.java:830)
        at org.atmosphere.websocket.DefaultWebSocketProcessor.close(DefaultWebSocketProcessor.java:272)
        at org.atmosphere.container.TomcatWebSocketHandler.onClose(TomcatWebSocketHandler.java:71)
        at org.apache.catalina.websocket.StreamInbound.doOnClose(StreamInbound.java:215)
        at org.apache.catalina.websocket.StreamInbound.closeOutboundConnection(StreamInbound.java:197)
        at org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:161)
        at org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:583)
        at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1770)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

有点想在这里问两个问题...

1:是什么导致这个错误?谷歌 rly 这次没有多大帮助:S

2:是否有关于如何让 Wicket-atmosphere 工作的完整指南/教程?

不要对我的问题含糊其辞,但我真的不知道还有哪些其他信息可以在这里相关。

我的配置与Wicket 气氛初始化异常的帖子(和链接)中给出的配置几乎相同

4

1 回答 1

0

正如我最近了解到的,NoClassDefFoundException 是一个令人讨厌的异常。就我而言,eclipse 吃掉了我的工作空间。将相同的代码签出到新代码中会有所帮助,而一遍又一遍地刷新旧代码则没有帮助。我能够找到该类,但 Java 找不到。由于您的错误来自 Tomcat 而不是 Eclipse,因此只需下载一个新的(并重新部署应用程序)可能会有所帮助。我知道,这很可怕,我根本不喜欢这样的东西,但这是让事情再次运行的唯一方法。

于 2012-12-08T13:32:07.893 回答