`
isy
  • 浏览: 103765 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类

关于"严重: Exception starting filter struts2"的解决

    博客分类:
  • java
阅读更多

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服务器一切正常.

1
1
分享到:
评论

相关推荐

    SSH2报错xception starting filter struts2

    严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

    struts2开发遇到的问题

    7. **严重:Exception starting filter struts2,Error filterStart,Context [/struts2] startup failed due to previous errors** 这个严重错误通常涉及到Struts2配置问题,可能的原因包括: - `struts.xml`中的...

    配置struts2常见错误

    Console 错误:Exception starting filter struts2 **问题描述**: ``` Nomapping found for dependency[type=com.opensymphony.xwork2.ObjectFactory,name='default'] in public void ...

    Tomcat部署项目时报错解决方案

    严重: Exception starting filter struts2 Unable to load configuration. - [unknown location] ``` 该错误提示通常伴随着一系列的堆栈跟踪信息,指向了问题的具体原因。例如,在提供的部分内容中可以看到以下堆栈...

    初学者用的几个struts2的基本包

    第一次做struts2的程序,却遇到了Exception starting filter struts2的问题,追其原因,其中一个很大的原因是其官方网站上下的那几个包不行。于是费劲千辛万苦找到了这几个好使的包!

    java异常解决方案.docx

    * Exception starting filter struts2 The action name cannot be the same as the action suffix [Action] + 解决方案:检查 Struts2 的 Action 定义,是否存在名称冲突的问题,尝试使用唯一的名称来解决问题。 * ...

    struts2错误集合.txt

    错误信息:“Exception starting filter struts2”。这可能是由于`web.xml`中未正确配置Struts2过滤器,或者类路径中缺少必要的jar文件。 8. **结果类型定义错误:** 错误信息:“There is no result type defined...

    struts2.3.8配置教程

    &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;struts2&lt;/filter-name&gt; &lt;url-pattern&gt;/* &lt;/filter-mapping&gt; ``...

    java 遇到的各种异常

    Exception starting filter struts2: The action name cannot be the same as the action suffix [Action]** - **异常描述**:Struts2 Action命名冲突。 - **原因分析**:Action名称与Action后缀名重复。 - **解决...

Global site tag (gtag.js) - Google Analytics