java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

后端 未结 5 1213
广开言路
广开言路 2021-01-13 00:39
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

I got the above exception when i trying to deploying my Application

5条回答
  •  无人共我
    2021-01-13 01:18

    Since you're running a web app, you need to have the MS SQL Server driver--or the driver for any DB--stored in two places. Inside the app that becomes your WAR and then you need a second copy that is stored in the App Server's LIB directory. So, if you're running on Tomcat then you would put it /opt/tomcat/lib or C:\DEV\tomcat7\lib.

提交回复
热议问题