Results 1 to 2 of 2

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

  1. #1

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •