簡體   English   中英

GWT RPC使用客戶端上另一個項目中的類

[英]GWT RPC using classes from another project on client side

我的問題與一個問題類似,但是這次我將另一個項目包括到我的主項目中(我想在客戶端使用另一個項目類)。 這是我的包層次結構:

包層次結構

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>

感謝您的任何幫助!

持有jpa-annotations-source.jar, 請參閱注釋14 ,並將其添加到您的webproject類路徑(帶有GWT的類路徑)中。 這應該允許GWT編譯器“查看”從您認為會引起問題的實體類中導入的源。 希望它能起作用! ;)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM