最近刚接触oracle数据库,碰到一个tomcat加载不了的jdbc的异常
[html] view plain copy
- 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/
原创团队:
【总监】十二春秋之,[email protected];
【Master】zelo,[email protected];【运营】运维艄公,[email protected];
【产品设计】流浪猫,[email protected];【体验设计】兜兜,[email protected];
【iOS】淘码小工,[email protected];iMcG33K,[email protected];
【Android】人猿居士,[email protected];思路的顿悟,[email protected];
【java】首席工程师MR_W,[email protected];【测试】土镜问道,[email protected];
【数据】fox009521,[email protected];【安全】保密,你懂的。