本文主要是介绍Tiles配置问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Struts配置Tiles郁闷的问题2007-12-10 11:24ERROR - Can't create Tiles definition factory for module ''.
ERROR - 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: org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file 'WEB-INF/tiles-defs.xml'. jakarta.apache.org
1.在无网络环境时,要把config-tiles.xml里的dtd文件位置改在本地的文件路径,否则出来IO Error
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"D:/eclipse/workspace/HMS/WEB-INF/lib/tiles-config.dtd">
18:45:04,046 ERROR [TilesPlugin] Can't create Tiles definition factory for modul
e ''.
18:45:04,046 ERROR [[action]] Allocate exception for servlet action
org.apache.struts.tiles.DefinitionsFactoryException: IO Error while parsing file
'/WEB-INF/config-tiles.xml'. /WEB-INF/lib/tiles-config.dtd
这篇关于Tiles配置问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!