免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2859 | 回复: 4
打印 上一主题 下一主题

Can't find oracle jdbc driver [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-16 05:30 |只看该作者 |倒序浏览
Hi, every one,
I installed oracle9i on my redhat8.0 server. I also installed tomcat4.0.6. I put follow in the classpath:
/usr/oracle/product/9i/jdbc/lib/classes12.jar

When I call oracle with my jsp code, it always gives me the error message:

ClassNotFoundExceptionracle.jdbc.driver.OracleDriver

I used the same source code on redhat7.1, oracle8i and tomcat3.2.1. No any problem.  But why this one doesn't work?  

Thanks in advance

论坛徽章:
0
2 [报告]
发表于 2003-01-16 08:53 |只看该作者

Can't find oracle jdbc driver

classes12.jar  没有加入到 classpath 中。

把 classes12.jar 拷贝到 tomcat 的 lib 目录去吧,tomcat 启动时会自己找到的。

论坛徽章:
0
3 [报告]
发表于 2003-01-20 14:36 |只看该作者

Can't find oracle jdbc driver

原帖由 "cinc" 发表:
classes12.jar  没有加入到 classpath 中。

把 classes12.jar 拷贝到 tomcat 的 lib 目录去吧,tomcat 启动时会自己找到的。


我也遇到同样问题了

照上述方法作了,还是不行,还有什么其他步骤么?

论坛徽章:
0
4 [报告]
发表于 2003-01-20 15:43 |只看该作者

Can't find oracle jdbc driver

那你考到WEB-INF/lib下试试吧
我现在觉得JAVA的这种设置方法很不好:)

论坛徽章:
0
5 [报告]
发表于 2003-01-28 04:02 |只看该作者

Can't find oracle jdbc driver

Hi, cinc,
I did as same as you told me. It works great. Thank you very much.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP