GWT RPC在客户端使用来自另一个项目的类

时间:2010-08-02 16:04:23

标签: java gwt netbeans

我的问题与我的previous类似,但这次我将其他项目包含在我的主项目中(我想在客户端使用另一个项目类)。 这是我的包层次结构:

Package hierarchy http://i28.tinypic.com/mua2cw.gif

Common.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name='com.google.gwt.user.User' />
<source path="dal.entities"></source>
</module>

Main.gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module rename-to="">
<inherits name="com.google.gwt.user.User"/>
<inherits name="org.rj.shared.Shared"/>
<inherits name="Common" />
<entry-point class="org.rj.client.MainEntryPoint"/>    
</module>

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

获取jpa-annotations-source.jar,see comment 14并将其添加到您的webproject类路径(具有GWT的路径)。这应该允许GWT编译器“看到”实体类的导入源,我认为这会导致问题。希望它有效! ;)

相关问题