Espigah / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

dll already loaded in another classloader #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello. I use jssc on my java web app (.war) project on Tomcat7.14. If I deploy 
the only one war - everything is ok. But I can't use jssc in two different war 
projects at the same time, because the second project fells the exception:
java.lang.UnsatisfiedLinkError: Native Library 
C:\.jssc\windows\jSSC-0.9_x86_64.dll already loaded in another classloader

Original issue reported on code.google.com by kardonsk...@gmail.com on 21 Mar 2013 at 8:14

GoogleCodeExporter commented 9 years ago
This is due to separate class loaders being used for each web app.  To avoid 
this, you will need to ensure that the jssc classes are loaded by a parent 
class loader.  This can be done by placing the jssc jar in %CATALINA_HOME%/lib/ 

Original comment by r_gmo...@yahoo.com on 4 Jun 2014 at 11:00

GoogleCodeExporter commented 9 years ago
hello... can you tell me how to do this..?

you will need to ensure that the jssc classes are loaded by a parent class 
loader.
This can be done by placing the jssc jar in %CATALINA_HOME%/lib/ 

Original comment by software...@gmail.com on 14 Jul 2014 at 9:41