2015-01-13 3 views
0

내가 웹 응용 프로그램을 websocketfactory 내가이클립스 부두 플러그인 -

eclipse-jetty-integration plugin 
( Eclipse Jetty Feature 3.8.0 net.sourceforge.eclipsejetty.feature.feature.group Christian Köberl) 

백엔드 쇼와 응용 프로그램을 시작하면 클래스는

servlet-api-3.1.jar 
websocket-api-9.2.5.v20141112.jar 
websocket-servlet-9.2.5.v20141112.jar 

lib에 WEB-INF/아래에 다음과 같은 libs와 함께 찾을 수 없습니다 오류 없습니다 :

2015-01-13 14:53:43.452:INFO::main: Logging initialized @605ms 
    Configuration: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\eclipseJettyPlugin.config.test.xml 
     Version: 9.2.5.v20141112 
     Context: /test 
      Port: 8080 
     Classpath: C:/Documents and Settings/Administrator/workspace/test/WebContent/WEB-INF/lib/servlet-api-3.1.jar 
        C:/Documents and Settings/Administrator/workspace/test/WebContent/WEB-INF/lib/websocket-api-9.2.5.v20141112.jar 
        C:/Documents and Settings/Administrator/workspace/test/WebContent/WEB-INF/lib/websocket-servlet-9.2.5.v20141112.jar 
        C:/Documents and Settings/Administrator/workspace/test/build/classes 
2015-01-13 14:53:44.294:INFO:oejs.Server:main: jetty-9.2.5.v20141112 
2015-01-13 14:53:44.736:WARN:oeja.AnnotationConfiguration:main: ServletContainerInitializers: detected. Class hierarchy: empty 
2015-01-13 14:53:44.980:WARN:oejs.SecurityHandler:main: [email protected]@1a4013{/test,file:/C:/Documents%20and%20Settings/Administrator/workspace/test/WebContent/,STARTING}{C:\Documents and Settings\Administrator\workspace\test\WebContent} has uncovered http methods for path:/
2015-01-13 14:53:45.057:INFO:oejsh.ContextHandler:main: Started [email protected]{/test,file:/C:/Documents%20and%20Settings/Administrator/workspace/test/WebContent/,AVAILABLE}{C:\Documents and Settings\Administrator\workspace\test\WebContent} 
2015-01-13 14:53:45.102:INFO:oejs.ServerConnector:main: Started [email protected]{HTTP/1.1}{0.0.0.0:8080} 
2015-01-13 14:53:45.102:INFO:oejs.Server:main: Started @2640ms 
------------------------------------------------ 
Jetty startup finished in 2.2 s. 
Used memory: 3.5 MB of 8.5 MB (123.8 MB maximum) 
Console available: type "help". 
------------------------------------------------ 

나는 index.html을을 열고 (var에 WS와는 = 새로운 웹 소켓 ('WS : // localhost를 : 8080/테스트/websock')) 01,235 16,백엔드 쇼 오류 :

2015-01-13 14:58:36.873:WARN:/test:qtp27621947-31: unavailable 
java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.server.WebSocketServerFactory 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:372) 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360) 
    at org.eclipse.jetty.webapp.WebAppClassLoader.findClass(WebAppClassLoader.java:510) 
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:441) 
    at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403) 
    at org.eclipse.jetty.websocket.servlet.WebSocketServletFactory$Loader.load(WebSocketServletFactory.java:63) 
    at org.eclipse.jetty.websocket.servlet.WebSocketServletFactory$Loader.create(WebSocketServletFactory.java:42) 
    at org.eclipse.jetty.websocket.servlet.WebSocketServlet.init(WebSocketServlet.java:128) 
    at javax.servlet.GenericServlet.init(GenericServlet.java:244) 
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612) 
    at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:468) 
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:778) 
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587) 
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) 
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) 
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) 
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125) 
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) 
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) 
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059) 
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) 
    at org.eclipse.jetty.server.Server.handle(Server.java:497) 
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) 
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248) 
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) 
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620) 
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540) 
    at java.lang.Thread.run(Thread.java:745) 

나는 일식 루나와 부두 9.2.5

와 지금 WindowsXP와 맥 OSX에서 위의 오류가 그러나 나는 일식 루나와 부두 9.2와 오픈 수세에서 NO 오류가 있습니다. 5

노어 war 파일로 jetty 9.2.5가 설치된 suse 엔터프라이즈 서버에서 웹을 배포하는 동안 오류가 있습니까?

무엇이 잘못되었는지 알고 있나요?

ps : 스레드 (java.lang.ClassNotFoundException: org.eclipse.jetty.websocket.server.WebSocketServerFactory)를 들여다 봅니다. 저자는 OSGi 환경에 대해 뭔가를 말했다.

답변

0

신경 쓰지 마, 알아 냈어.

부두 플러그인의 글로벌 체크 박스를 체크하십시오.

공통 경로와 서버 jar도 빌드 경로에 넣으십시오.

enter image description here