List Info

Thread: Generate projects which have a JDBC connector




Generate projects which have a JDBC connector
country flaguser name
Spain
2007-11-06 06:59:13
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/onm00200471
ave/direct/01/
Re: Generate projects which have a JDBC connector
user name
2007-11-06 07:44:33
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 <salgari2004hotmail.com> 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 : gehelamessage.ch
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.
com/
* http://rwandatech.wo
rdpress.com/

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribemaven.apache.org
For additional commands, e-mail: users-helpmaven.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )