我已经在CometD服务器应用程序中包含了jetty 7.6.10.v20130312.jar和jetty 7.6.13.v20130916.jar,但我仍然会遇到这个异常。cometd] in context with path [/Samp] threw exceptionat org.eclipse.jetty.websocket.WebSocketFactory.upgrade(WebSocketFactory.java:238)
at
function(greeting){ });}
错误日志Are you running in a Servlet container that supports JSR-356?: WebSocket handshake failure; nested exception is java.lang.IllegalArgumentException: No '
jetty项目有一些错误,当我在eclipse中启动它(有jetty插件)。但我使用ant构建project.and,将构建复制到jetty-9.2.9/webapps中。它可以启动。使用websocket JDK8 jetty项目。, JSR-356 support unavailable
at org.eclipse.jetty.websocket.jsr356</em
: Unable to configure jsr356 at that stage.<init>(JSR356AsyncSupport.java:63) [atmosphere-runtime-2.4.3.jar:2.4.3]
at org.atmosphere.container.JSR356AsyncSupport<init>(JSR356AsyncSupport.java:63) ~[atmosphere-run
我看到了很多关于如何使用某种嵌入式web服务器来设置JSR356 websockets的教程。会在connectToServer行中显示一个错误
2014-10-30 12:26:58.658:WARN:oeja.ServletContainerInitializersStarter:main:org.eclipse.jetty.websocket.api.InvalidWebSocketException: Unable to instantiate websocket: class
file:/o java.lang.ClassCastException: org.eclipse.jetty.websocket.jsr356.server.ServerContainer cannot be cast to org.apache.tom
cat.websocket.server.WsServerConta