Comments (5)
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.
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.
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.
@derkoe are there any plans to implement that flag? Or what is your recommended work around?
thanks
from eclipse-jetty-plugin.
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)
- Customize Keystone files
- License text is wonky
- available misspelled
- Could not initialize class net.sourceforge.eclipsejetty.jetty.JettyVersionType HOT 1
- jsp folder location changes in Jetty 9.4.x HOT 2
- Enable Websockets for < 9.3
- Restart/redeploy jetty on project build on code changes HOT 1
- Separating inclusion and scope for Maven projects with workspace resolution
- Old versions update site
- Maintainer needed HOT 2
- Site no worked HOT 1
- Maven dependencies are not resolved with jdk11 HOT 1
- Latest version 5.0.0 cannot work with eclipse 2019-12 (4.14.0) HOT 3
- bug with jetty 9.4.27
- Add JDBC Sessions
- Don't support Jetty 9.4.47 Java 11 and Anotation HOT 3
- Update site is currently unavailable HOT 1
- Internet connection required at startup
- Not able to start a local server due to expired HTTPS certificate on https://eclipse.dev/jetty/configure_10_0.dtd
- The jetty-ee8-bom is missing the dependencies from the jetty.ee8.osgi group HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse-jetty-plugin.