tomcat加载运行struts2项目时,控制台报如下错误:
"严重: Exception starting filter struts2
java.lang.NullPointerException
at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325).......
.........................
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-4-11 23:07:17 org.apache.catalina.core.StandardContext start
严重: Error filterStart
"
上网也搜了一下,多是说jar包的问题,或者struts.xml文件拼写有错误,试了,但是没效果.
后来去掉struts.xml的<constant name="struts.devMode" value="true" />调试模式一切正常.
再找到根本原因是我的tomcat路径有空格,为了管理方便,我把tomcat放到了Myeclipse的根目录下,所以路径多了空格,转
移tomcat服务器一切正常.
分享到:
相关推荐
严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
7. **严重:Exception starting filter struts2,Error filterStart,Context [/struts2] startup failed due to previous errors** 这个严重错误通常涉及到Struts2配置问题,可能的原因包括: - `struts.xml`中的...
Console 错误:Exception starting filter struts2 **问题描述**: ``` Nomapping found for dependency[type=com.opensymphony.xwork2.ObjectFactory,name='default'] in public void ...
严重: Exception starting filter struts2 Unable to load configuration. - [unknown location] ``` 该错误提示通常伴随着一系列的堆栈跟踪信息,指向了问题的具体原因。例如,在提供的部分内容中可以看到以下堆栈...
第一次做struts2的程序,却遇到了Exception starting filter struts2的问题,追其原因,其中一个很大的原因是其官方网站上下的那几个包不行。于是费劲千辛万苦找到了这几个好使的包!
* Exception starting filter struts2 The action name cannot be the same as the action suffix [Action] + 解决方案:检查 Struts2 的 Action 定义,是否存在名称冲突的问题,尝试使用唯一的名称来解决问题。 * ...
错误信息:“Exception starting filter struts2”。这可能是由于`web.xml`中未正确配置Struts2过滤器,或者类路径中缺少必要的jar文件。 8. **结果类型定义错误:** 错误信息:“There is no result type defined...
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/* </filter-mapping> ``...
Exception starting filter struts2: The action name cannot be the same as the action suffix [Action]** - **异常描述**:Struts2 Action命名冲突。 - **原因分析**:Action名称与Action后缀名重复。 - **解决...