This discussion is archived
1 Reply Latest reply: Jan 1, 2013 11:14 PM by Nattu RSS

RESTful web services throws page not found error in apex listener

Nattu Explorer
Currently Being Moderated
Hi,

I have configured Apex Listener 2.0 with Apex 4.2 and Oracle 11g Express Edition after sorting out the issues as discussed in the thread Apex Listener Configuration Issue.

After setting everything up in the listener thro SQL Developer, the TEST button appears on the RESTful Service>Resource Template> Resource Handler Page in Apex SQL Workshop. However, if I click the button it says 404 Page not found error.
WebException [statusCode=404]
     at oracle.dbtools.rt.web.WebException.webException(WebException.java:330)
     at oracle.dbtools.rt.web.WebException.notFound(WebException.java:284)
     at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:71)
     at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:336)
     at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:125)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
     at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
     at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
     at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65)
     at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
     at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
     at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
     at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
     at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
     at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
     at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
     at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
     at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
     at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
     at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
     at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
     at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
     at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
     at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
     at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
     at java.lang.Thread.run(Unknown Source)
The URL is http://localhost:8585/apex/natarajan/hr/empinfo where apex is the default data base, natarajan is my workspace name, hr is the RESTful service module and empinfo is the URI template. Note, it is the url of the sample web service oracle.example.hr created by Oracle itself. I am not sure what went wrong with this.

I followed the steps in the SQL Developer (version 3.2) User Guide for administrating RESTful services http://docs.oracle.com/cd/E35137_01/appdev.32/e35117.pdf
, in there it is told in the section 1.16.4.2 to Enable RESTful Services, but I couldn't find an option in the SQL Developer window under the Listener>Database Settings>apex>Connections>RESTful Connection. I was able to give password for APEX_LISTENER and APEX_REST_PUBLIC_USER and the listener started successfully.

Will highly appreciate your help.

Regards,

Natarajan

Edited by: Nattu on Jan 2, 2013 3:29 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points