Question with loading JDBC driver with web services [message #131996] |
Thu, 11 August 2005 16:43 |
Eclipse User |
|
|
|
Originally posted by: jkp1974a.cox.net
Hi. I want to create a web service which makes use of a DB (MS SQLServer
2000). I have the jdbc driver, but how do I actually include the jdbc
driver in the build path (or include with tomcat)? Is there something I
need to do in the package explorer or in preferences?
My java code tries to load the jdbc driver, but it fails -
classnotfoundexception. The webservice eventually stops (in the console
screen for the Tomcat server). I know how to include the JAR in my build
path for a java project in eclipse, and it works fine; thus, it's not a db
issue.
I ran through the sample WTP web service farenheit/celsius tutorial
without any problems. None of the webservice tutorials seem to mention
anything either. (I am using Tomcat 5.0.28, Axis 1.1, Java 1.4 on a
Windows XP SP1 box.)
Any help would be greatly appreciated. Thanks in advance.
Ken
|
|
|
Re: Question with loading JDBC driver with web services [message #132128 is a reply to message #131996] |
Fri, 12 August 2005 02:06 |
Eclipse User |
|
|
|
Originally posted by: zozo.stanford.edu
Just had this problem this morning... it needs to be in your runtime
classpath as well as your compile classpath. You can add it to your run
environment by:
1. Click Run, Run...,
2. Choose your Tomcat server config
3. Click the Classpath tab
4. Click Add External JARs and specify your jdbc driver class.
Hope this helps... it worked for me at least.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03024 seconds