views:

298

answers:

2

In my GWT service on server side I use Hibernate. When creating a SessionFactory I get following error:

"java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details."

What could be the reason?

+3  A: 

It seems to be that you are trying to use Hibernate on Google App Engine, but Hibernate is incompatible with Google App Engine

axtavt
Ok. This looks unattractive. But what if I deploy my GWT app on Tomcat? Will it then run with Hibernate? As I understand, the issues with GWT and Hibernate is only when you deploy your GWT app on GAE? I'm I right?
dominolog
@dominolog Yes, it would work on Tomcat
axtavt
Thanks for the answer.
dominolog
A: 

This is a common GWT issue in debug mode - eg if you're looking to get postgres data locally before a prod install, you can't using the app engine. But when tomcat (or whatever) is serving the servlets, all is normal.

Neil Visnapuu