*
The moose likes JDBC and the fly likes servlet can't identify absolute classpath to jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "servlet can Watch "servlet can New topic
Author

servlet can't identify absolute classpath to jdbc

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 416
i have install the jdbc driver for sqlserver2000 under the "c:\jdbc" directory,and set the classpath to point to all of three jar files under it,the programs with "main" entry that access sqlserver works well,but the servlet that access database don't work,and it tell me "no suitable driver",then i move the jar files to "TOMCAT-HOME\lib",the servlet works well,i know that the files under the lib directory will be loaded when the tomcat start,but why the servlet can't identify the classpath with absolute path?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet can't identify absolute classpath to jdbc