• Post Reply Bookmark Topic Watch Topic
  • New Topic

SQL JDBC Tomcat "Native Library sqljdbc_auth.dll already loaded in another classloader"  RSS feed

Andone Knight
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Microsoft's JDBC drivers to connect to a MS SQL database from Java running under Tomcat 6 with Windows Integration Authentication.

It works once, but from then until Tomcat is restarted I get a exception with the following root cause:

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!