ClassNotFoundException: com.microsoft.sqlserver.jdbc

后端 未结 3 387
梦如初夏
梦如初夏 2020-12-21 22:23

When I ran my web application under Eclipse IDE everything worked fine. But when I exported my project into war-file and deployed in tomcat I\'ve got following message:

3条回答
  •  难免孤独
    2020-12-21 22:46

    Your driver class name is wrong. The exception text points to a package, not an actual driver class. And don't forget to restart Tomcat after changing the contents of various lib directories.

    Edit: Your IDE might use different configuration than your deployed war. Or fail with the same exception silently but the driver itself was already loaded by other means - then the actual connection just works.

提交回复
热议问题