Generate projects which have a JDBC connector

2007-11-06 Thread Roses Roses

Hi,

I've worked one month in a project which acces to a MySQL Database, and it was 
working to yesterday. Now, when I generate the WAR file and execute it in 
Tomcat, I have the sequent error:

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I believe that Maven has a problem because if I use an old WAR file, it works! 
Somebody can help me? Thank you!!

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Re: Generate projects which have a JDBC connector

2007-11-06 Thread Guillaume Lederrey
Did you change the dependency scope from runtime (default) to provided ?

It is quite usual not to package JDBC jars into the WAR file, but to
have them deployed in the application server. For example, in Tomcat,
you'll have them in $CATALINA_HOME/common/lib.

Good luck

  Guillaume

On 06/11/2007, Roses Roses [EMAIL PROTECTED] wrote:
 I've worked one month in a project which acces to a MySQL Database, and it 
 was working to yesterday. Now, when I generate the WAR file and execute it in 
 Tomcat, I have the sequent error:

 java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]