Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Question with loading JDBC driver with web services
Question with loading JDBC driver with web services [message #131996] Thu, 11 August 2005 16:43 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Question with loading JDBC driver with web services [message #132461 is a reply to message #132128] Fri, 12 August 2005 20:03 Go to previous message
Eclipse UserFriend
Originally posted by: jkp1974a.cox.net

It's working fine. Thanks a lot.

Ken
Previous Topic:Problem creating a new Dynamic Web Project
Next Topic:Java Classes Not Compiling automatically
Goto Forum:
  


Current Time: Sat Jul 27 18:28:33 GMT 2024

Powered by FUDForum. Page generated in 0.03367 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top