Hamza
(Hamza Mughal)
March 31, 2012, 9:55am
1
Hi guys,
I’m using the following for my project:
Vaadin
Tomcat 7.0
mysql
for persistence, im using hibernate
Now the question is how to deploy the project the to a war file.
I am using the simple export method but its giving the exception “jdbc driver not found”
So is there a tutorial for exporting the project to war that use hibernate
Marko1
(Marko Grönroos)
March 31, 2012, 10:15am
2
You need to have the
MySQL JDBC Connector
in the [tt]
WEB-INF/lib
[/tt] folder. Well, if that is the problem, could be something else as well.
I assume that you’re using Eclipse. It should export all the stuff in the [tt]
WEB-INF/lib
[/tt] folder when you export to a WAR.
Hamza
(Hamza Mughal)
March 31, 2012, 10:29am
3
Thanks man, that was the exact problem
I thought that it will check the file from the java path from the environment variable
Bobby
(Bobby Bissett)
April 19, 2012, 4:25pm
4
Thanks man, that was the exact problem
I thought that it will check the file from the java path from the environment variable
Tomcat, and other application containers, don’t generally use your local Java environment for this kind of information. Your environment affects the Tomcat application itself, but then it is running
other applications
, such as your web app, and so relies on code within your war file or in other known directories inside the server.
It only gets more complicated from there.
Cheers,
Bobby
enbiya
(enbiya kocbiyik)
February 12, 2014, 3:31pm
5
i try like that and i said as an info; there is a sample in
this blog
i hope it is usefull…