开发者

GWT and Hibernate NoClassDefFoundError

When i try to make an RPC call to the server i get the following error message

** WebModule[/ProjectName]Exce开发者_运维问答ption while dispatching incoming RPC call java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer**

Is this any classpath issue?or do i need to include any lib file or something in my project?

I tried searching for a solution but could not find one online.

Thanks


Hibernate extends your entity classes so that gwt cannot serialize them, meaning you need to separate classes for sending the data over an rpc.

You will find more info on this page


Try to copy .jar file that contains net.sf.cglib.proxy.Enhancer class to war/web-inf/lib directory. Apparently, it's must be hibernate jar.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