<div dir="ltr">Is this being run from outside a War by any chance? Looking at the code it appears we only add websockets dependency to a war, and as a result the container provider implementation is not available. <div><br>
</div><div>Stuart</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 4:48 PM, Arun Gupta <span dir="ltr"><<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Trying to run a simple WebSocket test from:<br>
<br>
<a href="https://github.com/arun-gupta/javaee7-samples/tree/master/websocket/binary" target="_blank">https://github.com/arun-gupta/javaee7-samples/tree/master/websocket/binary</a><br>
<br>
But this is throwing the following exception:<br>
<br>
Running org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest<br>
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.055<br>
sec <<< FAILURE!<br>
testEndPointByteBuffer(org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest)<br>
Time elapsed: 0.023 sec <<< ERROR!<br>
java.lang.RuntimeException: Could not find an implementation class.<br>
at javax.websocket.ContainerProvider.getWebSocketContainer(ContainerProvider.java:73)<br>
at org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest.testEndPointByteBuffer(WebsocketByteBufferEndpointTest.java:63)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:606)<br>
<br>
What is missing ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
<br>
--<br>
<a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
<a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</font></span></blockquote></div><br></div>