| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 19/11/2011 21:23:03
|
jprobichaud
Joined: 10/08/2011 04:47:13
Messages: 17
Offline
|
Hi,
I'm trying to upgrade to the 1.1.1 version of the app (not the plugin) and I can't: I get an exception:
i can see that the mysql jdbc jar file is missing from the war file, is that normal? Are we now supposed to specify the classpath where to reach this jar file by other means?
Thanks!
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 20/11/2011 01:06:14
|
jason
Joined: 07/07/2011 16:41:20
Messages: 20
Location: Boston
Offline
|
Install this plugin http://grails.org/plugin/mysql-connectorj
I saw this problem recently and I forget but I think it was a configuration problem. Give that a try first
This message was edited 1 time. Last update was at 20/11/2011 01:06:58
|
--
Jason Burke
Sr Software Engineer
Broad Institute of MIT and Harvard |
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 23/11/2011 00:46:38
|
jason
Joined: 07/07/2011 16:41:20
Messages: 20
Location: Boston
Offline
|
If you're still having trouble its because the jar needs to be accessible to Tomcat, even more importantly than to your Grails app.
You must have the correct mysql-connectorJ jar in your *tomcat classpath*.
So, if you run startup.sh and get the following output:
You need to place that jar in: /local/devel/tomcat/bin/
Hope that helps,
Jason
This message was edited 1 time. Last update was at 23/11/2011 00:47:17
|
--
Jason Burke
Sr Software Engineer
Broad Institute of MIT and Harvard |
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 23/11/2011 19:06:00
|
marcpalmer
Joined: 04/06/2009 13:36:35
Messages: 303
Location: UK
Offline
|
Hi,
Thanks for picking this up guys.
I'm not sure if we ever shipped the mysql driver in weceem app. I don't think so.
You need to get your own JDBC driver, as the other posters have said.
Marc
|
- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 25/11/2011 13:04:08
|
jprobichaud
Joined: 10/08/2011 04:47:13
Messages: 17
Offline
|
Thanks for your replies.
Since I'm using the Weceem "app", I couldn't take the "install plugin" route, but I just reused the connector jar file I had previously.
Maybe I did that manually the first time also, my memory doesn't serve me well sometimes. It is possible that I manually repackaged the war file to include the driver for simpler deployment with jetty.
Thanks again!
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 07/12/2011 10:09:48
|
marcpalmer
Joined: 04/06/2009 13:36:35
Messages: 303
Location: UK
Offline
|
Hi,
Normally you want your jdbc driver jar in the endorsed/common folder of your servlet container, shipping it in the WAR is not a good idea as it may not be the correct version of the jdbc driver for the database you are accessing (which is dependent on the hosting environment).
Marc
|
- -
Twitter: wangjammer5
Blog: http://www.anyware.co.uk
Grails plugins: http://www.grailsrocks.com
|
|
|
 |
|
|