7 Replies Latest reply on Nov 12, 2010 10:48 AM by Udo

    Blank page for http://localhost:8080/listenerConfigure

    K Cannell
      I have an odd thing happening that I cannot figure out -
      When I deploy using the embedded web container, I am getting a totally blank page. No error, just a blank page. I can see in Firebug that the request went out, but there is no response. Firewall is OFF, same result.
      I have rebooted, totally cleared the .apex directory, same thing.
      A day earlier, it worked.
      Now. blank page.
      Any direction on what to look at/for is appreciated,
      Thanks, Karen
        • 1. Re: Blank page for http://localhost:8080/listenerConfigure
          Udo
          Hello Karen,

          do you see any output in your console log output for those calls or any errors during startup?
          Have you reconfigured the Listener after deleting the .apex-directory?

          -Udo
          • 2. Re: Blank page for http://localhost:8080/listenerConfigure
            K Cannell
            Hello Udo,

            All looks OK that I can see - EXCEPT one of the INFO lines say "Not a valid WebApp" (I just noticed that):

            C:\oracle\apex_listener>java -jar apex.war
            INFO: Starting: C:\oracle\apex_listener\apex.war
            See: 'java -jar apex.war --help' for full range of configuration options
            INFO: Extracting to: C:\Users\Karen Cannell\.apex\8080
            Enter the path to the directory containing the APEX static resources
            Example: /Users/myuser/apex/images
            or press Enter to skip: C:\oracle\apex_4.0.1_en\apex\images
            INFO: Using classpath: file:/C:/Users/Karen%20Cannell/.apex/8080/apex/____embedd
            ed/start.jar:file:/C:/Users/Karen%20Cannell/.apex/8080/apex/WEB-INF/lib/apex.jar
            :file:/C:/Users/Karen%20Cannell/.apex/8080/apex/WEB-INF/lib/commons-fileupload-1
            .2.1.jar:file:/C:/Users/Karen%20Cannell/.apex/8080/apex/WEB-INF/lib/ojdbc6.jar:f
            ile:/C:/Users/Karen%20Cannell/.apex/8080/apex/WEB-INF/lib/ojmisc.jar:file:/C:/Us
            ers/Karen%20Cannell/.apex/8080/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/C:/Us
            ers/Karen%20Cannell/.apex/8080/apex/WEB-INF/lib/ucp.jar:
            INFO: Starting Embedded Web Container in: C:\Users\Karen Cannell\.apex\8080
            Enter a username for the APEX Listener Administrator [adminlistener]:
            Enter a password for adminlistener:
            Confirm password for adminlistener:
            Enter a username for the APEX Listener Manager [managerlistener]:
            Enter a password for managerlistener:
            Confirm password for managerlistener:
            Nov 9, 2010 5:51:37 PM ____bootstrap.Deployer deploy
            INFO: Will deploy application path=C:\Users\Karen Cannell\.apex\8080\apex\WEB-IN
            F\web.xml
            Nov 9, 2010 5:51:38 PM ____bootstrap.Deployer deploy
            INFO: Not a valid WebApp, will be ignored : path=C:\Users\Karen Cannell\.apex\80
            *80\apex\WEB-INF\web.xml*
            Nov 9, 2010 5:51:38 PM ____bootstrap.Deployer deploy
            INFO: deployed application path=C:\Users\Karen Cannell\.apex\8080\apex\WEB-INF\w
            eb.xml
            Nov 9, 2010 5:51:39 PM com.sun.grizzly.Controller logVersion
            INFO: Starting Grizzly Framework 1.9.18-o - Tue Nov 09 17:51:39 BOT 2010
            INFO: Please complete configuration at: http://localhost:8080/apex/listenerConfi
            gure



            Nothing in java console - which makes sense, it looks like nothign gets executed.

            Thanks - Karen

            Edited by: K Cannell on Nov 9, 2010 5:10 PM
            • 3. Re: Blank page for http://localhost:8080/listenerConfigure
              Udo
              Hello Karen,

              seems like the application never got deployed due to an error in the web.xml.
              Did you modify the web.xml or any other component in the war file, e.g. to configure the location of the config file?
              If not, could you check if your war file has still the same timestamp it had when you downloaded/unpacked it?
              The Listener itself doesn't modify anything there, and as you deleted the whole .apex-directory, any temporary change would have been lost with the next start of the Listener.

              -Udo
              • 4. Re: Blank page for http://localhost:8080/listenerConfigure
                K Cannell
                Hello Udo,

                I did not touch anything in the .apex directory ...
                This is an immediate thing - the error occurs on the way to the listenerConfig page.
                I have not had a chance to touch hanyhtign yet.
                That is why this is so odd.
                One day (the first day), it worked.

                All subsequent days, it does not.

                One thought - does it not like the space in the "Karen Cannell" part of the path? In other locations it reads as Karen%20Cannell. Though again, why would it all have generated OK the first time, and now is not?
                Just a thought.

                However, it I were to edit the web.xml now, do you see anything that might help?

                <?xml version="1.0" encoding="UTF-8"?>
                <web-app id="WebApp_ID" version="2.4"
                     xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                     <display-name>ApexMod</display-name>
                     <servlet>
                          <description>
                          </description>
                          <display-name>ModApex</display-name>
                          <servlet-name>ModApex</servlet-name>
                          <servlet-class>oracle.dbtools.apex.ModApex</servlet-class>
                <!--           
                               <init-param>
                               <param-name>config.dir</param-name>
                               <param-value>${java.io.tmpdir}/APEX</param-value>
                          </init-param>
                          <init-param>
                          <param-name>cache.dir</param-name>
                          <param-value>${java.io.tmpdir}/APEX/cache</param-value>
                          </init-param>
                -->
                     </servlet>

                     <servlet-mapping>
                          <servlet-name>ModApex</servlet-name>
                          <url-pattern>/ModApex</url-pattern>
                     </servlet-mapping>
                          
                     <servlet-mapping>
                          <servlet-name>ModApex</servlet-name>
                          <url-pattern>/</url-pattern>
                     </servlet-mapping>


                <!-- Configuration -->
                     <servlet>
                          <description>
                          </description>
                          <display-name>Config</display-name>
                          <servlet-name>Config</servlet-name>
                          <servlet-class>oracle.dbtools.apex.config.Config</servlet-class>
                     </servlet>

                     <servlet-mapping>
                          <servlet-name>Config</servlet-name>
                          <url-pattern>/Config</url-pattern>
                     </servlet-mapping>


                     <!-- Admin -->
                     <servlet>
                          <description>
                          </description>
                          <display-name>Admin</display-name>
                          <servlet-name>Admin</servlet-name>
                          <servlet-class>oracle.dbtools.apex.admin.Admin</servlet-class>
                     </servlet>

                     <servlet-mapping>
                          <servlet-name>Admin</servlet-name>
                          <url-pattern>/Admin</url-pattern>
                     </servlet-mapping>
                     
                     <servlet-mapping>
                          <servlet-name>Admin</servlet-name>
                          <url-pattern>/listenerAdmin</url-pattern>
                     </servlet-mapping>

                     <servlet-mapping>
                          <servlet-name>Admin</servlet-name>
                          <url-pattern>/listenerConfigure</url-pattern>
                     </servlet-mapping>
                     
                     <servlet-mapping>
                          <servlet-name>Admin</servlet-name>
                          <url-pattern>/listenerStatus</url-pattern>
                     </servlet-mapping>
                     
                     <servlet-mapping>
                          <servlet-name>Admin</servlet-name>
                          <url-pattern>/scripts/*</url-pattern>
                     </servlet-mapping>

                     <servlet>
                          <description>
                          </description>
                          <display-name>Forbidden</display-name>
                          <servlet-name>Forbidden</servlet-name>
                          <servlet-class>oracle.dbtools.apex.Forbidden</servlet-class>
                     </servlet>

                     <servlet-mapping>
                          <servlet-name>Forbidden</servlet-name>
                          <url-pattern>/____embedded/*</url-pattern>
                     </servlet-mapping>

                     <context-param>
                     <param-name>version</param-name>
                     <param-value>1.0.2.238.15.24</param-value>
                </context-param>

                     <welcome-file-list>
                          <welcome-file>index.html</welcome-file>
                          <welcome-file>index.htm</welcome-file>
                          <welcome-file>index.jsp</welcome-file>
                          <welcome-file>default.html</welcome-file>
                          <welcome-file>default.htm</welcome-file>
                          <welcome-file>default.jsp</welcome-file>
                     </welcome-file-list>
                     
                     <security-constraint>
                          <web-resource-collection>
                               <web-resource-name>APEX Listener Administration</web-resource-name>
                               <url-pattern>/listenerAdmin</url-pattern>
                               <http-method>GET</http-method>
                               <http-method>POST</http-method>                
                          </web-resource-collection>
                          <auth-constraint>
                               <!-- NOTE: This role is not present in the default users file -->
                               <role-name>Admin</role-name>
                          </auth-constraint>
                     </security-constraint>

                     <security-constraint>
                          <web-resource-collection>
                               <web-resource-name>APEX Listener Status</web-resource-name>
                               <url-pattern>/listenerStatus</url-pattern>
                               <http-method>GET</http-method>
                          </web-resource-collection>
                          <auth-constraint>
                               <!-- NOTE: This role is not present in the default users file -->
                               <role-name>Manager</role-name>
                          </auth-constraint>
                     </security-constraint>
                     
                     <login-config>
                          <auth-method>BASIC</auth-method>
                          <realm-name>APEX Listener Manager</realm-name>
                     </login-config>
                     
                     <security-role>
                          <description>The role that is required to log in to the APEX Listener Administration</description>
                          <role-name>Admin</role-name>
                     </security-role>
                     
                     <security-role>
                          <description>The role that is required to log in to the APEX Listener Status</description>
                          <role-name>Manager</role-name>
                     </security-role>
                     
                </web-app>
                Thanks - Karen
                • 5. Re: Blank page for http://localhost:8080/listenerConfigure
                  Udo
                  Hello Karen,

                  your web.xml looks exactly like the original one.
                  I had a guess concerning the blank at first too, but in my test case, the tempdir is in "Dokumente und Einstellungen" (Documents and Settings), which also contains blanks and everything runs fine.
                  My startup output looks like this:
                  java -jar apex.war
                  INFO: Starting: D:\Downloads\apex_listener.1.0.2.238.15.24\apex.war
                   See: 'java -jar apex.war --help' for full range of configuration options
                  INFO: Extracting to: C:\Dokumente und Einstellungen\Udo\.apex\8080
                  INFO: Using classpath: file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/8080/apex/____embedded/start.jar:file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/800/apex/WEB-INF/lib/apex.jar:file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/8080/apex/WEB-INF/lib/commons-fileupload-1.2.1.jar:file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/8080/apex/WEB-INF/lib/ojdbc6.jar:file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/8080/apex/WEB-INF/lib/ojmisc.jar:file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/8080/apex/WEB-INF/lib/poi-3.6-20091214.jar:file:/C:/Dokumente%20und%20Einstellungen/Udo/.apex/8080/apex/WEB-INF/lib/ucp.jar:
                  INFO: Starting Embedded Web Container in: C:\Dokumente und Einstellungen\Udo\.apex\8080
                  10.11.2010 16:55:21 ____bootstrap.Deployer deploy
                  INFO: Will deploy application path=C:\Dokumente und Einstellungen\Udo\.apex\8080\apex\WEB-INF\web.xml
                  10.11.2010 16:55:22 ____bootstrap.Deployer deploy
                  INFO: deployed application path=C:\Dokumente und Einstellungen\Udo\.apex\8080\apex\WEB-INF\web.xml
                  10.11.2010 16:55:22 com.sun.grizzly.Controller logVersion
                  INFO: Starting Grizzly Framework 1.9.18-o - Wed Nov 10 16:55:22 CET 2010
                  INFO: http://localhost:8080/apex started.
                  This will be followed by
                  Using Config file:C:\DOKUME~1\Udo\LOKALE~1\Temp\\apex\apex-config.xml
                  -- listing properties --
                  PropertyCheckInterval=60
                  ValidateConnection=true
                  MinLimit=1
                  MaxLimit=10
                  InitialLimit=3
                  AbandonedConnectionTimeout=900
                  MaxStatementsLimit=10
                  InactivityTimeout=1800
                  MaxConnectionReuseCount=50000
                  when I start using the Listener, which is pretty much the same when running the Listener on my Tomcat.
                  There are only a few differences I can see:
                  1. The error you get during deployment.
                  2. The requests to enter the path to static resources and usernames/passwords for the administrative users.

                  Do the requests come up again if you restart the listener without deleting the .apex-directory in your home?
                  If so, there's a probably problem concerning the write permissions on that directory. Could there be any quota limit for your user profile that prohibits further data to be put there?
                  You could try to define an alternative path for the runtime and a fix path for images, e.g.
                  java -Dapex.home=C:\oracle\apex_listener_runtime -Dapex.images=C:\oracle\apex_4.0.1_en\apex\images -jar apex.war
                  I still have no other guess than this is some issue with your home directory... So I hope relocating the runtime helps.

                  -Udo
                  • 6. Re: Blank page for http://localhost:8080/listenerConfigure
                    K Cannell
                    Hello Udo,

                    When I start again I am directed directly to the http://localhost:8080/apex URL,
                    Which of course cannot work c/o I have not yet done theconfuguratiin.

                    I am pouring through your info just posted and will let you know what I find.
                    Nice to know that the web.XML is good.

                    Makes me wonder what is really wrong that causes that INFO statement to kick out.
                    Still searching,
                    Karen
                    • 7. Re: Blank page for http://localhost:8080/listenerConfigure
                      Udo
                      Hello Karen,

                      did you get any further yet?
                      In addition to relocated apex.home, you could also try to relocate the java.io.tmpdir in order to make sure, that there's no issue with that directory as well.
                      The complete call for the runtime would then look like this:
                      java -Dapex.home=C:\oracle\apex_listener_runtime -Dapex.images=C:\oracle\apex_4.0.1_en\apex\images -Djava.io.tmpdir=<othertmpdir> -jar apex.war
                      where you obviously have to change the value for your new tmpdir.

                      -Udo

                      Edited by: Udo on 12.11.2010 11:47