解决 Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

在tomcat的context.xml中配置了jndi数据源,启动时报错:

Could not get JDBC Connection; nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

因为:

tomcat5.x jar包放在\tomcat5.x\common\lib下 
tomcat6.x jar包放在\tomcat6.x\lib下
myeclipse放在MyEclipse10\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201109141806\tomcat\lib

你可能感兴趣的:(问题解决)