无网络连接时 启动 tomcat 异常

来源:互联网 发布:拳皇97mac免费版 编辑:程序博客网 时间:2024/05/16 19:52

 Can't create Tiles definition factory for module ''.
Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable.  Most likely, this is due to an incorrect or missing library dependency.
javax.servlet.ServletException: IO Error while parsing file '/WEB-INF/tiles-defs.xml'. jakarta.apache.org

 

原因是 tiles-defs.xml 中的 tiles-config_1_3.dtd 地址是来自网络,而非本地的。

修改为

<!DOCTYPE tiles-definitions PUBLIC
          "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
          "../webapps/项目名/WEB-INF/tiles-config_1_3.dtd">即可。

原创粉丝点击