SQLserver connection with Apache Tomcat

Copper Contributor


I connected SQLserver and its driver to my Dynamic Web project. I created a test class (not part of website) that successfully connects to my database. 

However, when I try to use my database in my website (in a java servlet actually) and run it on Apache Tomcat I get  a "class not found exception" I don't understand why this is happening, especially because I tested a class(with the same exact code for connecting the database) within the same project and it connects to my database fine.

Do you have to set up something else when using SQLserver on a server (tomcat)?

Any help would be much appreciated! 

0 Replies