我在我的GWT编译过程中遇到了此编译错误。我正在使用它来解析XML文档。GWT错误!没有源代码可用于类型org.w3c.dom.Node
[ERROR] Line 24: No source code is available for type org.w3c.dom.Node; did you forget to inherit a required module?
[ERROR] Line 28: No source code is available for type org.w3c.dom.NodeList; did you forget to inherit a required module?
[ERROR] Aborting compile due to errors in some input files
从我没有这方面它说,任何研究类路径可能会丢失,但因为这会默认在GWT-user.jar和JRE7包括在内,而我还没有包括任何外部罐子也,故没有重复的情况!并且你不能在客户端代码中具有这些类型的代码,因为它将被转换为javascript
我有一个类在我的共享文件夹(GWT Model View Presenter Project结构)中使用此节点,它基本上是模型!
- 将代码移到服务器端是唯一可能的解决方案吗?
如果1是真的,我会怎么能够修改我的客户端访问主持人这个模型没有RPC调用每次的头顶?
是否有任何其他方法这样做呢?
我的GWT配置文件。
<module rename-to='xxxxx'>
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<inherits name="com.google.gwt.xml.XML" />
<entry-point class='com.xxxx.xxxxx.gwt.client.ProjectEntry'/>
<source path='client'/>
<source path='shared'/>
</module>
编辑:我已经包含了xml继承了!它在你的代码库工作
可能您发布的GWT模块的配置文件? – 2012-07-12 11:00:36