2014-04-03 69 views
1

我有一个小的GWT Java程序,已经在谷歌应用程序引擎上运行了大约一年。我最近对它进行了一些更改,然后在部署之前必须将JRE更新到7.1。一旦我做到了,我让我的gwt.xml文件以下错误:gwt.xml错误:元素类型模块的内容必须匹配

The content of element type "module" must match "(inherits|source|public|super-source|entry-point|stylesheet|script|servlet|replace-with| 
generate-with|define-property|extend-property|set-property|set-property-fallback|clear-configuration-property|define-configuration- 
property|extend-configuration-property|set-configuration-property|property-provider|define-linker|add-linker|collapse-all-properties|collapse-property)*". 

我发现this问题该向我解释什么意思的错误,我看到我的源元素是我的入口点后元件。我移动它们以匹配错误消息中的顺序,但错误仍然存​​在。有什么想法吗?

这里是我的gwt.xml文件:

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
When updating your version of GWT, you should also update this DTD reference, 
so that your app can take advantage of the latest GWT module capabilities. 
--> 
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.0//EN" 
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.0/distro-source/core/src/gwt-module.dtd"> 
<module rename-to='helpdesktest'> 

<!-- Inherit the core Web Toolkit stuff.      --> 
<inherits name='com.google.gwt.user.User'/> 
<inherits name='com.google.gwt.xml.XML'/> 
<inherits name='com.google.gwt.logging.Logging'/> 
<inherits name='com.google.gwt.http.HTTP'/> 

<!-- Inherit the default GWT style sheet. You can change  --> 
<!-- the theme of your GWT application by uncommenting   --> 
<!-- any one of the following lines.       --> 
<inherits name='com.google.gwt.user.theme.clean.Clean'/> 
<!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> --> 
<!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> --> 
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>  --> 

<!-- Other module inherits          --> 

<!-- Specify the paths for translatable code     --> 
<source path='client'/> 
<source path='shared'/> 

<!-- Specify the app entry point class.       --> 
<entry-point class='com.google.gwt.HelpDeskTest.client.HelpDeskTest'/> 


<!-- Set logging parameters --> 
<set-property name="gwt.logging.logLevel" value="SEVERE"/> #change default log level 
<set-property name="gwt.logging.enabled" value="FALSE"/> #set to FALSE to disable logging 
<set-property name="gwt.logging.consoleHandler" value="DISABLED"/> #to disable set to DISABLED 
<set-property name="gwt.logging.popupHandler" value="DISABLED"/> 
<set-property name="gwt.logging.developmentModeHandler" value="DISABLED"/> 

</module> 

回答

3

<module>不接受文本内容,但你有这些#change default log level位在您的文件。

将它们转换为XML注释(<!-- change default log leve -->)或将其删除。


BTW,元素的顺序并不重要WRT XML验证(要紧的是什么,他们的意思是,虽然,有些事情有时对他人进行处理,因为一个覆盖除外)

+0

谢谢。我在这三行删除了#符号及其后的所有内容,但仍然出现错误。我试着评论xml文件的不同部分,看看是否有所作为,但没有。嗯.... – brl8

+0

因此,由于其他一些错误,我最终做了一个全新的Eclipse和GWT安装,错误消失了。所以我不知道那是什么。 :/ – brl8

相关问题