Hi,

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:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkm6aU0ACgkQ9CaO5/Lv0PACsgCfTw4K6KHIYYRMZbjidgQksBgm
> KP8AoIwTqUipDW/Sc37/BZONVzxANzPB
> =Q5BK
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/sqljdbc%2C-integrated-sql-server-authentication-and-multiple-webapps----only-the-first-app-can-connect-tp22430342p23852411.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to