2012-12-31 110 views
1

我有一個以下問題,我不知道如何解決。我相信有一些依賴不兼容問題,但我不知道如何檢查。Tomcat7應用程序無法啓動

有沒有人有任何想法從哪裏開始?

我正在使用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」 版本= 「3.0」> 流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缺少一些依賴是jettys的,但我不知道我應該怎麼加

任何想法嗎?

感謝你和新年快樂

回答

0

我已經設法將cometd demo部署到tomcat 6.0.36。源代碼https://github.com/uklance/tapestry-cometd-demo

首先,我在我的pom.xml中用「tapestry-test」依賴構建了這場戰爭。我將這場戰爭部署到了tomcat,並得到了類似的例外(列在下面)。我解壓war文件,並期待在WEB-INF/lib中,發現有兩個不同版本的碼頭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 

正如我們前面討論的那樣,我起了疑心,在掛毯測試的傳遞碼頭依賴是罪魁禍首。我在我的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 

所以,似乎即使織錦測試有「測試」的範圍,它仍然能夠影響到包括在戰爭神器的依賴關係。在解決依賴問題時,Maven使用「最接近聲明獲勝」策略,並且我猜測來自tapestry-test的碼頭依賴性比來自tapestry-cometd的碼頭依賴性「更接近」。

所以,我可以看到兩個可能的解決方法:

  1. 從你的pom.xml中刪除「掛毯測試」的依賴,如果你不需要它
  2. 添加3個依存關係你的pom.xml爲「jetty-continuation」,「jetty-http」和「jetty-io」指定版本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 
+0

恐怕這有點更陌生。我再次嘗試過各種組合,這就是我發現的。如果我運行32位Tomcat 6而沒有任何更改,它會像你一樣崩潰(正如你所說的由於diff版本)。但是,如果我在32位Tomcat 7上運行它,它工作正常。如果我在64位Tomcat 7下運行它,它會在任何組合下崩潰。順便說一句,你認爲有可能將對cometd-websocket-jetty的依賴性升級到2.5.1,它將更新與jetty相關的依賴關係到相同的版本7.6.8我認爲 –

0

的問題與的tapestry-cometdAtmosphere底層依賴性做。

這可能是一個maven問題。你可以檢查你的Maven的依賴關係,看看是否有另一個版本的AtmosphereJWebSocket

+0

我不知道這是否是同樣的問題,因爲我在Tomcat 6得到的錯誤,以及(我使用AWS託管所以我不知道如何添加他們說的一些庫)。我嘗試了一些他們在那裏但沒有運氣的東西。然後再次可能是我不知道如何添加標誌等。如果你能幫助,我將不勝感激。我已經添加了我的web.xml –

+0

不幸的是,我只有一個atmosphere-cometd 1.0.0和jetty-websocket 7.6.4(它從大氣中傳遞)實例,它們都來自tapestr-cometd –

+0

你能分享maven依賴樹? – Tawus

0

它看起來像你有一個腐敗的罐子。你可以嘗試刪除你的maven緩存中的氣氛和碼頭罐,然後再試一次嗎?

如果這不起作用,我注意到tapestry-cometd和tapestry-test都帶來了不同版本的碼頭。你可以嘗試從你的pom.xml中刪除tapestry-test依賴項。如果刪除依賴項,你將需要在pom.xml中指定jetty依賴項的版本7.6.4。

+0

只是爲了澄清,一旦我刪除罐子,我應該建立應用程序,以下載新罐子,並嘗試在tomcat 7上運行的應用程序,那麼,如果它不工作,我應該刪除tapestry測試,然後添加碼頭7.6.4和然後在tomcat上試試這個。這是你的意思嗎? –

+0

1.刪除maven jar並重新構建以獲取新版本並嘗試運行您的應用程序。 2.如果這不起作用,請從您的pom中移除tapestry-test並嘗試運行。 3.如果第2步工作,你可以把tapestry-test放回你的pom中,但是你需要爲你的pom中的所有jetty依賴項指定版本。使用7.6.4版本,因爲這是什麼氣氛期望 –

+0

另外,你如何運行你的webapp?你是通過IDE還是Maven運行?或者你正在構建一個戰爭並將其部署到一個tomcat安裝中? –