[
http://jira.codehaus.org/browse/MOJO-1076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128040
]
David J. M. Karlsen commented on MOJO-1076:
-------------------------------------------
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.
> org.springframework.web.servlet.DispatcherServlet cannot be cast to
> javax.servlet.Servlet
> -----------------------------------------------------------------------------------------
>
> Key: MOJO-1076
> URL: http://jira.codehaus.org/browse/MOJO-1076
> Project: Mojo
> Issue Type: Bug
> Components: sysdeo-tomcat
> Environment: tomcat 6 windows XP Java 6.0 (jrockit)
> Reporter: nicolas de loof
>
> 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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email