Native Library sqljdbc_auth.dll already loaded in another classloader

前端 未结 3 957
忘了有多久
忘了有多久 2020-11-28 10:58

I have 2 java web apps that need to connect to SQL Server Database using Windows Integrated Authentication.

The first one that is loaded works fine but the second on

3条回答
  •  温柔的废话
    2020-11-28 11:24

    I think you are on the right track.

    For command line startup you can easily solve the no sqljdbc_auth in java.library.path issue by setting the environment variable

    CATALINA_OPTS=-Djava.library.path=/path/to/dll
    

    If you are running tomcat as a service, change the Options parameter under

    HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\Tomcat7\Parameters\Java

    to include:

    -Djava.library.path=/path/to/dll
    

提交回复
热议问题