Java 在tomcat 7.0.42上发布运行大气2.4.0

Java 在tomcat 7.0.42上发布运行大气2.4.0,java,tomcat,jakarta-ee,websocket,atmosphere,Java,Tomcat,Jakarta Ee,Websocket,Atmosphere,以下是此处列出的示例: 我设法使websocket在码头上运行。然而,在Tomcat7.0.42上运行完全相同的东西失败了。以下是异常代码段: 17:47:27.173[localhost-startStop-1]信息 o、 atmosphere.cpr.AtmosphereFramework-已安装WebSocketProtocol org.atmosphere.websocket.protocol.simplehttprotocol 17:47:27.188 [localhost-start

以下是此处列出的示例:

我设法使websocket在码头上运行。然而,在Tomcat7.0.42上运行完全相同的东西失败了。以下是异常代码段:

17:47:27.173[localhost-startStop-1]信息 o、 atmosphere.cpr.AtmosphereFramework-已安装WebSocketProtocol org.atmosphere.websocket.protocol.simplehttprotocol 17:47:27.188 [localhost-startStop-1]警告o.a.cpr.DefaultAsyncSupportResolver- 创建异步支持类失败:类 org.atmosphere.container.JSR356AsyncSupport,错误:{} java.lang.reflect.InvocationTargetException:null位于 sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法) ~(na:1.7.0_40)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~(na:1.7.0_40)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~(na:1.7.0_40)at newInstance(Constructor.java:526) ~(na:1.7.0_40)at org.atmosphere.cpr.DefaultAsyncSupportResolver.newCometSupport(DefaultAsyncSupportResolver.java:234) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.DefaultAsyncSupportResolver.resolveWebSocket(DefaultAsyncSupportResolver.java:297) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.DefaultAsyncSupportResolver.resolve(DefaultAsyncSupportResolver.java:283) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.AtmosphereFramework.autoDetectContainer(AtmosphereFramework.java:2057) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:911) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmospher.cpr.AtmosphereFramework.init(AtmosphereFramework.java:835) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmospher.cpr.AtmosphereFrameworkInitializer.configureFramework(AtmosphereFrameworkInitializer.java:74) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:83) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.AtmosphereServlet.configureFramework(AtmosphereServlet.java:79) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:74) [atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4] org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280) [catalina.jar:7.0.42]at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193) [catalina.jar:7.0.42]at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088) [catalina.jar:7.0.42]at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176) [catalina.jar:7.0.42]at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460) [catalina.jar:7.0.42]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.42]at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) [catalina.jar:7.0.42]at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) [catalina.jar:7.0.42]at java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0\U 40] 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_40]at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_40]位于java.lang.Thread.run(Thread.java:724)[na:1.7.0_40] 原因:java.lang.IllegalStateException: javax.websocket.server.ServerContainer为空。确保你是 使用1.7+并且您的服务器已在启用websocket支持 JSR356AsyncSupport.(JSR356AsyncSupport.java:53) ~[atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4]at JSR356AsyncSupport.java:40) ~[atmosphere-runtime-2.4.0-RC4.jar:2.4.0-RC4]。。。26公共框架 省略17:47:27.188[localhost-startStop-1]警告 o、 a.cpr.DefaultAsyncSupportResolver-找到多个容器, 请指定要使用的选项: org.atmosphere.container.Tomcat7CometSupport, org.atmosphere.container.TomcatCometSupport,直到您这样做,大气 将使用:class org.atmosphere.container.Tomcat7CometSupport 17:47:27.204[localhost-startStop-1]信息 o、 atmosphere.cpr.AtmosphereFramework-安装默认设置 AtmosphereInterceptors 17:47:27.204[localhost-startStop-1]信息 o、 大气- org.atmosphere.interceptor.CorsInterceptor:CORS拦截器支持

我将jdk从6改为7,改为8,例外情况仍然存在

有人知道如何解决这个问题吗