Websphere 8.5 with Spring-5

后端 未结 3 1407
自闭症患者
自闭症患者 2020-12-29 00:26

Is Websphere 8.5.5 compatible with Spring 5? The Validation API referenced in spring5 (validation-api 5) is resulting in MethodNotFound exception.. Any pointers/patch availa

3条回答
  •  借酒劲吻你
    2020-12-29 01:00

    The above answer is not correct. You can run Spring 5 in WebSphere 8.5. This may not be the perfect solution for your situation, but this will get you on the correct path.

    1.) Provide your Bean Validation 1.1 JAR

    Here is a sample of the Maven dependency.

    
        javax.validation
        validation-api
        1.1.0.Final
    
    

    2.) Add the following a deployment.xml file to the following location in your EAR file.

    /myAppEAR/META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/deployment.xml

    3.) In the contents of your deployment.xml file, you must set the classloaderMode to PARENT_LAST. You must also modify this code to use the correct WAR file name.

    Here is a sample...

    
      
        
        
     
      
    
    

提交回复
热议问题