Giter Club home page Giter Club logo

Comments (5)

a1anw2 avatar a1anw2 commented on June 4, 2024

I am getting the same problem.

I added in all the JARs from $JETTY_HOME/lib, $JETTY_HOME/lib/websocket, $JETTY_HOME/lib/annontations yet still get this error. What am i missing?

javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable
    at org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer.onStartup(WebSocketServerContainerInitializer.java:146)
    at org.eclipse.jetty.plus.annotation.ContainerInitializer.callStartup(ContainerInitializer.java:140)
    at org.eclipse.jetty.annotations.ServletContainerInitializersStarter.doStart(ServletContainerInitializersStarter.java:65)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)

My startup

   ____    ___                   __    __  __         ___
  / __/___/ (_)__  ___ ___   __ / /__ / /_/ /___ __  / _ \
 / _// __/ / / _ \(_-</ -_) / // / -_) __/ __/ // /  \_, /
/___/\__/_/_/ .__/___/\__/  \___/\__/\__/\__/\_, /  /___/
           /_/                              /___/
2015-06-06 22:05:55.663:INFO::main: Logging initialized @169ms
   Configuration: C:\Users\Alan\AppData\Local\Temp\eclipseJettyPlugin.config.WebSocket.xml
         Version: 9.2.10.v20150310
         Context: /
            Port: 81
       Classpath: C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/annotations/asm-5.0.1.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/annotations/asm-commons-5.0.1.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/annotations/javax.annotation-api-1.2.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-alpn-client-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-alpn-server-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-annotations-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-cdi-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-client-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-continuation-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-deploy-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-http-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-io-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-jaas-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-jaspi-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-jmx-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-jndi-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-plus-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-proxy-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-quickstart-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-rewrite-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-schemas-3.1.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-security-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-server-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-servlet-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-servlets-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-util-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-webapp-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/jetty-xml-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/javax-websocket-client-impl-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/javax-websocket-server-impl-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/websocket-api-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/websocket-client-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/websocket-common-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/websocket-server-9.2.10.v20150310.jar
                  C:/Dropbox/java/jetty-distribution-9.2.10.v20150310/lib/websocket/websocket-servlet-9.2.10.v20150310.jar
                  C:/Users/Alan/workspace/WebSocket/bin
                  C:/Users/Alan/workspace/WebSocket/lib/javax.websocket-api-1.0.jar
                  C:/Users/Alan/workspace/WebSocket/lib/servlet-api-3.1.jar

from eclipse-jetty-plugin.

PaniniGelato avatar PaniniGelato commented on June 4, 2024

It seems like it is missing a "Enable Websocket Support CHECKBOX" in the options pannel, so run-jetty-run never load websocket libs and disable websocket module.

from eclipse-jetty-plugin.

derkoe avatar derkoe commented on June 4, 2024

First, this is not run-jetty-run. We are Eclipse Jetty (a competitor).
Second, this is a feature request - so yes, it is not yet implemented.

from eclipse-jetty-plugin.

a1anw2 avatar a1anw2 commented on June 4, 2024

@derkoe are there any plans to implement that flag? Or what is your recommended work around?

thanks

from eclipse-jetty-plugin.

PaniniGelato avatar PaniniGelato commented on June 4, 2024

Sorry for mistaken.
@ARWilliamson I am playing websocket with Eclipse Tomcat Server.
Or you can run an embed jetty like below:

public static void main( String[] args ) throws Exception {
        Server server = new Server( 8080 );
        ServletContextHandler context = new ServletContextHandler();
        //some config here
        ......
        //init websocket here
        WebSocketServerContainerInitializer.configureContext( context );       
        //start server
        server.start();
        server.join(); 
}

from eclipse-jetty-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.