Problem with MySQL connection

72 views
Skip to first unread message

devel

unread,
Jun 29, 2011, 2:23:25 PM6/29/11
to Google Web Toolkit
Hi everyone,

I've got again a problem where I don't know how to proceed.
I've got a Hibernate configuration that is perfectly working on a
normal Java application. I've copied everything (config, classes,
libs) to a GWT application (libs also to WEB-INF/lib) and since then
there is no connection to the database server possible. I get an
exception when I try to open a transaction:

org.hibernate.exception.JDBCConnectionException: Cannot open
connection
...
Caused by: java.sql.SQLException: URL is not in the correct format:
jdbc:mysql://127.0.0.1:3306/sample

The format is correct because it is perfectly working in the local
application.
The curious thing is that everything is running fine if I deploy my
application to a Tomcat server.
What do I have to configure in order to run it in my Eclipse with
Jetty of the GWT SDK?

Thanks in advanced for help!
devel

Jeanpylone

unread,
Jun 29, 2011, 2:38:39 PM6/29/11
to google-we...@googlegroups.com
Hi

Does your project use Google App Engine? Cause GAE plugin works as a sandbox and doesn't allow to "make arbitrary network connections" (http://code.google.com/intl/fr-FR/appengine/docs/java/overview.html)

Cordially

Jeanpylone

devel

unread,
Jun 30, 2011, 1:38:39 PM6/30/11
to Google Web Toolkit
Thanks for your replay. You are right. I didn't thought about that. I
now run it on Tomcat.
Are there otherways just to exclude GAE and switch to another server,
but still having the same integration?
Is there a good howto available how to use tomcat or others instead of
the internal jetty server? Manual deployment every time gets a bit
annoying ...

Anyway, this way it is working.

devel

Juan Pablo Gardella

unread,
Jun 30, 2011, 11:26:37 PM6/30/11
to google-we...@googlegroups.com
Can you paste the complete stack tace?

2011/6/29 devel <dev...@googlemail.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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Reply all
Reply to author
Forward
0 new messages