我新建了一个Struts项目,用的是Tomcat5.5 JDK1.5 但是Tomcat启动时候发生错误:
严重: The /WEB-INF/web.xml was not found.
2005-11-16 15:19:46 org.apache.tomcat.util.digester.Digester endElement
严重: End event threw exception
……
……
严重: Parse error in application web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'action' is not unique
        at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719)我的web.xml文件没有任何错误,而且在tomcat和项目中的/WEB-INF/目录下都有,找了很久不知道什么原因。另外,只要在页面中使用C标签就出错,我的C标签的引用都是:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 而且下载了JSTL1.1版本。
找遍许多国外网站和SUN的网站都找不到解决办法,倒是想我一样文C标签的不少。
希望那位知道这两个问题的告诉我!

解决方案 »

  1.   

    把web.xml里的内容考过来帮你检查!
      

  2.   

    你的web.xml配置有问题、,里边有错误。严重: Parse error in application web.xml
    java.lang.IllegalArgumentException: addChild:  Child name 'action' is not unique
            at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719)
    你可以在IDE中,右键单击web.xml文件,然后validate,看这个文件是否合法。
      

  3.   

    谢了,web.xml文件果然有语法问题。改为2.3的就可以了。但是现在Tomcat找不到web.xml文件。启动的时候出现这句话:
    信息: Missing application web.xml, using defaults only StandardEngine[Catalina].
    StandardHost[localhost].StandardContext[]然后运行项目就提示:警告: Internal Error: File /WEB-INF/web.xml not found
    我肯定我的web.xml文件在项目的WEB-INF目录下,Tomcat里也有一份。
    这是为什么?
      

  4.   

    File /WEB-INF/web.xml 这个File是怎么回事呀?