Tomcat, Java & SQL Server 2008 R2: Cannot create JDBC driver of class '' for connect URL 'null'

最后都变了- 提交于 2019-12-01 14:33:52

Resources declared in the the GlobalNamingResources will not be visable by your web application unless you link them to the application's context.

Otherwise, you could define the resource in the default context or the web application's context.

Ive tried the above. Just wanted to add also. You can add in server.xml also, but ensure you are not using Resource-Params. Put the parameters in the Resource Element only. If you are on linux then ensure sqlodbc4.jar is placed in tomcat/lib found under /usr/share folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!