傻傻哒轩辕
2017-11-14 05:14
采纳率: 100%
浏览 1.1k

大神求看看,我想连接Oracle数据库

java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.mchange.v2.c3p0.DriverManagerDataSource.ensureDriverLoaded(DriverManagerDataSource.java:100)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:132)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
13:09:06,490 WARN DriverManagerDataSource:107 - Could not load driverClass oracle.jdbc.OracleDriver

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

5条回答 默认 最新

  • 一起喝茶去呗 2017-11-14 05:27
    已采纳

    你这好像是没有oracle的驱动jar包吧

    点赞 打赏 评论
  • airfling 2017-11-14 05:27

    找不到驱动包,你oracle的jdbc驱动包呢,或者去http://mvnrepository.com/ 上下载一个

    点赞 打赏 评论
  • 到底有多菜 2017-11-14 05:30

    java类的代码你应该也贴出来

    点赞 打赏 评论
  • 狗子猴子驴子 2017-11-14 06:02

    oracle.jdbc.OracleDriver oracle的jdbc驱动包没有 可以试着 加入 oracle.jar包

    点赞 打赏 评论
  • OracleFamily 2017-11-14 06:03

    oracle的驱动路径有问题。

    点赞 打赏 评论

相关推荐 更多相似问题