tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsoneta <>
Subject Re: sqljdbc, integrated sql server authentication and multiple webapps - only the first app can connect
Date Wed, 03 Jun 2009 14:23:35 GMT


I had the same problem.

I resolved the issue by deleting sqljdbc.jar from both the apps and added
that jar in the tomcat's lib folder along with the .dll and also .dll to
your windows\system32.

Make it sure the system's "Path" is set to your windows\system32.

Hope so this helps

Christopher Schultz-2 wrote:
> Hash: SHA1
> Stephan,
> On 3/10/2009 5:07 AM, Stephan Steiner wrote:
>> The first application to make a connection to the database succeeds in
>> doing
>> so and it will have access to the DB until I stop it (or stop tomcat).
>> The
>> second app to try and access the database can never connect and gets the
>> error you get when sqljdbc_auth.dll is not in the path.
> If you're using a native library (sqljdbc_auth.dll), you must be using a
> Java wrapper that loads the library and then puts calls through to it. I
> wonder if you are putting the JNI wrapper in your webapp's lib directory
> and that's trying to double-initialize the DLL.
> The DLL file should have come with a JAR file, too. Where do you have
> that JAR file installed? If you have it once per webapp, your problem is
> probably double-init. Try moving the JAR file that came with the DLL
> into Tomcat's lib directory (that is, $CATALINA_BASE/lib).
> - -chris
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla -
> =Q5BK
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message