项目启动报错:SEVERE: Exception starting filter struts2

原创 2015年07月10日 17:39:15

1、错误描述

今天想要搭建一个简单的Struts环境做功能测试,但是项目的启动的时候报错,具体错误内容如下:

SEVERE: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 220 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:220:-1
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:220)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:530)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:501)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:457)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
	at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
	... 14 more
2、解决方案

项目中并未使用spring(未在配置文件中体现),但是,lib中存在多余的spring的jar包。如struts2-spring-plugin或者其他spring等相关的jar包。



相关文章推荐

Myeclipse上启动Struts2项目报错(严重: Exception starting filter struts2)

学习Struts2,按照教学来实际操作时,发现我的项目根本起不来,在网上查了很久,有很多人说缺包导致的,然后就各种添加包,结果还是一样。 环境如下: Myeclipse 8.5 Struts...

启动tomcat报错:exception starting filter struts2 unable to load configuration.代码没有任何问题

启动tomcat报错:exception starting filter struts2 unable to load configuration.代码没有任何问题 我的代码没有任何...

struts2 2.1.6报错 严重: Exception starting filter struts2

struts2  2.1.6报错  严重: Exception starting filter struts2  用的是struts2  2.1.6  web.xml中的struts2过滤器为: ...

Tomcat6.X 配置Struts2 报错 “严重: Exception starting filter struts2”

开始使用Struts2 配置文件很容易出错。 2012-4-28 11:47:06 org.apache.catalina.core.StandardContext filterStart 严...

SSH2报错xception starting filter struts2

  • 2011年03月31日 07:32
  • 2.68MB
  • 下载

Exception starting filter struts2 java.lang.NullPointerException 解决...

或者现在你的struts.xml里面看看,肯定有这样的代码....如果有就继续往下看吧.....org.apache.catalina.core.StandardContext filterStar...

严重: Exception starting filter struts2 --Unable to load configuration. - bean - jar:file:

严重: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/C:/Program%2...

Exception starting filter struts2 Unable to load configuration. - [unknown location]

Exception starting filter struts2 Unable to load configuration. - [unknown location]     at com.op...

严重: Exception starting filter struts2

严重: Exception starting filter struts2java.lang.NullPointerExceptionat com.opensymphony.xwork2.util.F...

Exception starting filter struts2 java.lang.NullPointerException 解决方法!!!!

或者 现在你的struts.xml里面看看,肯定有这样的代码....如果有就继续往下看吧.....org.apache.catalina.core.StandardContext filterS...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:项目启动报错:SEVERE: Exception starting filter struts2
举报原因:
原因补充:

(最多只允许输入30个字)