MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
685 stars 288 forks source link

APEX not working #55

Closed anilsamuel closed 7 years ago

anilsamuel commented 7 years ago

Accessing apex using http://localhost:8080/apex redirects to http://localhost:8080/apex/f?p=4550:1:12290676896677 as expected, but results a blank web page.

Most urls (when accessed remotely using http://10.21.8.28:8080/apex) below are resulting HTTP 404 Not found. I suspect apache / HTTP handler config issue. Checking the filesystem in the instance, I see these resources do exist in /u01/app/oracle/product/12.1.0/xe/apex/images/; probably /u01/app/oracle/product/12.1.0/xe/apex/images/ mapping to /i is missing.

f:19 GET http://10.21.8.28:8080/i/css/apex_builder.min.css?v=4.2.5.00.08 f:32 GET http://10.21.8.28:8080/i/libraries/apex/minified/legacy.min.js?v=4.2.5.00.08 f:18 GET http://10.21.8.28:8080/i/libraries/jquery-ui/1.8.22/themes/base/jquery-ui.min.css f:16 GET http://10.21.8.28:8080/i/css/apex.min.css?v=4.2.5.00.08 f:38 GET http://10.21.8.28:8080/i/libraries/apex/minified/builder.min.js?v=4.2.5.00.08 f:31 GET http://10.21.8.28:8080/i/libraries/apex/minified/desktop_all.min.js?v=4.2.5.00.08 f?p=4550:1:12090530455999:37 GET http://10.21.8.28:8080/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.5.00.08 f?p=4550:1:12090530455999:20 GET http://10.21.8.28:8080/i/css/apex_ui.min.css?v=4.2.5.00.08 f?p=4550:1:12090530455999:31 GET http://10.21.8.28:8080/i/libraries/apex/minified/desktop_all.min.js?v=4.2.5.00.08 f?p=4550:1:12090530455999:32 GET http://10.21.8.28:8080/i/libraries/apex/minified/legacy.min.js?v=4.2.5.00.08 f?p=4550:1:12090530455999:35 Uncaught ReferenceError: apex is not defined at f?p=4550:1:12090530455999:35 (anonymous) @ f?p=4550:1:12090530455999:35 f?p=4550:1:12090530455999:52 GET http://10.21.8.28:8080/i/apex_ui/apexlogo.png 404 (Not found) f?p=4550:1:12090530455999:64 GET http://10.21.8.28:8080/i/apex/builder/apex-db-apps.png 404 (Not found) f?p=4550:1:12090530455999:37 GET http://10.21.8.28:8080/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.5.00.08 f?p=4550:1:12090530455999:77 GET http://10.21.8.28:8080/i/f_spacer.gif 404 (Not found) f?p=4550:1:12090530455999:38 GET http://10.21.8.28:8080/i/libraries/apex/minified/builder.min.js?v=4.2.5.00.08 f?p=4550:1:12090530455999:110 Uncaught ReferenceError: apex is not defined at f?p=4550:1:12090530455999:110 (anonymous) @ f?p=4550:1:12090530455999:110 apexlogo.png:1 GET http://10.21.8.28:8080/i/apex_ui/apexlogo.png 404 (Not found) f_spacer.gif:1 GET http://10.21.8.28:8080/i/f_spacer.gif 404 (Not found) apex-db-apps.png:1 GET http://10.21.8.28:8080/i/apex/builder/apex-db-apps.png 404 (Not found)

ChaosEngine commented 7 years ago

Did you run this procedure https://github.com/MaksymBilenko/docker-oracle-apex with linked DB container?

MaksymBilenko commented 7 years ago

There is should be old version of apex included by default.

anilsamuel commented 7 years ago

Thanks for that.

I just tried running it and it finished with following error

/entrypoint.sh: line 45: cd: /u01/app/oracle/apex: No such file or directory Setting up EPG for Apex by running: @apex_epg_config SP2-0310: unable to open file "apex_epg_config.sql" Turning on DBMS_XDB HTTP port

PL/SQL procedure successfully completed.

On Fri, Jul 14, 2017 at 4:59 PM, Chaos notifications@github.com wrote:

Did you run this procedure https://github.com/MaksymBilenko/docker-oracle- apex with linked DB container?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MaksymBilenko/docker-oracle-12c/issues/55#issuecomment-315286584, or mute the thread https://github.com/notifications/unsubscribe-auth/ANieH9JYlqiO_9kQSaWFNTV20ep5ClvSks5sNxHsgaJpZM4OXoDK .

-- "The part of me that pains the most also gets me out of bed, w/out your hope there would be nothing left…" - Late Kayla Mueller "Play your role in life with such passion, that even after the curtains come down, the applause doesn't stop." - Late Colonel Munindra Nath Rai

MaksymBilenko commented 7 years ago

@anilsamuel That's very odd.

Have you tried to reinit database with docker run -itd -p 1521:1521 -p 8080:8080 -v my_oradata:/u01/app/oracle sath89/oracle-12c

Keep my_oradata without path to store oracle data at docker VM.

anilsamuel commented 7 years ago

Apex seemed to work fine though that error occurred

On Jul 17, 2017 7:04 PM, "Maksym Bilenko" notifications@github.com wrote:

@anilsamuel https://github.com/anilsamuel That's very odd.

Have you tried to reinit database with docker run -itd -p 1521:1521 -p 8080:8080 -v my_oradata:/u01/app/oracle sath89/oracle-12c

Keep my_oradata without path to store oracle data at docker VM.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MaksymBilenko/docker-oracle-12c/issues/55#issuecomment-315701724, or mute the thread https://github.com/notifications/unsubscribe-auth/ANieH7hz6qMi8lu3LEdHCgCAHSNbS5fKks5sOyOZgaJpZM4OXoDK .