Tomcat启动(默认web.xml)问题

时间:2012-02-23 14:56:59

标签: xml tomcat webserver boot

已经制作了类似的主题,但没有任何内容。因此,一个标题让人想起其他人。

我一直试图让Tomcat运行,但是它肯定不会让我失望。我试图进入时得到404.

Catalina logs提供以下输出:

SEVERE: Parse error in default web.xml
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

[Loads of stuff like "at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)"]
23-Feb-2012 07:59:26 org.apache.catalina.startup.ContextConfig processDefaultWebConfig
SEVERE: Occurred at line 1210 column 1
23-Feb-2012 07:59:26 org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
23-Feb-2012 07:59:26 org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
23-Feb-2012 07:59:26 org.apache.catalina.core.StandardContext start
SEVERE: Context [/skat] startup failed due to previous errors
23-Feb-2012 07:59:26 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
23-Feb-2012 07:59:26 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
23-Feb-2012 07:59:26 org.apache.catalina.startup.Catalina start
INFO: Server startup in 509 ms

另外,我不会粘贴1200行,但我的默认web.xml看起来像这样: http://pastebin.com/mXSy6TPK

它应该有1209行,但是当我发布它时,我不小心删除了一个新行。 正如您在错误消息中看到的那样,错误发生在甚至不存在的行上。 有什么想法吗?

1 个答案:

答案 0 :(得分:2)

您没有关闭根元素。除非您知道自己在做什么,否则不要篡改默认的web.xml。

相关问题