SSH的项目,struts2升级导入jar后出现错误,求大神解决 10
以下是报错信息,我已经导入了struts2升级后的jar,web.xml的struts2也配置了,从下面的的启动信息看,spring应该启动正常,就是一到struts的过...
以下是报错信息,我已经导入了struts2升级后的jar,web.xml的struts2也配置了,从下面的的启动信息看,spring应该启动正常,就是一到struts的过滤器就报错,有大神能解决么
信息: Initializing Spring root WebApplicationContext
2014-10-30 21:29:00 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'webapp.root1' = [C:\apache-tomcat-7.0.47\webapps\International\]
2014-10-30 21:29:00 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [classpath:log4j.properties]
ERROR: 2014/10/30 21:29:02 Dispatcher initialization failed
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514)
at com.opensymphony.xwork2.inject.ContainerImpl$8.call(ContainerImpl.java:547)
at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584)
at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:545)
我已经替换了struts的基本jar
web.xml为
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
自己认为都正确 就是报错,求解决 展开
信息: Initializing Spring root WebApplicationContext
2014-10-30 21:29:00 org.apache.catalina.core.ApplicationContext log
信息: Set web app root system property: 'webapp.root1' = [C:\apache-tomcat-7.0.47\webapps\International\]
2014-10-30 21:29:00 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [classpath:log4j.properties]
ERROR: 2014/10/30 21:29:02 Dispatcher initialization failed
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514)
at com.opensymphony.xwork2.inject.ContainerImpl$8.call(ContainerImpl.java:547)
at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584)
at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:545)
我已经替换了struts的基本jar
web.xml为
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
自己认为都正确 就是报错,求解决 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询