6 Replies Latest reply on Apr 7, 2011 7:19 PM by Udo

    no images when using Embedded Web Container

    Adamc-Oracle
      followed the instructions ..

      http://rangers.au.oracle.com:8081/i/oracle.gif shows the Oracle gif ok but http://rangers.au.oracle.com:8081/apex/f?p=4550:1 has nothing.

      Same APEX install is working fine for the PL/SQL Gateway http://rangers.au.oracle.com:8080/apex/f?p=4550:1

      used java -Dapex.port=8081 -Dapex.images=/u01/app/oracle/product/11.2.0/dbhome_1/apex/images/ -jar apex.war to start the listener

      I've installed jdk-6u24. how do I tell if the machine satisfies the 'Java Servlet Specification 2.3 or higher' requirement .. if it doesn't what do I need to do to get that fixed? .. are there any ENV settings required?
        • 1. Re: no images when using Embedded Web Container
          Udo
          Hello Adam,

          the required version of the Java Servlet Specification concerns the implementation within the J2EE Container you use. Since you chose the embedded Container that ships with the APEX Listener, this requirement is (obviously) fulfilled.
          If the oracle.gif is served correctly, you probably have an error in your APEX Listener configuration. Are you able to run http://rangers.au.oracle.com:8081/apex/listenerConfigure or if you've already done that, are you able to grab a look into the error log provided in +/apex/listenerAdmin+ below the "Status" tab? Or do you see any stack trace or error message in the console output of the Listener?

          -Udo
          • 2. Re: no images when using Embedded Web Container
            Adamc-Oracle
            Hi .. the only error msg I can find is HTTP Status Code: 404 Requested url http://rangers.au.oracle.com:8081/apex/i/apex_version.txt is not allowed. which I got when I first tried to view a file in the images directory .. I created that txt file .. obviously something wrong with that as the .gif files in the same directory displayed fine when I use the http://rangers.au.oracle.com:8081/i/vertical_bar.gif method ...

            I checked the output being generated in nohup.out .. nothing in there that indicates a problem with images ..

            are there any other log files?

            btw, this is the version 1.0 I'm trying to get going
            • 3. Re: no images when using Embedded Web Container
              Udo
              Does the nohup.out hint on any other error, any repeating message?
              The Listener really should work if you actually followed the instructions of the APEX Listener Guide and the APEX Installation Guide (concerning installations with APEX Listener: http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/otn_install.htm#BABJJAGF ). If everything is setup as described in these documents, the only reason I could currently think of would be a network issue, e.g. the Listener's host does not allow connections to the database host and port you configured.

              -Udo
              • 4. Re: no images when using Embedded Web Container
                Adamc-Oracle
                ok .. got it going ..

                looks like the images directory I originally referenced was not up to date. It was sitting under the DB11GR2 home .. I guess its the one that comes with that DB version. I had been using the pl/sql gateway and so the images had been uploaded into the XML DB repository when I installed 4.0.1

                I deleted the DB11GR2 images directory and copied the new images directory from the 4.0.2 patch ... it all worked after that.

                So the interesting thing is that I had created an images directory where the APEX_Listener was installed and when I started the listener I pointed to that directory. The Listener still looked at the DB11GR2 image directory .. which was ok when I copied the images over to it .. here are the two startup commands I used .. one worked, the other failed .. even though they both have the same image files ..

                java -Dapex.port=8081 -Dapex.images=/u01/app/oracle/product/apex_lsnr/images -Dapex.erase=true -jar apex.war

                rm -rf /u01/app/oracle/product/11.2.0/dbhome_1/apex/images
                cp -r /u01/app/oracle/product/apex_lsnr/images /u01/app/oracle/product/11.2.0/dbhome_1/apex

                the I refreshed the browser and it worked ..


                (could it be ignoring the -Dapex.images or perhaps is the images directory location stored somewhere and not erased .. clutching at straws here to explain it .. )
                • 5. Re: no images when using Embedded Web Container
                  Colm Divilly-Oracle
                  The Embedded Container maintains a property file named apex.properties in the config folder that records the location of the images file (so that it doesn't prompt you for this location repeatedly), remove this file if you change the location of your images folder.
                  • 6. Re: no images when using Embedded Web Container
                    Udo
                    AdamC wrote:
                    (could it be ignoring the -Dapex.images or perhaps is the images directory location stored somewhere and not erased .. clutching at straws here to explain it .. )
                    I had to setup a new environment for testing the new XE 11.2 beta with the current APEX Listener release and made a typo in the parameter for apex.images at the first start of the Listener. Unfortunately, the correction in the command line didn't change anything in the result - the images weren't displayed. Only after deleting the properties file (or editing the value in that file), the Listener referenced the corrected location.

                    @Colm: Is that the intended behaviour or a bug? I expected that the command line argument would overrule any previous setup, but apparently that's not the case. It would be desirable to have some console output telling me that my parameter had been ignored and the previous setting from apex.properties is effective.

                    -Udo