最近刚接触oracle数据库,碰到一个tomcat加载不了的jdbc的异常
javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'" org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) org.apache.jsp.index_jsp._jspService(index_jsp.java:85) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
mysql驱动放到项目中的问题,把mysql驱动jar包从项目中移到tomcat的lib下即可
转载自:http://blog.csdn.net/lgm277531070/article/details/6708515
知行办公,专业移动办公平台
https://zx.naton.cn/
原创团队:
【总监】十二春秋之,3483099@qq.com; 【Master】zelo,616701261@qq.com;【运营】运维艄公,897221533@qq.com; 【产品设计】流浪猫,364994559@qq.com;【体验设计】兜兜,2435632247@qq.com; 【iOS】淘码小工,492395860@qq.com;iMcG33K,imcg33k@gmail.com; 【Android】人猿居士,1059604515@qq.com;思路的顿悟,1217022114@qq.com ; 【java】首席工程师MR_W,feixue300@qq.com;【测试】土镜问道,847071279@qq.com; 【数据】fox009521,42151960@qq.com;【安全】保密,你懂的。