GWT and Hibernate - NoClassDefFoundError when using Hibernate

大憨熊 提交于 2019-12-24 08:20:46

问题


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?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/2203830/gwt-and-hibernate-noclassdeffounderror-when-using-hibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!