Issues with the release of the RXTX library on Wildfly 10.0

I have a simple java application using the RXTX library and it works fine. There are no references to errors and assembly errors.

I made another web dynamic application (JAVA EE) using the same library, but when I try to deploy it on Wildfly 10.0, I have this error:

java.lang.NoClassDefFoundError: gnu/io/CommPortIdentifier

What I know means that either the library was not found or it was loaded several times.

Here is the library:

enter image description here

and here is the hierarchy of my application:

enter image description here

As you can see, for the Eclipse part, this is normal, but on the server side it does not work.

I aleady read this and this , but this did not help me the problem.

I tried putting the .jar and dll files of the library into several wildfly server folders to change the class paths ... but nothing.

+1
source share

All Articles