问题
I have a simple java application using the RXTX library and it is working fine.No links errors and no builds errors.
I made another web dynamic application (JAVA EE) using the same library but when i try to deployed it on a Wildfly 10.0 i have this error :
java.lang.NoClassDefFoundError: gnu/io/CommPortIdentifier
Which i know means that either the library is not found or loaded multiple times.
Here is the library :
and here is the hierarchy of my application :
As you can see for the Eclipse part it is ok, but on the server-side it is not working.
I aleady read this and this, but it did not solve my problem.
I tried to put the .jar and the dlls of the library in multiple folders of the wildfly server, to change the classpaths ... but nothing.
来源:https://stackoverflow.com/questions/36762416/build-issues-rxtx-library-on-wildfly-10-0