To get fix of issue https://jira.spring.io/browse/SPR-12283, I upgraded my Spring to version 41.2 after which it complains about missing method setRemoveOnCancelPolicy in ThreadPoolTaskScheduler.
Following reported issue https://jira.spring.io/browse/SPR-12238 points that it is due to JDK 1.6, but I am on 1.7
I am using IBM Java and it's version is java_1.7_64, when I deploy in WebShepre, I get following Exception
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport.defaultSockJsTaskScheduler()]
threw exception; nested exception is java.lang.NoSuchMethodError: org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.setRemoveOnCancelPolicy(Z)V
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.ja