REST Returns 404

http://localhost:8888/rest works.
http://localhost/rest fails with 404

I saw a post about adding a “*” managed handler, but that didn’t seem to make a difference.

The 404 detail indicates that IIS is trying to resolve the page at C:\inetpub\wwwroot\rest\ using the BonCode-Tomcat-All handler I created for “*”. If I drop the BonCode-Tomcat-All handler, the 404 uses the Static handler with the same result.

C:\lucee\tomcat\conf\web.xml

  <!-- Lucee REST Servlet - handles Lucee's RESTful web services             -->
  <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  <servlet>
    <description>Lucee Servlet for RESTful services</description>
    <servlet-name>RestServlet</servlet-name>    
    <servlet-class>lucee.loader.servlet.RestServlet</servlet-class>
    <load-on-startup>2</load-on-startup>
  </servlet>

    <!-- mapping for Lucee's REST servlet -->
    <servlet-mapping>
        <servlet-name>RestServlet</servlet-name>
        <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>

Anyone know what the problem is with IIS recognizing the REST service?

Thanks.

I resolved this issue (for me, anyway).

When I created the “BonCode-Tomcat-All” handler, I inadvertently had the “Invoke handler only if request is mapped to” restriction option set. When I unset that option, the http://localhost/rest returned the expected list.

Thanks to all who took the time to look at this request. Hopefully this helps someone else new to Lucee.