jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Mojo
  • MOJO-1076

org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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)
...

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
David J. M. Karlsen added a comment - 20/Mar/08 12:24 PM

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.

Show
David J. M. Karlsen added a comment - 20/Mar/08 12:24 PM 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.
Hide
Permalink
nicolas de loof added a comment - 21/Mar/08 3:05 AM

My issue was introduced by gwt-user.jar that contains javax.servlet package.

Setting it as provided solved the issue.

Show
nicolas de loof added a comment - 21/Mar/08 3:05 AM My issue was introduced by gwt-user.jar that contains javax.servlet package. Setting it as provided solved the issue.

People

  • Assignee:
    Unassigned
    Reporter:
    nicolas de loof
Vote (0)
Watch (0)

Dates

  • Created:
    20/Mar/08 10:18 AM
    Updated:
    04/Sep/08 9:15 AM
    Resolved:
    21/Mar/08 3:05 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.