You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by HHB <hu...@yahoo.ca> on 2009/04/06 16:46:01 UTC

Why I get ClassNotFoundException ?

Hey,
I have an application that is built upon Wicket 1.3, Spring 2.5 and
Hibernate 3
When I run the command:
mvn jetty:run
I got the following exception:

WARN  - DriverManagerDataSource    - Could not load driverClass
com.jdbc.mysql.Driver
java.lang.ClassNotFoundException: com.jdbc.mysql.Driver

I have this dependency in the pom.xml file:

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.6</version>
        </dependency>

Any ideas what is going wrong?

-- 
View this message in context: http://www.nabble.com/Why-I-get-ClassNotFoundException---tp22910240p22910240.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Why I get ClassNotFoundException ?

Posted by Heinrich Nirschl <he...@gmail.com>.
On Mon, Apr 6, 2009 at 4:46 PM, HHB <hu...@yahoo.ca> wrote:
> WARN  - DriverManagerDataSource    - Could not load driverClass
> com.jdbc.mysql.Driver
> java.lang.ClassNotFoundException: com.jdbc.mysql.Driver

The package name is wrong. Try with com.mysql.jdbc.Driver.

- Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org