Announcement Announcement Module
Collapse
No announcement yet.
The servlet mapping "dispatcher" refers to a servlet that is not defined Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • The servlet mapping "dispatcher" refers to a servlet that is not defined

    Using Spring 3.2. My web.xml contains:

    <servlet>
    <servlet-name>dispatcher</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value> /WEB-INF/spring/test-servlet.xml
    </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>


    <servlet-mapping>
    <servlet-name>dispatcher</servlet-name>
    <url-pattern>*.htm</url-pattern>
    </servlet-mapping>


    When save/build project, error message indicated:

    The servlet mapping "dispatcher" refers to a servlet that is not defined


    The lib under WEB-INF includes:

    spring-aop-3.2.0.M1.jar
    spring-asm-3.2.0.M1.jar
    spring-aspects-3.2.0.M1.jar
    spring-beans-3.2.0.M1.jar
    spring-context-3.2.0.M1.jar
    spring-context-support-3.2.0.M1.jar
    spring-core-3.2.0.M1.jar
    spring-expression-3.2.0.M1.jar
    spring-instrument-3.2.0.M1.jar
    spring-jms-3.2.0.M1.jar
    spring-orm-3.2.0.M1.jar
    spring-oxm-3.2.0.M1.jar
    spring-test-3.2.0.M1.jar
    spring-tx-3.2.0.M1.jar
    spring-web-3.2.0.M1.jar
    spring-webmvc-3.2.0.M1.jar
    spring-webmvc-portlet-3.2.0.M1.jar

    What could be missing or wrong?


    Thanks to help.

  • #2
    Please use [ code][/code ] tags when posting code that way it remains readable...

    Is it a validation error or do you also get the error when you deploy the application?

    I don't see anything obviously wrong with it.

    Comment

    Working...
    X