• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
This will take every ounce of my mental strength! All for a tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic