1

我有一个以下问题,我不知道如何解决。我相信存在一些依赖不兼容的问题,但我不知道如何检查。

有谁知道从哪里开始?

我正在使用 Maven 来管理我的依赖项。我认为是问题根源的依赖性是

    <dependency>
        <groupId>org.lazan</groupId>
        <artifactId>tapestry-cometd</artifactId>
        <version>0.9.14</version> 
    </dependency>

但是我不确定如何检查下划线问题。

日志如下所示。

SEVERE: Exception starting filter app
java.lang.RuntimeException: Exception constructing service 'PushManager': Error invoking constructor public org.lazan.t5.cometd.services.internal.PushManagerImpl(org.cometd.bayeux.server.BayeuxServer,org.slf4j.Logger,org.lazan.t5.cometd.services.ComponentJSONRenderer,org.apache.tapestry5.ioc.services.TypeCoercer,javax.servlet.http.HttpServletRequest,org.lazan.t5.cometd.services.CometdGlobals): Exception constructing service 'BayeuxServer': Error invoking method public static org.cometd.bayeux.server.BayeuxServer org.lazan.t5.cometd.services.CometdModule.buildBayeuxServer(org.lazan.t5.cometd.web.BayeuxServerHttpServletRequestFilter,org.lazan.t5.cometd.services.Authorizers,org.lazan.t5.cometd.services.SubscriptionListeners,org.lazan.t5.cometd.services.CometdGlobals): Exception constructing service 'BayeuxServerHttpServletRequestFilter': Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:530)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1467)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
    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)
Caused by: java.lang.RuntimeException: Error invoking constructor public org.lazan.t5.cometd.services.internal.PushManagerImpl(org.cometd.bayeux.server.BayeuxServer,org.slf4j.Logger,org.lazan.t5.cometd.services.ComponentJSONRenderer,org.apache.tapestry5.ioc.services.TypeCoercer,javax.servlet.http.HttpServletRequest,org.lazan.t5.cometd.services.CometdGlobals): Exception constructing service 'BayeuxServer': Error invoking method public static org.cometd.bayeux.server.BayeuxServer org.lazan.t5.cometd.services.CometdModule.buildBayeuxServer(org.lazan.t5.cometd.web.BayeuxServerHttpServletRequestFilter,org.lazan.t5.cometd.services.Authorizers,org.lazan.t5.cometd.services.SubscriptionListeners,org.lazan.t5.cometd.services.CometdGlobals): Exception constructing service 'BayeuxServerHttpServletRequestFilter': Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.tapestry5.ioc.internal.util.ConstructorInvoker.invoke(ConstructorInvoker.java:57)org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
    ... 52 more
Caused by: java.lang.RuntimeException: Exception constructing service 'BayeuxServer': Error invoking method public static org.cometd.bayeux.server.BayeuxServer org.lazan.t5.cometd.services.CometdModule.buildBayeuxServer(org.lazan.t5.cometd.web.BayeuxServerHttpServletRequestFilter,org.lazan.t5.cometd.services.Authorizers,org.lazan.t5.cometd.services.SubscriptionListeners,org.lazan.t5.cometd.services.CometdGlobals): Exception constructing service 'BayeuxServerHttpServletRequestFilter': Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:75)
    at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
    at $BayeuxServer_20153764561c.delegate(Unknown Source)
    at $BayeuxServer_20153764561c.addListener(Unknown Source)
    at org.lazan.t5.cometd.services.internal.PushManagerImpl.<init>(PushManagerImpl.java:39)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.apache.tapestry5.ioc.internal.util.ConstructorInvoker.invoke(ConstructorInvoker.java:48)
    ... 74 more
Caused by: java.lang.RuntimeException: Error invoking method public static org.cometd.bayeux.server.BayeuxServer org.lazan.t5.cometd.services.CometdModule.buildBayeuxServer(org.lazan.t5.cometd.web.BayeuxServerHttpServletRequestFilter,org.lazan.t5.cometd.services.Authorizers,org.lazan.t5.cometd.services.SubscriptionListeners,org.lazan.t5.cometd.services.CometdGlobals): Exception constructing service 'BayeuxServerHttpServletRequestFilter': Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.tapestry5.ioc.internal.util.MethodInvoker.invoke(MethodInvoker.java:61)
    at org.apache.tapestry5.ioc.internal.util.LoggingInvokableWrapper.invoke(LoggingInvokableWrapper.java:42)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
    at org.apache.tapestry5.ioc.internal.util.ConstructionPlan.createObject(ConstructionPlan.java:60)
    at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:60)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
    at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
    at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
    at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:63)
    at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
    at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
    at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
    ... 83 more
