struts 2.3.16.1 upgrades giving TypeMismatchException for struts xwork and SimpleMessageListenerContainer in Spring framework

后端 未结 2 881
粉色の甜心
粉色の甜心 2021-01-22 01:07

I have been upgraded from struts 2.0 to 2.3.16.1 for get the latest security fixes in struts to my web application

when I upgraded deployed in tomcat server it gives fo

相关标签:
2条回答
  • 2021-01-22 01:47

    I guess this has something to do with wrong libraries.

    Check out carefully the Struts2 project dependencies.

    This

    <dependency>
        <groupId>com.opensymphony</groupId>
        <artifactId>xwork</artifactId>
        <version>2.1.3</version>
    </dependency>
    

    Should be 2.3.16.1 like the others for example...

    0 讨论(0)
  • 2021-01-22 01:47

    Reduce your pom.xml to the following content and allow Maven to resolve missing dependencies:

    <dependency>
        <groupId>org.apache.struts</groupId>
        <artifactId>struts2-spring-plugin</artifactId>
        <version>2.3.16.1</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题