GWT和Hibernate - 使用Hibernate时的NoClassDefFoundError [英] GWT and Hibernate - NoClassDefFoundError when using Hibernate

查看:111
本文介绍了GWT和Hibernate - 使用Hibernate时的NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在服务器端的我的GWT服务中,我使用Hibernate。当创建一个SessionFactory时,我得到以下错误:



java.lang.NoClassDefFoundError:java.net.Socket是一个受限制的类,请参阅Google App Engine开发人员指南更多细节。



可能是什么原因? 解决方案

您似乎试图在Google App Engine上使用Hibernate,但 Hibernate与Google App Engine不兼容


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?

解决方案

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

这篇关于GWT和Hibernate - 使用Hibernate时的NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