Caused by: java.lang.RuntimeException: Exception constructing service 'BayeuxServerHttpServletRequestFilter': Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:75)
    at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
    at $BayeuxServerHttpServletRequestFilter_201537645620.delegate(Unknown Source)
    at $BayeuxServerHttpServletRequestFilter_201537645620.getBayeuxServer(Unknown Source)
    at org.lazan.t5.cometd.services.CometdModule.buildBayeuxServer(CometdModule.java:65)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.tapestry5.ioc.internal.util.MethodInvoker.invoke(MethodInvoker.java:50)
    ... 105 more
Caused by: org.apache.tapestry5.ioc.internal.OperationException: Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
    at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
    at org.apache.tapestry5.ioc.internal.util.ConstructionPlan.createObject(ConstructionPlan.java:60)
    at org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:61)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
    at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
    at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
    at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:63)
    at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
    at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
    at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
    at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
    ... 114 more
Caused by: java.lang.RuntimeException: Error invoking constructor public org.lazan.t5.cometd.web.CometdHttpServletRequestFilter(org.apache.tapestry5.services.ApplicationGlobals,java.util.Map,org.apache.tapestry5.ioc.services.RegistryShutdownHub,java.lang.String): javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.apache.tapestry5.ioc.internal.util.ConstructorInvoker.invoke(ConstructorInvoker.java:57)
    at org.apache.tapestry5.ioc.internal.util.LoggingInvokableWrapper.invoke(LoggingInvokableWrapper.java:42)
    at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    ... 134 more
Caused by: java.lang.RuntimeException: javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.lazan.t5.cometd.web.ServletHttpServletRequestFilter.<init>(ServletHttpServletRequestFilter.java:36)
    at org.lazan.t5.cometd.web.CometdHttpServletRequestFilter.<init>(CometdHttpServletRequestFilter.java:24)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.apache.tapestry5.ioc.internal.util.ConstructorInvoker.invoke(ConstructorInvoker.java:48)
    ... 136 more
Caused by: javax.servlet.ServletException: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:549)
    at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:191)
    at org.atmosphere.cometd.CometdServlet.init(CometdServlet.java:50)
    at org.lazan.t5.cometd.web.ServletHttpServletRequestFilter.<init>(ServletHttpServletRequestFilter.java:28)
    ... 142 more
Caused by: java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
    at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:233)
    at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:296)
    at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:284)
    at org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:1100)
    at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:500)
    ... 145 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:229)
    ... 149 more
Caused by: java.lang.InstantiationError: org.eclipse.jetty.io.ThreadLocalBuffers
    at org.eclipse.jetty.io.BuffersFactory.newBuffers(BuffersFactory.java:27)
    at org.eclipse.jetty.websocket.WebSocketBuffers.<init>(WebSocketBuffers.java:53)
    at org.eclipse.jetty.websocket.WebSocketFactory.<init>(WebSocketFactory.java:102)
    at org.eclipse.jetty.websocket.WebSocketFactory.<init>(WebSocketFactory.java:97)
    at org.atmosphere.container.JettyWebSocketUtil.getFactory(JettyWebSocketUtil.java:79)
    at org.atmosphere.container.JettyAsyncSupportWithWebSocket.<init>(JettyAsyncSupportWithWebSocket.java:55)
    ... 154 more

web.xml

http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> Flow WebApplication

<!-- The only significant configuration for Tapestry 5, this informs Tapestry of where to look for pages, components and mixins. -->
<context-param>
    <param-name>tapestry.app-package</param-name>
    <param-value>com.bomahabo.flow.tapestry</param-value>
</context-param>   

<context-param>
    <param-name>tapestry.prod-modules</param-name>
    <param-value>com.bomahabo.flow.tapestry.services.execution.ProductionModeModule</param-value>
</context-param>
<context-param>
    <param-name>tapestry.dev-modules</param-name>
    <param-value>com.bomahabo.flow.tapestry.services.execution.DevelopmentModeModule</param-value>
</context-param> 
<context-param>
    <param-name>tapestry.qa-modules</param-name>
    <param-value>com.bomahabo.flow.tapestry.services.execution.QAModeModule</param-value>
</context-param> 

<filter>
    <filter-name>app</filter-name>
    <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>    
    <async-supported>true</async-supported>
