简体   繁体   English

错误.gwt.xml Vaadin

[英]Error .gwt.xml Vaadin

UPDATE: I was able to add Vaadin 7 jars manually and create a v7 application but it still grave me the same error in the xml when I run it 更新:我能够手动添加Vaadin 7 jar并创建一个v7应用程序,但是运行它时,它仍然使xml中出现相同的错误

I'm new to Vaadin and web application development. 我是Vaadin和Web应用程序开发的新手。 I'm still wrapping my head around all that is envolved in this technology and how it works. 我仍在全神贯注于这项技术及其工作原理。

I wanna develop a simple application with a login to do basic file parsing. 我想开发一个具有登录名的简单应用程序来进行基本文件解析。 I downloaded the Vaadin 6 eclipse plugin (I wasn't able to use version 7 because of newtork security). 我下载了Vaadin 6 eclipse插件(由于newtork的安全性,我无法使用版本7)。 I'm using Tomcat 7, Eclipse Indigo Service Release 2, as well as Apache IvyDe plugin (which I still don't understand what it does!) 我正在使用Tomcat 7,Eclipse Indigo Service Release 2和Apache IvyDe插件(我仍然不知道它的作用!)

I used the dragDrop wizard in Vaadin to create the interface of my Login page but when I tried to run my program it it gave me the following error 我使用了Vaadin中的dragDrop向导来创建“登录”页面的界面,但是当我尝试运行程序时,它给了我以下错误

The errors below were detected when validating the file "gwt-module.dtd" via the file "LoginWidgetset.gwt.xml".  
In most cases these errors can be detected by validating "gwt-module.dtd" directly.
However it is possible that errors will only occur when gwt-module.dtd is validated in the context of LoginWidgetset.gwt.xml.

Line 2 - The markup declarations contained by the document type decleration must be well-formed

and there seem to be an error in the LoginWidgetset.gwt.xml which I couldn't reslove 而且LoginWidgetset.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.vaadin.terminal.gwt.DefaultWidgetSet" />

<!--
 Uncomment the following to compile the widgetset for one browser only.
 This can reduce the GWT compilation time significantly when debugging.
 The line should be commented out before deployment to production
 environments.

 Multiple browsers can be specified for GWT 1.7 as a comma separated
 list. The supported user agents at the moment of writing were:
 ie6,ie8,gecko,gecko1_8,safari,opera

 The value gecko1_8 is used for Firefox 3 and later and safari is used for
 webkit based browsers including Google Chrome.
-->
<set-property name="user.agent" value="gecko1_8"/>
</module>

I was also trying to use one of the Addons from the official Vaadin website but whenever I run my appliation it gives me the same error with the .gwt.xml 我也试图使用Vaadin官方网站上的插件之一,但是每当我运行应用程序时,.gwt.xml都会给我同样的错误

Does anybody know what's causing this error? 有人知道导致此错误的原因吗? It would also be very helpful if you could explain to me the role of the IvyDe plugin. 如果您可以向我解释IvyDe插件的作用,这也将非常有帮助。 I'm not using Maven but only because I don't know how it would help. 我不使用Maven,只是因为我不知道它会如何帮助。 If you could shed a light on that too I'd really appreciate it. 如果您也能对此有所了解,我将非常感激。

And on a final note, is this the right approach I should be taking to develop web apps or should I stick with common frameworks and jsp? 最后要说的是,这应该是我开发Web应用程序时应该采用的正确方法,还是应该坚持使用通用框架和jsp?

Thanks 谢谢

The network security was blocking the google-web-toolkit.googlecode.com server so I created a gwt-module.dtd and stored it to a local directory and then referenced that in my xml instead of the live link. 网络安全性阻止了google-web-toolkit.googlecode.com服务器,因此我创建了gwt-module.dtd并将其存储到本地目录,然后在我的xml中而不是实时链接中对其进行引用。

<!DOCTYPE module 
SYSTEM "file:\\\\public\share\MyWebApp\WebContent\WEB-INF\gwt-module.dtd">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM