Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:tomcat 6 windows XP Java 6.0 (jrockit)
-
Complexity:Intermediate
Description
My application is configured with spring-webmvc as a dependency, and DispatcherServlet configured in my web.xml.
When starting tomcat with the plugin-generated configuration, I get :
java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)
...
This is probably because javax-servlet jars have been included - these classes should only be loaded from the container - check your archive - and exclude the dep.