</filter>
<filter-mapping>
    <filter-name>app</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher> 
    <dispatcher>ERROR</dispatcher>  
</filter-mapping>

<error-page>
    <error-code>404</error-code>
    <location>/error/404</location>
</error-page>

依赖树

+- org.apache.tapestry:tapestry-hibernate:jar:5.3.6:compile
|  +- org.apache.tapestry:tapestry-hibernate-core:jar:5.3.6:compile
|  |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
|  |  +- antlr:antlr:jar:2.7.6:compile
|  |  +- geronimo-spec:geronimo-spec-jta:jar:1.0-M1:runtime
|  |  +- dom4j:dom4j:jar:1.6.1:compile
|  |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile
|  |  +- javassist:javassist:jar:3.12.1.GA:compile
|  |  \- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
|  \- org.apache.tapestry:tapestry-core:jar:5.3.6:compile
|     +- org.apache.tapestry:tapestry-json:jar:5.3.6:compile
|     \- org.antlr:antlr-runtime:jar:3.3:compile
|        \- org.antlr:stringtemplate:jar:3.2.1:compile
+- org.apache.tapestry:tapestry-upload:jar:5.3.6:compile
|  +- commons-io:commons-io:jar:2.0.1:compile
|  \- commons-fileupload:commons-fileupload:jar:1.2.2:compile
+- org.apache.tapestry:tapestry-yuicompressor:jar:5.3.6:compile
|  \- com.yahoo.platform.yui:yuicompressor:jar:2.4.7:compile
|     \- rhino:js:jar:1.6R7:compile
+- org.got5:tapestry5-jquery:jar:3.3.3:compile
|  \- commons-lang:commons-lang:jar:2.6:compile
+- org.lazan:tapestry-cometd:jar:0.9.14:compile
|  \- org.atmosphere:atmosphere-cometd:jar:1.0.0:compile
|     +- org.cometd.java:cometd-java-server:jar:2.4.3:compile
|     |  +- org.cometd.java:bayeux-api:jar:2.4.3:compile
|     |  +- org.cometd.java:cometd-java-common:jar:2.4.3:compile
|     |  +- org.eclipse.jetty:jetty-util:jar:7.6.4.v20120524:compile
|     |  \- org.eclipse.jetty:jetty-jmx:jar:7.6.4.v20120524:compile
|     +- org.cometd.java:cometd-websocket-jetty:jar:2.4.3:compile
|     |  +- org.cometd.java:cometd-java-client:jar:2.4.3:compile
|     |  |  \- org.eclipse.jetty:jetty-client:jar:7.6.4.v20120524:compile
|     |  \- org.eclipse.jetty:jetty-websocket:jar:7.6.4.v20120524:compile
|     +- org.cometd.java:cometd-java-annotations:jar:2.4.3:compile
|     \- org.atmosphere:atmosphere-runtime:jar:1.0.0:compile
|        +- org.atmosphere:atmosphere-compat-jbossweb:jar:1.0.0:compile
|        +- org.atmosphere:atmosphere-compat-tomcat:jar:1.0.0:compile
|        \- org.atmosphere:atmosphere-compat-tomcat7:jar:1.0.0:compile
+- org.got5:tapestry5-highcharts:jar:1.2.1-SNAPSHOT:compile
+- org.tynamo:tapestry-security:jar:0.4.7-SNAPSHOT:compile
|  +- org.apache.shiro:shiro-web:jar:1.2.0:compile
|  |  \- org.apache.shiro:shiro-core:jar:1.2.0:compile
|  |     \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
|  +- org.apache.tapestry:tapestry-ioc:jar:5.3.4:compile
|  |  +- org.apache.tapestry:tapestry-func:jar:5.3.4:compile
|  |  +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
|  |  +- javax.inject:javax.inject:jar:1:compile
|  |  +- log4j:log4j:jar:1.2.14:compile
|  |  +- org.apache.tapestry:tapestry5-annotations:jar:5.3.4:compile
|  |  \- org.apache.tapestry:plastic:jar:5.3.4:compile
|  +- org.tynamo:tynamo-common:jar:0.0.3:compile
|  \- org.tynamo:tapestry-exceptionpage:jar:0.1.2:compile
+- org.tynamo:tapestry-resteasy:jar:0.3.0:compile
|  +- org.jboss.resteasy:resteasy-jaxrs:jar:2.3.0.GA:compile
|  |  +- org.jboss.resteasy:jaxrs-api:jar:2.3.0.GA:compile
|  |  +- org.scannotation:scannotation:jar:1.0.3:compile
|  |  +- javax.annotation:jsr250-api:jar:1.0:compile
|  |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
|  |  \- net.jcip:jcip-annotations:jar:1.0:compile
|  \- org.jboss.resteasy:resteasy-jaxb-provider:jar:2.3.0.GA:compile
|     +- com.sun.xml.bind:jaxb-impl:jar:2.2.4:compile
|     |  \- javax.xml.bind:jaxb-api:jar:2.2.3:compile
|     \- com.sun.xml.stream:sjsxp:jar:1.0.1:compile
|        \- javax.xml.stream:stax-api:jar:1.0:compile
+- org.jboss.resteasy:resteasy-jettison-provider:jar:2.3.4.Final:compile
|  \- org.codehaus.jettison:jettison:jar:1.3.1:compile
+- org.jboss.resteasy:resteasy-multipart-provider:jar:2.2.0.GA:compile
|  \- org.apache.james:apache-mime4j:jar:0.6:compile
+- com.amazonaws:aws-java-sdk:jar:1.3.22:compile
|  +- commons-logging:commons-logging:jar:1.1.1:compile
|  +- org.apache.httpcomponents:httpclient:jar:4.1:compile
|  |  \- org.apache.httpcomponents:httpcore:jar:4.1:compile
|  +- commons-codec:commons-codec:jar:1.3:compile
|  +- org.codehaus.jackson:jackson-core-asl:jar:1.8.9:compile
|  \- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.9:compile
+- org.hibernate:hibernate-c3p0:jar:3.6.10.Final:compile
|  +- org.hibernate:hibernate-core:jar:3.6.10.Final:compile
|  |  +- commons-collections:commons-collections:jar:3.1:compile
|  |  \- javax.transaction:jta:jar:1.1:compile
|  +- c3p0:c3p0:jar:0.9.1:compile
|  \- org.slf4j:slf4j-api:jar:1.6.1:compile
+- hsqldb:hsqldb:jar:1.8.0.10:compile
+- mysql:mysql-connector-java:jar:5.1.21:compile
+- javax.mail:mail:jar:1.4.5:compile
|  \- javax.activation:activation:jar:1.1:compile
+- joda-time:joda-time:jar:2.1:compile
+- net.coobird:thumbnailator:jar:0.4.2:compile
+- org.apache.tapestry:tapestry-test:jar:5.3.6:test
|  +- org.seleniumhq.selenium:selenium-server:jar:2.14.0:test
|  |  +- bouncycastle:bcprov-jdk15:jar:135:test
|  |  +- mx4j:mx4j-tools:jar:3.0.1:test
|  |  +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:test
|  |  \- org.yaml:snakeyaml:jar:1.8:test
|  +- org.eclipse.jetty:jetty-plus:jar:7.0.0.v20091005:test
|  |  \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:test
|  +- org.seleniumhq.selenium:selenium-java:jar:2.14.0:test
|  |  +- org.seleniumhq.selenium:selenium-android-driver:jar:2.14.0:test
|  |  |  \- org.seleniumhq.selenium:selenium-remote-driver:jar:2.14.0:test
|  |  |     +- cglib:cglib-nodep:jar:2.1_3:test
|  |  |     +- org.json:json:jar:20080701:test
|  |  |     \- com.google.guava:guava:jar:10.0.1:test
|  |  |        \- com.google.code.findbugs:jsr305:jar:1.3.9:test
|  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.14.0:test
|  |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.14.0:test
|  |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.14.0:test
|  |  |  \- net.sourceforge.htmlunit:htmlunit:jar:2.9:test
|  |  |     +- xalan:xalan:jar:2.7.1:test
|  |  |     |  \- xalan:serializer:jar:2.7.1:test
|  |  |     +- org.apache.httpcomponents:httpmime:jar:4.1.2:test
|  |  |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.9:test
|  |  |     +- xerces:xercesImpl:jar:2.9.1:test
|  |  |     +- net.sourceforge.nekohtml:nekohtml:jar:1.9.15:test
|  |  |     \- net.sourceforge.cssparser:cssparser:jar:0.9.5:test
|  |  |        \- org.w3c.css:sac:jar:1.3:test
|  |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.14.0:test
|  |  |  \- org.apache.commons:commons-exec:jar:1.1:test
|  |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.14.0:test
|  |  |  \- net.java.dev.jna:jna:jar:3.3.0:test
|  |  +- org.seleniumhq.selenium:selenium-iphone-driver:jar:2.14.0:test
|  |  \- org.seleniumhq.selenium:selenium-support:jar:2.14.0:test
|  +- org.eclipse.jetty:jetty-webapp:jar:7.0.0.v20091005:test
|  |  +- org.eclipse.jetty:jetty-xml:jar:7.0.0.v20091005:test
|  |  \- org.eclipse.jetty:jetty-servlet:jar:7.0.0.v20091005:test
|  |     \- org.eclipse.jetty:jetty-security:jar:7.0.0.v20091005:test
|  +- jetty:org.mortbay.jetty:jar:5.1.12:test
|  +- org.eclipse.jetty:jetty-jndi:jar:7.0.0.v20091005:test
|  +- org.eclipse.jetty:jetty-server:jar:7.0.0.v20091005:test
|  |  +- org.eclipse.jetty:jetty-continuation:jar:7.0.0.v20091005:compile
|  |  \- org.eclipse.jetty:jetty-http:jar:7.0.0.v20091005:compile
|  |     \- org.eclipse.jetty:jetty-io:jar:7.0.0.v20091005:compile
|  +- org.apache.tomcat:dbcp:jar:6.0.30:test
|  +- org.apache.tomcat:coyote:jar:6.0.30:test
|  |  +- org.apache.tomcat:servlet-api:jar:6.0.30:test
|  |  \- org.apache.tomcat:juli:jar:6.0.30:test
|  \- org.apache.tomcat:catalina:jar:6.0.30:test
|     \- org.apache.tomcat:annotations-api:jar:6.0.30:test
+- org.testng:testng:jar:5.12.1:test
|  \- junit:junit:jar:3.8.1:test
+- org.easymock:easymock:jar:2.5.2:test
\- javax.servlet:servlet-api:jar:2.5:provided

