-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi guys,
I switched my undertow to version Beta20. I have thow the same error.
Is there any client implementation fo JSR 356 currently from
undertow?That client jar could be used in order to connect standalone
clients to the wildfly server. I get the same error even after
upgrading my version of undertow. Currently my deps in testing are :
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>1.0.0.Beta20</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.websocket</groupId>
<artifactId>jboss-websocket-api_1.0_spec</artifactId>
<version>1.0.0.Final</version>
<scope>test</scope>
</dependency>
but I don't have nay client jar, thus the part of the code that tries
to find the websocket underlying implementation fails at runtime.
Thanks in advance for any response/reply :)
up the "undertows"
regards
Nick
On 04/11/2013 09:12, Stuart Douglas wrote:
What version of Undertow are you using?
Stuart
----- Original Message -----
> From: "Nikolaos Ballas" <mpallas(a)gmail.com> To:
> undertow-dev(a)lists.jboss.org Sent: Sunday, 3 November, 2013
> 2:07:08 PM Subject: [undertow-dev] endpoint
>
Hi guys,
I am running wildfly an application that uses the jsr for the
websockets provided. I have a unit test and I use the
ContainerManager to inject a client and send a message to a
specific endpoint. I am getting a runtime exception:
java.lang.RuntimeException: Could not find an implementation
class. at
javax.websocket.ContainerProvider.getWebSocketContainer(ContainerProvider.java:73)
at
org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest.connectToServer(WebsocketByteBufferEndpointTest.java:98)
at
org.javaee7.websocket.binary.test.WebsocketByteBufferEndpointTest.testEndpointByteBuffer(WebsocketByteBufferEndpointTest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Point here is that I have included the undertow core and jsr in my
classpath. The application is deployed as war in wildfly. There is
a sample in openshift that performs the same but uses jsr specific
implementation from Glassfish tyrus.In my test I start wildfly
using the Arquillian + to save the burden I start it with the full
profile. I have a @ClientEndpoint class with an @OnOpen that i
inject it to the contaner the following way:
WebSocketContainer wSocketContainer =
ContainerProvider.getWebSocketContainer();
wSocketContainer.connectToServer(MyEndpointClient.class, new
URI("ws://localhost:8080/myapp/"+endpoint));
regards Nick
> _______________________________________________ undertow-dev
> mailing list undertow-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/undertow-dev
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://www.enigmail.net/
iF4EAREIAAYFAlJ4FZYACgkQM4d5SPwi8EsKBgD+OLl+OjUowItuAbPUMyYGpZLb
tsHUvBWqD7CEde4EjKUA/Azx9ZNTi+n7a2cDUNRlZFUkuioXyRNHu95Ce/No7e1B
=2p61
-----END PGP SIGNATURE-----