Register / Login
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
JDBC and Relational Databases
SQL JDBC Tomcat "Native Library sqljdbc_auth.dll already loaded in another classloader"
posted 6 years ago
drivers to connect to a MS SQL database from
6 with Windows Integration Authentication.
It works once, but from then until Tomcat is restarted I get a exception with the following root cause:
java.lang.UnsatisfiedLinkError: Native Library C:\******\tomcat\lib\sqljdbc_auth.dll already loaded in another classloader
where "******" indicates tomcats install directory.
Both sqljdbc_auth.dll and the driver Java library sqljdbc4.jar are in Tomcat's lib directory and neither are packaged with the web applications in question.
I am making no explicit calls to load or loadLibrary, it is all being handled by sqljdbc4.jar classes.
I understand that the native library (DLL) can only be loaded into the JVM once, hence the error, but I after looking around the net I still have no solution.
Any advice would be great. Thanks.
Boost this thread!
include native library with webservice deployement
[SOLVED] Oracle OCI library already loaded in another classloader exception
sqlite java.lang. UnsatisfiedLinkError
no sqljdbc_auth in java.library.path
Rescheduling a Timer Task