我还想提一下,当我在本地运行它时,它会成功运行 - 那是使用 maven-jetty 插件,但是当我将它部署到 Tomcat 7 时它失败了。

在我看来,tomcat 缺少一些对码头的依赖,但我不确定我应该添加什么

有什么想法吗?

谢谢你,新年快乐

4

3 回答 3

0

问题与 on 的潜在依赖tapestry-cometd有关Atmosphere

这可能是一个maven问题。您可以检查您的 maven 依赖项,看看是否有另一个版本的Atmosphereor JWebSocket

于 2013-01-01T05:23:59.370 回答
0

看起来你有一个损坏的罐子。你可以尝试从你的 maven 缓存中删除气氛和码头罐子,然后再试一次吗?

如果这不起作用,我注意到 Tapestry-cometd 和 Tapestry-test 都引入了不同版本的码头。您可以尝试从 pom.xml 中删除 Tapestry-test 依赖项吗?如果删除依赖项有效,则需要在 pom.xml 中指定 7.6.4 版本的 jetty 依赖项。

于 2013-01-01T21:04:37.970 回答
0

我已设法将 cometd 演示部署到 tomcat 6.0.36。源代码在这里https://github.com/uklance/tapestry-cometd-demo

首先,我使用 pom.xml 中的“tapestry-test”依赖项构建了战争。我将战争部署到 tomcat 并得到了类似的例外情况(如下所列)。我解压了 war 文件并查看了 WEB-INF/lib 并注意到有两个不同版本的 jetty jar:

