2 Replies Latest reply on Aug 7, 2013 11:41 AM by davenoel

    What is the name of the default servlet in Undertow?

    davenoel Newbie

      I'm trying to get a Spring MVC based web app to run under WildFly 8 build Alpha3.  But am running into a problem where Spring can not determine the name of the default servlet in Wildfly.  The default servlet is used by Spring MVC to serve static resources.  In my standalone.xml file I see the following element in the undertow subsystem element.




      <servlet-container name="default">





      Doe's that mean that "default" is the default servlet name?  When I set it to default in Spring with



      <mvc:default-servlet-handler default-servlet-name="default"/>



      It does not work and I get the following error.



      10:06:47,017 ERROR [io.undertow.request] (default task-2) Servlet request failed HttpServerExchange{ GET /mobile/css/bootstrap.min.css}: org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: A RequestDispatcher could not be located for the default servlet 'default'



      Any ideas?