Hi,
I am using Hibernate in a Struts based webapplication. I've created all the mappings, and when I try to use Hibernate in a normal Java program, it works great.
Now I'm trying to use the hibernate capabilities in my web application, but each time a get an error. I went looking in the error log of my server, and there it says that it cant found my jdbc Driver class.
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I am using eclipse, and imported the .jar file of my database connector as an external jar file. As mentioned above, this works in a normal java program. Why doesnt this work in a webapplication ? Doesn 't the external jar file get deployed or something ? I must say, I'm not much of a java build path guru, so i guess it has to do something with that.
Any suggestions ?
|