java用c3p0获取oracle库连接,最终虽然获得连接,但是中间报错,怎么回事?
警告:CouldnotloaddriverClassoracle.jdbc.OralceDriverjava.lang.ClassNotFoundException:or...
警告: Could not load driverClass oracle.jdbc.OralceDriver
java.lang.ClassNotFoundException: oracle.jdbc.OralceDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
com.mchange.v2.c3p0.impl.NewProxyConnection@492980bd
----最终还是获取到了数据库连接的,为什么中间还报错?说不能加载driverClass? 展开
java.lang.ClassNotFoundException: oracle.jdbc.OralceDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
com.mchange.v2.c3p0.impl.NewProxyConnection@492980bd
----最终还是获取到了数据库连接的,为什么中间还报错?说不能加载driverClass? 展开
2个回答
2014-12-07
展开全部
oracle驱动jar包放进去了没?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询