jetty-client-7.6.4.v20120524.jar
jetty-continuation-7.0.0.v20091005.jar
jetty-http-7.0.0.v20091005.jar
jetty-io-7.0.0.v20091005.jar
jetty-jmx-7.6.4.v20120524.jar
jetty-util-7.6.4.v20120524.jar
jetty-websocket-7.6.4.v20120524.jar

正如我们之前讨论的,我怀疑 Tapestry-test 中的传递码头依赖是罪魁祸首。我在我的 pom 中注释掉了 Tapestry-test 依赖并做了一个干净的构建。战争中的码头罐子现在都是同一个版本。结果!

jetty-client-7.6.4.v20120524.jar
jetty-continuation-7.6.4.v20120524.jar
jetty-http-7.6.4.v20120524.jar
jetty-io-7.6.4.v20120524.jar
jetty-jmx-7.6.4.v20120524.jar
jetty-util-7.6.4.v20120524.jar
jetty-websocket-7.6.4.v20120524.jar

因此,似乎即使 Tapestry-test 具有“测试”范围,它仍然能够影响包含在战争工件中的依赖项。Maven 在解决依赖项时使用“最近的声明获胜”策略,我猜来自 Tapestry-test 的码头依赖项比来自 Tapestry-cometd 的码头依赖项“更接近”。

