Hi,

You can use :

ServerContainer serverContainer =
WebSocketServerContainerInitializer.configureContext(bb);
serverContainer.addEndpoint(new WicketServerEndpointConfig());

bb is: WebAppContext bb = new WebAppContext();

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Aug 28, 2015 at 6:05 PM, Don Ferguson <don.fergu...@gmail.com>
wrote:

> I have an app built on Wicket 7.0,0 and Jetty 9.2.6 to which I am
> attempting to add WebSockets (wicket-native-websocket-javax).  The app
> functions properly when running from the IDE, however I have not been able
> to get web sockets to work when running from an executable WAR file.  The
> main issue appears to be classloader related.  I’m struggling to figure out
> precisely what classes need to be alongside Jetty in the system
> classloader, and what needs to be part of the WAR.
>
> Before introducing WebSockets, all of the wicket jars were in the WebApp
> classloader (WEB-INF/lib).  However now some classes (such as
> WicketServerEndpointConfig) need to be in Jetty’s classloader.  But if I
> put all of wicket in the Jetty's classloader, I get other problems.
> Anyway, I would really appreciate some guidance if anyone has sorted this
> out.
>
> -Don
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to