4 Replies Latest reply on Dec 3, 2011 5:49 AM by fatehcis-JavaNet

    Cannot Deploy Listener. Neither stand alone nor with glass fish

    fatehcis-JavaNet
      Hi guys,

      I use the latest versions of:
      Apex 4.1
      Oracle 11g xe
      apex_listener.1.1.3.243.11.40
      glassfish-3.1.1
      Windows 7 - 64

      I have been trying to deploy APEX since yesterday.
      For Glass Fish: I followed exactly the steps mentioned in the documentation. but I am getting this error:
      HTTP Status 503 - Requested url http://192.168.1.33:8080/apex/ is currently unavailable.
      type Status report
      messageRequested url http://192.168.1.33:8080/apex/ is currently unavailable.
      descriptionThe requested service (Requested url http://192.168.1.33:8080/apex/ is currently unavailable.) is not currently available.
      GlassFish Server Open Source Edition 3.1.1
      Yesterday, I managed to deploy it with stand alone mode, and created a service for it, but the service did not Start

      I got this error
      windows could not start the apex10 service on Local Computer.
      The service did not return an error. This could be an internal Windows error or an internal servcie error
      . So, I was forced to keep the CMD open. Someone restart the server. I tried to redeploy it again, but I am getting " Internal Error". And here you can find the out put:
      C:\Users\FAM_SERVER>cd C:\Program Files (x86)\Java\jre6\bin\
      
      C:\Program Files (x86)\Java\jre6\bin>java -Dapex.port=2586 -Dapex.home=D:\apex_l
      istener -Dapex.images=C:\apex\images -jar D:\apex_listener\apex.war
      INFO: Starting: D:\apex_listener\apex.war
       See: 'java -jar apex.war --help' for full range of configuration options
      INFO: Extracting to: D:\apex_listener
      INFO: Using classpath: file:/D:/apex_listener/apex/____embedded/start.jar:file:/
      D:/apex_listener/apex/WEB-INF/lib/apex.jar:file:/D:/apex_listener/apex/WEB-INF/l
      ib/commons-fileupload-1.2.1.jar:file:/D:/apex_listener/apex/WEB-INF/lib/je-4.0.1
      03.jar:file:/D:/apex_listener/apex/WEB-INF/lib/ojdbc6.jar:file:/D:/apex_listener
      /apex/WEB-INF/lib/ojmisc.jar:file:/D:/apex_listener/apex/WEB-INF/lib/poi-3.6-200
      91214.jar:file:/D:/apex_listener/apex/WEB-INF/lib/ucp.jar:file:/D:/apex_listener
      /apex/WEB-INF/lib/xdb-11.2.0.jar:file:/D:/apex_listener/apex/WEB-INF/lib/xmlpars
      erv2-11.2.0.jar:
      INFO: Starting Embedded Web Container in: D:\apex_listener
      Enter a username for the APEX Listener Administrator [adminlistener]: admin
      Enter a password for admin:
      Confirm password for admin:
      Enter a username for the APEX Listener Manager [managerlistener]: manager
      Enter a password for manager:
      Confirm password for manager:
      Nov 17, 2011 9:22:16 AM ____bootstrap.Deployer deploy
      INFO: Will deploy application path=D:\apex_listener\apex\WEB-INF\web.xml
      Nov 17, 2011 9:22:17 AM ____bootstrap.Deployer deploy
      INFO: deployed application path=D:\apex_listener\apex\WEB-INF\web.xml
      Nov 17, 2011 9:22:17 AM com.sun.grizzly.Controller logVersion
      INFO: Starting Grizzly Framework 1.9.18-o - Thu Nov 17 09:22:17 GST 2011
      INFO: Please complete configuration at: http://localhost:2586/apex/listenerConfi
      gure
      Nov 17, 2011 9:22:19 AM com.sun.grizzly.http.servlet.ServletAdapter doService
      SEVERE: service exception:
      java.lang.IllegalStateException: Not yet initialised
              at oracle.dbtools.apex.config.ApexConfig.notInitialized(ApexConfig.java:
      249)
              at oracle.dbtools.apex.config.ApexConfig.getFile(ApexConfig.java:234)
              at oracle.dbtools.apex.config.ApexConfig.exists(ApexConfig.java:63)
              at oracle.dbtools.apex.admin.AdminManager.populateAdminFieldValues(Admin
      Manager.java:868)
              at oracle.dbtools.apex.admin.AdminManager.getFieldMaps(AdminManager.java
      :841)
              at oracle.dbtools.apex.admin.Admin.displayAdminHTML(Admin.java:164)
              at oracle.dbtools.apex.admin.Admin.displayAdminPage(Admin.java:147)
              at oracle.dbtools.apex.admin.Admin.doGet(Admin.java:50)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at com.sun.grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl
      .java:195)
              at com.sun.grizzly.http.servlet.FilterChainImpl.invokeFilterChain(Filter
      ChainImpl.java:139)
              at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.
      java:376)
              at ____bootstrap.SecureServletAdapter.doService(SecureServletAdapter.jav
      a:72)
              at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
      va:324)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
      Chain.java:180)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
      91)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
      ter.java:170)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
      tocolChain.java:135)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:102)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:88)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
      :76)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
      ask.java:53)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
      java:57)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
      ool.java:330)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
      .java:309)
              at java.lang.Thread.run(Unknown Source)
      Nov 17, 2011 9:22:19 AM com.sun.grizzly.http.servlet.ServletAdapter doService
      SEVERE: service exception:
      oracle.dbtools.rt.service.ServiceLocatorException: There are no services defined
      
              at oracle.dbtools.rt.service.ServiceLocator.acquireAll(ServiceLocator.ja
      va:91)
              at oracle.dbtools.rt.service.ServiceLocator.acquire(ServiceLocator.java:
      74)
              at oracle.dbtools.rt.service.ServiceLocator.acquire(ServiceLocator.java:
      85)
              at oracle.dbtools.rt.web.HttpEndpointBase.dispatchers(HttpEndpointBase.j
      ava:138)
              at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:
      85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at com.sun.grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl
      .java:195)
              at com.sun.grizzly.http.servlet.FilterChainImpl.invokeFilterChain(Filter
      ChainImpl.java:139)
              at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.
      java:376)
              at ____bootstrap.SecureServletAdapter.doService(SecureServletAdapter.jav
      a:72)
              at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
      va:324)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
      Chain.java:180)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
      91)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
      ter.java:170)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
      tocolChain.java:135)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:102)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:88)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
      :76)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
      ask.java:53)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
      java:57)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
      ool.java:330)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
      .java:309)
              at java.lang.Thread.run(Unknown Source)
      Nov 17, 2011 9:22:19 AM com.sun.grizzly.http.servlet.ServletAdapter doService
      SEVERE: service exception:
      oracle.dbtools.rt.service.ServiceLocatorException: There are no services defined
      
              at oracle.dbtools.rt.service.ServiceLocator.acquireAll(ServiceLocator.ja
      va:91)
              at oracle.dbtools.rt.service.ServiceLocator.acquire(ServiceLocator.java:
      74)
              at oracle.dbtools.rt.service.ServiceLocator.acquire(ServiceLocator.java:
      85)
              at oracle.dbtools.rt.web.HttpEndpointBase.dispatchers(HttpEndpointBase.j
      ava:138)
              at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:
      85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at com.sun.grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl
      .java:195)
              at com.sun.grizzly.http.servlet.FilterChainImpl.invokeFilterChain(Filter
      ChainImpl.java:139)
              at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.
      java:376)
              at ____bootstrap.SecureServletAdapter.doService(SecureServletAdapter.jav
      a:72)
              at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
      va:324)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
      Chain.java:180)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
      91)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
      ter.java:170)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
      tocolChain.java:135)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:102)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:88)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
      :76)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
      ask.java:53)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
      java:57)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
      ool.java:330)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
      .java:309)
              at java.lang.Thread.run(Unknown Source)
      Nov 17, 2011 9:22:19 AM com.sun.grizzly.http.servlet.ServletAdapter doService
      SEVERE: service exception:
      oracle.dbtools.rt.service.ServiceLocatorException: There are no services defined
      
              at oracle.dbtools.rt.service.ServiceLocator.acquireAll(ServiceLocator.ja
      va:91)
              at oracle.dbtools.rt.service.ServiceLocator.acquire(ServiceLocator.java:
      74)
              at oracle.dbtools.rt.service.ServiceLocator.acquire(ServiceLocator.java:
      85)
              at oracle.dbtools.rt.web.HttpEndpointBase.dispatchers(HttpEndpointBase.j
      ava:138)
              at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:
      85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at com.sun.grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl
      .java:195)
              at com.sun.grizzly.http.servlet.FilterChainImpl.invokeFilterChain(Filter
      ChainImpl.java:139)
              at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.
      java:376)
              at ____bootstrap.SecureServletAdapter.doService(SecureServletAdapter.jav
      a:72)
              at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.ja
      va:324)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapter
      Chain.java:180)
              at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java
      :166)
              at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:7
      91)
              at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
              at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
              at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
      ter.java:170)
              at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
      tocolChain.java:135)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:102)
              at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
      a:88)
              at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
      :76)
              at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
      ask.java:53)
              at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
      java:57)
              at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
      ool.java:330)
              at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
      .java:309)
              at java.lang.Thread.run(Unknown Source)
      Edited by: Fateh on Nov 16, 2011 9:42 PM

      Edited by: Fateh on Nov 16, 2011 9:46 PM
        • 1. Re: Cannot Deploy Listener. Neither stand alone nor with glass fish
          Udo
          Hi Fateh,
          INFO: Please complete configuration at: http://localhost:2586/apex/listenerConfigure
          Nov 17, 2011 9:22:19 AM com.sun.grizzly.http.servlet.ServletAdapter doService
          SEVERE: service exception:
          java.lang.IllegalStateException: Not yet initialised
          Looking at your console output I have to ask whether you've configured the APEX Listener database connection before (using listenerConfigure).
          I see you hand in an apex.home at startup, but does this home actually contain an apex-config.xml ?

          -Udo
          • 2. Re: Cannot Deploy Listener. Neither stand alone nor with glass fish
            fatehcis-JavaNet
            Thanks Udo,
            You are right, there is no apex-config.xml file in the directory Dapex.home=D:\
            Now, I did not use "Dapex.home" in the "start up script", and it worked and I got the apex listener configuration console.

            Two question:
            If I do not use Dapex.home in the " start up script", then where should this file exist ?

            Still, when I create a service for the "startup file" I am getting the same error:
            windows could not start the apex10 service on Local Computer.
            The service did not return an error. This could be an internal Windows error or an internal servcie error
            So, I have to keep the CMD open... Is it a Windows error ?

            I was surfing the Net looking for a solution to deploy APEX on Glassfish, when I read this
            \\ written in 9/2010:\\ http://goo.gl/7x0df
            APEX Listener currently not working with ORACLE XE (as far as i know, waiting for patch)
            so far i faced an issue with Interactive reports are not working properly with Glassfish
            In general, I think apex 4 is more stable than Apex 4.1. in Apex 4.1 I get logged out for now reason... Some times, I click on the column header in IR, and takes time to load the values.....

            Do you have any Hint regarding glass fish? I deployed Apex listener as instructed in the documentations. Then clicked launch. Then It should start using the port 8080, but it did not work... !! ** I already changed the default HTTP port in Oracle that is 8080 to something else.

            Regards,
            • 3. Re: Cannot Deploy Listener. Neither stand alone nor with glass fish
              Udo
              Hi Fateh,
              If I do not use Dapex.home in the " start up script", then where should this file exist ?
              It will be in your users temp directory. The actual location the APEX Listener uses is part of the console output at startup.
              But I'd recommend to always use the apex.home parameter, so you can be sure where the APEX Listener looks for it and that it's not deleted by some "clean-up".
              Still, when I create a service for the "startup file" I am getting the same error:
              On behalf of which account is the service supposed to run? If you don't have apex.home set, the temp directory will usually be different if you don't use your user. Hence, you'll have to have a configuration for the account that runs the service.
              So, I have to keep the CMD open...
              No, you could (and should) pipe the console output into a log file. See the full command line in the example I posted here: {message:id=9606494}
              I think this is the post you referred to above...
              APEX Listener currently not working with ORACLE XE (as far as i know, waiting for patch)
              so far i faced an issue with Interactive reports are not working properly with Glassfish
              There's two points for that inaccurate publication:
              1. There has been a workaround for that issue.
              2. The problem has been solved short after it was recognized.

              There are many users using APEX Listener with XE here in forum. I have a two instances myself, including one with the new 11.2 XE and APEX 4.1, as in your scenario, and it works nicely.
              In general, I think apex 4 is more stable than Apex 4.1. in Apex 4.1 I get logged out for now reason... Some times, I click on the column header in IR, and takes time to load the values.....
              Well, as far as I know, there have been severe changes in IRs, so it's not completely unlikely that some of the changes might cause new problems. But I guess you'll find answers for this in the forum {forum:id=137}.
              Do you have any Hint regarding glass fish? I deployed Apex listener as instructed in the documentations. Then clicked launch. Then It should start using the port 8080, but it did not work... !!
              Hmmm... Do you see the GlassFish default page ("GlassFish Server - Server Running") when you call http://<hostname>:8080 ? The port issue is none of the APEX Listeners business when you don't use it in standalone mode...
              If you just don't get a result for http://<hostname>:8080/apex you could look into the application log in you GlassFish to get further information (like from the console in standalone mode).
              My first guess would be that you haven't confgured the APEX Listener you've deployed yet. Note that the GlassFish doesn't use the users temp directory for temp but has it's own. So you have to call listenerConfigure after the first deployment or configure a config.dir with an existing apex-config.xml. I'd recommend the latter strategie. You should read the Installation Guide's section about the configuration file and how to define its location in the web.xml or search the forum for this (common) request...

              -Udo
              • 4. Re: Cannot Deploy Listener. Neither stand alone nor with glass fish
                fatehcis-JavaNet
                Thanks for your thorough explanation....