bmuschko/gradle-tomcat-plugin — Issue #19: java.lang.ClassCastException (SpringServlet)
Author: 303devworks
Created: 2012-01-04 20:23:23+00:00
State: open

We are using a Jersey web service in tomcat. When I start up "gradle tomcatRun" we always get this:

java.lang.ClassCastException: com.sun.jersey.spi.spring.container.servlet.SpringServlet cannot be cast to javax.servlet.Servlet

The problem appears to be this dependency:

compile(group: 'com.sun.jersey', name: 'jersey-spring', version: '1.11'),

I am not sure how to solve this one....I saw a similar issue in the FAQ, however the solution suggested doesn't solve the cast exception.

thanks for any thoughts.

phil