<div dir="ltr">Can you file a JIRA about this?<div><br></div><div>Most of the pieces are there, the only issue is that the code will not bootstrap a new websocket client if one is not already started. This means it will work fine in a war, however it won't work standalone, or in a non-war deployment yet. </div>
<div><br></div><div>This is an easy fix however.</div><div><br></div><div>Stuart</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 6:39 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">Something like:<br>
<br>
<a href="https://tyrus.java.net/dependencies.html" target="_blank">https://tyrus.java.net/dependencies.html</a><br>
<br>
would be nice for Undertow. I'm able to run websocket/binary test in<br>
glassfish profile by specifying the Java SE-only dependencies.<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 5, 2013 at 5:19 PM, Nick Mpallas <<a href="mailto:mpallas@gmail.com">mpallas@gmail.com</a>> wrote:<br>
> That was my question in an email to Stuart..I can't find a client similar to<br>
> tyrus-client you can find in Glassfish(OMG sorry for bringing that up, just<br>
> as a hint) for example. A client lib to include as dep.<br>
><br>
><br>
> On Tue, Nov 5, 2013 at 5:14 PM, Arun Gupta <<a href="mailto:arun.gupta@gmail.com">arun.gupta@gmail.com</a>> wrote:<br>
>><br>
>> For now this test is invoked from outside a WAR file.<br>
>><br>
>> I'm debugging on a separate thread so that it can run from within an<br>
>> Arquillian setup. Until then, is there a Java SE client that can be<br>
>> used to run this test ?<br>
>><br>
>> Arun<br>
>><br>
>> On Tue, Nov 5, 2013 at 5:10 PM, Stuart Douglas<br>
>> <<a href="mailto:stuart.w.douglas@gmail.com">stuart.w.douglas@gmail.com</a>> wrote:<br>
>> > Is this being run from outside a War by any chance? Looking at the code<br>
>> > it<br>
>> > appears we only add websockets dependency to a war, and as a result the<br>
>> > container provider implementation is not available.<br>
>> ><br>
>> > Stuart<br>
>> ><br>
>> ><br>
>> > On Tue, Nov 5, 2013 at 4:48 PM, Arun Gupta <<a href="mailto:arun.gupta@gmail.com">arun.gupta@gmail.com</a>> wrote:<br>
>> >><br>
>> >> Trying to run a simple WebSocket test from:<br>
>> >><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<br>
>> >> org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest<br>
>> >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.055<br>
>> >> sec <<< FAILURE!<br>
>> >><br>
>> >><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<br>
>> >><br>
>> >> javax.websocket.ContainerProvider.getWebSocketContainer(ContainerProvider.java:73)<br>
>> >> at<br>
>> >><br>
>> >> org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest.testEndPointByteBuffer(WebsocketByteBufferEndpointTest.java:63)<br>
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
>> >> at<br>
>> >><br>
>> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>
>> >> at<br>
>> >><br>
>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
>> >> at java.lang.reflect.Method.invoke(Method.java:606)<br>
>> >><br>
>> >> What is missing ?<br>
>> >><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>
>> ><br>
>> ><br>
>><br>
>><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>
><br>
><br>
><br>
><br>
> --<br>
> \n\m<br>
> "camel is a horse made up in a laboratory"<br>
<br>
<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>
</div></div></blockquote></div><br></div>