所以,我可以看到两个可能的修复:

  1. 如果不需要,请从 pom.xml 中删除“tapestry-test”依赖项
  2. 为“jetty-continuation”、“jetty-http”和“jetty-io”添加 3 个依赖项到您的 pom.xml,指定版本 7.6.4.v20120524。

这是我最初得到的错误:

[INFO] cpr.AtmosphereFramework Installed AtmosphereInterceptor CometD/Bayeux Protocol.
[ERROR] cpr.DefaultAsyncSupportResolver failed to create comet support class: class org.atmosphere.container.JettyAsyncSupportWithWebSocket, error: null
[ERROR] cpr.AtmosphereFramework Failed to initialize Atmosphere Framework
java.lang.IllegalArgumentException: Comet support class org.atmosphere.container.JettyAsyncSupportWithWebSocket has bad signature.
        at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:233)
        at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:296)
        at org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:284)
        at org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:1100)
        at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:500)
        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:191)
        at org.atmosphere.cometd.CometdServlet.init(CometdServlet.java:50)
        at org.lazan.t5.cometd.web.ServletHttpServletRequestFilter.<init>(ServletHttpServletRequestFilter.java:28)
        at org.lazan.t5.cometd.web.CometdHttpServletRequestFilter.<init>(CometdHttpServletRequestFilter.java:24)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.tapestry5.ioc.internal.util.ConstructorInvoker.invoke(ConstructorInvoker.java:48)
        at org.apache.tapestry5.ioc.internal.util.LoggingInvokableWrapper.invoke(LoggingInvokableWrapper.java:42)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.util.ConstructionPlan.createObject(ConstructionPlan.java:60)
        at org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:61)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
        at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
        at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
        at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:63)
        at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
        at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
        at $BayeuxServerHttpServletRequestFilter_e278bc1997a1.delegate(Unknown Source)
        at $BayeuxServerHttpServletRequestFilter_e278bc1997a1.getBayeuxServer(Unknown Source)
        at org.lazan.t5.cometd.services.CometdModule.buildBayeuxServer(CometdModule.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tapestry5.ioc.internal.util.MethodInvoker.invoke(MethodInvoker.java:50)
        at org.apache.tapestry5.ioc.internal.util.LoggingInvokableWrapper.invoke(LoggingInvokableWrapper.java:42)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.util.ConstructionPlan.createObject(ConstructionPlan.java:60)
        at org.apache.tapestry5.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:60)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
        at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
        at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
        at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:63)
        at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
        at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
        at $BayeuxServer_e278bc19979d.delegate(Unknown Source)
        at $BayeuxServer_e278bc19979d.addListener(Unknown Source)
        at org.lazan.t5.cometd.services.internal.PushManagerImpl.<init>(PushManagerImpl.java:39)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.tapestry5.ioc.internal.util.ConstructorInvoker.invoke(ConstructorInvoker.java:48)
        at org.apache.tapestry5.ioc.internal.util.LoggingInvokableWrapper.invoke(LoggingInvokableWrapper.java:42)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.util.ConstructionPlan.createObject(ConstructionPlan.java:60)
        at org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:61)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
        at org.apache.tapestry5.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
        at org.apache.tapestry5.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:46)
        at org.apache.tapestry5.ioc.internal.AdvisorStackBuilder.createObject(AdvisorStackBuilder.java:63)
        at org.apache.tapestry5.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
        at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:60)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45)
        at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
        at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
        at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:66)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:54)
        at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.eagerLoadService(JustInTimeObjectCreator.java:86)
        at org.apache.tapestry5.ioc.internal.RegistryImpl.performRegistryStartup(RegistryImpl.java:320)
        at org.apache.tapestry5.ioc.internal.RegistryWrapper.performRegistryStartup(RegistryWrapper.java:80)
        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:118)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:229)
        ... 129 more
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/nio/AsyncConnection
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at org.atmosphere.container.JettyWebSocketUtil.getFactory(JettyWebSocketUtil.java:79)
        at org.atmosphere.container.JettyAsyncSupportWithWebSocket.<init>(JettyAsyncSupportWithWebSocket.java:55)
        ... 134 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.io.nio.AsyncConnection
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        ... 160 more
于 2013-01-02T10:10:55.543 回答