fidel150992
fidel150992

Reputation: 303

Deploy web application on Tomcat

I created a simple web application in eclipse which connect to sql server. I downloaded the sql driver and added it to build path like this:

Build Path->Configure Build Path->Add External JARs.

When I run my application on Tomcat I get exception: ClassNotFoundException. I think that I know what it reason is (the folder WEB-INF->lib of my application is empty). When I put jar file of driver in WEB-INF->lib - everything is good. How I can add jar file(sql driver) to folder WEB-INF->lib of my application using eclipse?

Upvotes: 0

Views: 220

Answers (1)

Steve Schneider
Steve Schneider

Reputation: 402

Putting the JDBC driver JAR in [Tomcat-install-root]/lib will solve your problem, and you can do that outside of Eclipse.

Upvotes: 1

Related Questions