我们正在尝试将Spring MVC应用程序从3.2.2迁移到4.0.2并收到以下错误。
.jar
文件夹中的lib
个文件(以下所有jar文件都已更改为4.0.2版本):
spring-beans-3.2.2.RELEASE.jar spring-context-3.2.2.RELEASE.jar
spring-core-3.2.2.RELEASE.jar spring-expression-3.2.2.RELEASE.jar
spring-orm-3.2.2.RELEASE.jar spring-web-3.2.2.RELEASE.jar
spring-webmvc-3.2.2.RELEASE.jar
Also added one more jar : spring-aop-4.0.2.RELEASE
ERROR:
[9/28/15 1:43:54:731 EDT] 00000026 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause /xbnp/sprin
g/BenefitDistributionParameter.jsp: com.ibm.websphere.servlet.error.ServletErrorReport: java.lang.NoSuchMethodError: org/springframework/web/servlet/tags/form/InputTag.
setDisabled(Ljava/lang/String;)V
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:695)
at com.ibm._jsp._BenefitDistributionParameter._jspService(_BenefitDistributionParameter.java:1953)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
Caused by: java.lang.NoSuchMethodError: org/springframework/web/servlet/tags/form/InputTag.setDisabled(Ljava/lang/String;)V
at com.ibm._jsp._BenefitDistributionParameter._jspx_meth_spring_input_1(_BenefitDistributionParameter.java:2010)
at com.ibm._jsp._BenefitDistributionParameter._jspService(_BenefitDistributionParameter.java:624)
我们如何纠正这个错误?