1

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?

cubesoft
  • 3,448
  • 7
  • 49
  • 91

2 Answers2

3

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

axtavt
  • 239,438
  • 41
  • 511
  • 482
  • 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? – cubesoft Feb 05 '10 at 09:46
  • The link is broken, please update if possible. thank you – timmz Mar 08 '15 at 14:20
0

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.