Saturday, January 29, 2011

Re: Deploying GWT App onto Tomcat

On 1/29/2011 4:37 AM, Ross McKinnon wrote:
> Hi there,
>
> I have been trying to deploy my GWT app connected to a MySQL database
> onto Tomcat! However, when I try to use it, the database connection
> fails! In my buildpath and in the tomcat lib I have the mySQL .jar
> file.
Hi Ross,

Firstly, do you mean that you have the mysql connector jar in two places? You should only have it in
the tomcat lib folder. You do not need to explicitly add into the classpath - tomcat does that for you.

What platform are you running on?

Have you tried connecting to the database using the mysql command line client (something like
/usr/bin/mysql or mysql.exe on windows)

There could be a lot of issues, but a good first one to check is that the firewall is open for 3306

When you say the connection fails are you getting a stack trace? (look in
$TOMCAT_HOME/logs/catalina.out) If so, please post.

HTH

Alan

> Does anyone know how to resolve this issue, have you encountered this
> before?
>
> Thanks,
> Ross
>


--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment