开发者

Deploying my GWT Application on Tomcat Server

I want to setup a GWT application (Version 2.0.0) with many dependencys in my local Tomcat Server. I started to write a maven2 build script for deploying and packaging of the application.

I wrote a maven2 script which works really fine in my eyes, but I get an error when trying to deploy the out coming war on my 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.

The web.xml is look like the following: here and my maven2 script looks like this: here

After compiling and linking and the other stuff my "deploy" directory (named war) looks like:

|-AnswerPanel.css

|-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 Under lib in the WEB-INF directory, all needed library's are available. The Project has got some RPC calls and so on.

With mvn compile war:war a .war file and a folder named #artifactId#-SNAPSHOT-1.00 are created unde开发者_JS百科r /target.

I don't know how to handle with this error form tomcat, or is there a logical mistake in the pom.xml.

BR, mybecks


Your web.xml is not well-formed: fix the below section

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd" [
<!ENTITY GlossaryWebXml SYSTEM "glossary.web.xml"> -->
 ]>


I would suggest to add maven-xml-plugin to your validate phase. It will check your web.xml automatically.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