3 Replies Latest reply: Feb 4, 2013 9:42 AM by adrianp RSS

    Apex listener 2 with glassfish give 404 not found

    syant
      Here'is my set up :

      Apex 4.2.1
      Glassfish server 3.1.2
      Apex listener 2

      I am using sqldeveloper to connect to apex listener and successfully display my apex , except the restful service. When i hit test in the oracle hr sample. all i got is 404 not found message, i try to change the url path and everything, but i cant figure this out.

      Any clue please?
        • 1. Re: Apex listener 2 with glassfish give 404 not found
          adrianp
          Check you container logs for errors and ensure that the additional steps for configuring Restful Services were performed successfully.
          http://docs.oracle.com/cd/E37097_01/doc/install.42/e35123/otn_install.htm#BABFGHFJ
          • 2. Re: Apex listener 2 with glassfish give 404 not found
            syant
            i miss the sql script step on your guidance link. Do I need to repeat all the step? coz after i run the script, the error still exist.

            this is log error that displayed on the web page,
            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:770)
                 at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
                 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
                 at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
                 at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
                 at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
                 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
                 at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
                 at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
                 at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
                 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(Thread.java:679)

            Thanx for reply. :)
            • 3. Re: Apex listener 2 with glassfish give 404 not found
              adrianp
              Nope. Just run that script, reconfigure the listener with the additional account information and restart the listener.