服务器:Weblogic IDE:Intellej IDEA
嗨,我试图将struts版本从2.2.1迁移到2.3.24.1
按照以下网址添加Struts版本2.3.24.1所需的jar http://mvnrepository.com/artifact/org.apache.struts/struts2-core/2.3.24.1 http://mvnrepository.com/artifact/org.apache.struts.xwork/xwork-core/2.3.24.1
但收到以下错误:
Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:213)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)
Truncated. see log file for complete stacktrace
正如错误所示" StringUtils"在Commons-lang3 jar中找不到类,但我已经添加了commons-lang3-3.2 jar
但我仍面临着与上述相同的错误。
在pom.xml中添加了Jars
struts2-core 2.3.24.1,commons-fileupload 1.3.1,commons-io 2.4,ognl 3.0.6,javassist 3.11.0.GA,freemarker 2.3.22,xwork-core 2.3.24.1,asm 3.3,asm -commons 3.3,commons-lang3 3.2,servlet-api 2.4,jsp-api 2.0,log4j 1.2.17
有人可以建议我如何解决这个问题吗?