by now, I spent the whole day to solve this problem, with no success. I have a RESTful (jax-rs) server application, and I want it to receive data from a mysql-db. I need a driver for my DriverManager, and when I try to load it via
class.ForName("org.gjt.mm.mysql.Driver");
I only receive a ClassNotFoundException. Obvisously, I have to add my mysql-connector.jar to my project. But I tried so many different ways, I keep getting the same error. I read that I had to put the .jar into the WEB-INF/lib folder, but this did not work for me. I tried adding it as a dependency in the maven pom.xml, with no success.
What am I doing so wrong?