3 Replies Latest reply on Oct 1, 2015 6:06 AM by Kiran Pawar

    404 Not Found error with ords 3.0.1.177.18.02 with sample REST example

    Orcl since Version 1

      I have set up and configured an ORDS configuration that successfully connects to two APEX 4.5.0 driven websites that reside on two different servers.  That is working fine, all static files (both apex and my own) are being served, applications function properly, etc.  I now need to develop a REST webservice for one of the databases.  In preparation for that, I am trying to work through the examples described in C:/ords/examples/getting-started/index.html.  I created the schema and emp table ( and inserted example data) and enabled them both for REST in SQL Developer as described in the example.  I am testing running in standalone mode, but when I attempt to access the following: http://localhost:8080/ords/ordstest/emp/  I get a 404 Not Found Error.  I enabled debugging and am getting the following stack trace output to the screen:

      NotFoundException [statusCode=404, reasons=[]] at oracle.dbtools.url.mapping.URLMappingsProvider.map(URLMappingsProvider.java:79)

      at oracle.dbtools.url.mapping.filter.URLMappingFilter.doFilter(URLMappingFilter.java:55)

      at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

      at oracle.dbtools.http.locale.LocaleFilter.doFilter(LocaleFilter.java:60)

      at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45)

      at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

      at oracle.dbtools.http.cors.CORSResponseFilter.doFilter(CORSResponseFilter.java:71)

      at oracle.dbtools.http.filters.HttpResponseFilter.doFilter(HttpResponseFilter.java:45)

      at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

      at oracle.dbtools.http.errors.ErrorPageFilter.doFilter(ErrorPageFilter.java:75)

      at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45)

      at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

      at oracle.dbtools.http.ecid.ECIDFilter.doFilter(ECIDFilter.java:35)

      at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45)

      at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

      at oracle.dbtools.http.auth.ForceAuthFilter.doFilter(ForceAuthFilter.java:44)

      at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45)

      at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64)

      at oracle.dbtools.http.filters.Filters.filter(Filters.java:47)

      at oracle.dbtools.http.entrypoint.EntryPoint.service(EntryPoint.java:80)

      at oracle.dbtools.http.entrypoint.EntryPointServlet.service(EntryPointServlet.java:46)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      at oracle.dbtools.rt.web.HttpEndpointBase.dispatchableServices(HttpEndpointBase.java:166)

      at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:88)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751)

      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:566)

      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:219)

      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)

      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)

      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)

      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)

      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)

      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)

      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)

      at org.eclipse.jetty.server.Server.handle(Server.java:461)

      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)

      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)

      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)

      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)

      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) at java.lang.Thread.run(Unknown Source)

      Can anyone point me in the right direction?