最近剛接觸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];【安全】保密,你懂的。