Sorry for the last incomplete post: my buildpath looks like :
-buildpath: \ osgi.core;version=6.0,\ osgi.cmpn;version=6.0,\ javax.servlet;version=3.1,\ org.eclipse.emf.common,\ org.eclipse.emf.texo,\ org.eclipse.emf.ecore,\ org.eclipse.emf.texo.server,\ org.eclipse.emf.texo.datagenerator,\ javax.persistence,\ javax.websocket-api;version=1.1,\ org.apache.felix.http.jetty;version=3.1 I don't know if it's a good practice to depend on org.apache.felix.http.jetty directly, but otherwise I can't resolve classes like import org.eclipse.jetty.servlet.ServletContextHandler. I assumed that the WebSocketServerContainerInitializer is in the same bundle, but it doesn't get resolved. Am I missing something? Also, in your example you commented, that the implementation of the doGet() is just a hack. Is there any other possible solutino to get the ServerContatiner initialized? Kind regards, Thomas 2015-10-22 13:52 GMT+02:00 Thomas Driessen <thomas.dries...@ds-lab.org>: > Hi Paul, > > thanks for the examples. > I still have a problem, as the WebSocketServerContainerInitializer in the > JSR-356 Examples can not be resolved in my setup. > My buildpath contains > > > My build > > 2015-10-21 20:54 GMT+02:00 Paul Bakker <paul.bak...@luminis.eu>: > >> Based on Jetty there is support for Web Sockets. There is not a whiteboard >> registration mechanism yet, but it's reasonably easy to get working. Some >> examples can be found here: >> https://github.com/paulbakker/osgi-websockets-examples >> Also, for a bit more advanced usage Atmosphere works well in a few >> applications that I worked on. An example can be found in the sources of >> Amdatu Bootstrap: >> >> https://bitbucket.org/amdatu/amdatu-bootstrap/src/8745dae3abb6903a8cb24868f1a3691ecc5bbfab/org.amdatu.bootstrap.http/src/org/amdatu/bootstrap/ws/AtmosphereServlet.java?at=master&fileviewer=file-view-default >> >> Cheers, >> >> Paul >> >> On Wed, Oct 21, 2015 at 2:45 PM Thomas Driessen < >> thomas.driessen...@gmail.com> wrote: >> >> > Hi, >> > >> > I wanted to ask if Websockets are supported by felix.http like servlets >> > are, which means I only have to annotate my class with >> > >> > @ServerEndpoint("/path") >> > >> > >> > and it will get registered automatically. >> > >> > Kind regards, >> > Thomas >> > >> > > > > -- > M.Sc. Thomas Driessen > Software Methodologies for Distributed Systems > Institute of Computer Science > University of Augsburg > Universitätsstr. 6a > 86135 Augsburg, Germany > > Tel: +49 821 598-2486 > email: thomas.dries...@informatik.uni-augsburg.de > -- M.Sc. Thomas Driessen Software Methodologies for Distributed Systems Institute of Computer Science University of Augsburg Universitätsstr. 6a 86135 Augsburg, Germany Tel: +49 821 598-2486 email: thomas.dries...@informatik.uni-augsburg.de