【发布时间】:2011-08-10 11:53:54
【问题描述】:
我想在我的本地 Tomcat 服务器中设置一个具有许多依赖项的 GWT 应用程序(版本 2.0.0)。我开始编写一个用于部署和打包应用程序的 maven2 构建脚本。
我编写了一个 maven2 脚本,在我看来它工作得很好,但是当我尝试在我的 tomcat 上部署即将到来的战争时出现错误。
2011-04-21 18:14:13,951 ERROR org.apache.catalina.startup.ContextConfig - Parse error in application web.xml file at jndi:/localhost/quickfinder.ui-1.0-SNAPSHOT/WEB-INF/web.xml
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
web.xml 如下所示: here 我的 maven2 脚本如下所示: here
在编译和链接以及其他内容之后,我的“部署”目录(名为 war)如下所示:
|-AnswerPanel.css
在 WEB-INF 目录下的 lib 下,所有需要的库都可用。该项目有一些 RPC 调用等等。
|-common.css
|-DomainListPanel.css
|-glossary.css
|-glossary.html
|-images
|-META-INF
|-MulitpleChoiceEditPanel.css
|-MultipleChoiceDisclosurePanel.css
|-NaviPanel.css
|-QuestionnairePanel.css
|-quickfinder
|-Quickfinder.css
|-Quickfinder.html
|-quickfinderportlet
|-QuickfinderPortlet.html
|-styles-css2.css
|-styles-css3.css
|-WEB-INF
|--lib
使用mvn compile war:war 在/target 下创建一个.war 文件和一个名为#artifactId#-SNAPSHOT-1.00 的文件夹。
tomcat这个错误表单不知道怎么处理,还是pom.xml中有逻辑错误。
BR, 我的贝克
【问题讨论】: