I'm trying to deploy a Camel Route that use a Webscoket client as a consumer in Wildfly 13.
When I try to run the project I got the follow error:
Caused by: [java.lang.RuntimeException - Could not find an implementation class.]: java.lang.RuntimeException: Could not find an implementation class.
at javax.websocket.ContainerProvider.getWebSocketContainerImpl(ContainerProvider.java:89)
at javax.websocket.ContainerProvider.getWebSocketContainer(ContainerProvider.java:69)
I'm using the follow depencencies:
<dependency>
<groupId>org.glassfish.tyrus.bundles</groupId>
<artifactId>tyrus-standalone-client</artifactId>
<version>1.15</version>
</dependency>
Running the code on Eclipse, everything works fine.
I need to do some specific configuration on Wildfly or in the project to run this code?
My Maven build:
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathLayoutType>custom</classpathLayoutType>
<customClasspathLayout>META-INF</customClasspathLayout>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>