Monday, May 31, 2010

Hibernate problems after deploying to google appspot

Hi all,

I have an application which uses hibernate that runs fine in hosted
mode, but no longer when deployed.
Here's the details:

In hosted mode it connects to a database that resides on a remote
server.
Connection details set in hibernate.cfg.xml

When run I it get a long stacktrace with errors similar to the
following:

SEVERE: Unable to instrument
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8. Security restrictions may not be entirely emulated.

Which apparently has to do with the fact that it's being run in hosted
mode, and I read that it can be ignored.
The application saves and retrieves data without problems.

After deploying it on appspot and when I try to save a new row in a
table I get this:

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract boolean
com.appspot.positivevoice.client.panels.blog.BlogService.saveBlog(com.appspot.positivevoice.client.models.BlogModel)'
threw an unexpected exception: java.lang.NoClassDefFoundError: Could
not initialize class com.mysql.jdbc.ConnectionImpl
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)


Since the app works fine in hosted mode ( apart from those
exceptions ) I am not even sure which files I should add to the
post...

Any idea much appreciated!

Thanks

--
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