I am attempting to move a xml-based Spring MVC app to a Java Configuration based app. There appears to be a mismatch with the various java.servlet classes available in mave
I had a similar problem without Spring, where mvn tomcat7:run
did not work, despite the servlet deploying to OpenShift just fine. As per Biju Kunjummen's answer, the problem for me was which servlet-api I was compiling against.
Broken:
javax.servlet
javax.servlet-api
3.0.1
provided
Fixed:
org.mortbay.jetty
servlet-api
3.0.20100224
provided
Not terribly sure why, but it works now.