I use maven. So I put this jar as scope provided that meaning that this jar
is provided for the environment where I put the WAR.
Now, you doesn't need the jar to compile because you use it at runtime, so
you can compile your application without the jar in your classpath. Then
delete this jar in th
I did 3 and it worked.
But I still wonder, do I really have to manually delete this jar
whenever I upload my application to Tomcat? Or is there a better way?
On 17 מרץ, 13:35, Juan Pablo Gardella
wrote:
> Try this:
>
> 1) Verify if you put the mysql-connector-java-5.1.15-bin.jar in correct
> pla
Try this:
1) Verify if you put the mysql-connector-java-5.1.15-bin.jar in correct
place. See http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html.
2) What version of mysql you use? Is the driver for this version? If yes
perhaps the jar is corrupt. Try download it again
3) Delete mysql
OK, the problem with Tomcat was solved when I deleted mysql-connector-
java-5.1.15-bin.jar from WEB-INF/lib under webapps. It probably should
be only in the Tomcat lib. Very strange, as it means I cannot just
copy my project and paste it into webapps.
On 17 מרץ, 09:42, Erel Segal wrote:
> It do
It doesn't work at Tomcat either, but I don't know if the problems are
related. This is what I did regarding Tomcat:
* I put the file "mysql-connector-java-5.1.15-bin.jar" in Tomcat's
lib/ folder;
* I edited the file conf/context.xml to declare a resource:
WEB-INF/web.xml
* I edited m
It seems that your classpath is good. When you said:
"But then I restarted the server (from the eclipse "development pane"),
and I started getting errors saying that the server cannot find a
driver for jdbc:mysql connection!"
You want to "deploy" the app in a servlet container?. Try make a war an
Here it is:
On 9 מרץ, 18:49, Juan Pablo Gardella
wrote:
> Is classpath error problem. Show the .classpath file
>
> Juan
>
> 2011/3/9 Erel Segal
>
> > I added a mysql server to the default GWT application. I put the mysql
> > conn
Is classpath error problem. Show the .classpath file
Juan
2011/3/9 Erel Segal
> I added a mysql server to the default GWT application. I put the mysql
> connector jar in the lib folder under WEBINF, and also added it to the
> build path. I ran the web application in development mode and it
> wo
I added a mysql server to the default GWT application. I put the mysql
connector jar in the lib folder under WEBINF, and also added it to the
build path. I ran the web application in development mode and it
worked fine.
But then I restarted the server (from the eclipse "development pane"),
and I s