I'm trying to configure Oracle Apex 5 and ORDS to work with Tomcat. I managed to complete all steps as per the Oracle docs instruction, however when I try to access ORDS using http://localhost:8080/ords/
it gives me the error:
404 Not Found
The request could not be mapped to any database. Check the request URL is correct, and that URL to database mappings have been correctly configured
Please support, standalone is working.
Oracle: 11g
OS: Linux
Tomcat: 7 (running)
I solved my problem by performing the following steps when I found that the ORDS suddenly stops working and encounter 404 error on the login page. Hope it might help!
When you have 404, it could happen to be that there's a problem with the user password expiration.
Check if you have any user that’s expired/lock:
SELECT username, account_status, created, lock_date, expiry_date FROM dba_users WHERE account_status != 'OPEN';
Then perform a bunch of “alter user xxx identified as xxxx account unlock”.
After you have open every necessary user account, perform the following in your console as administrator:
Java -jar ords.war setup
Net stop tomcat8
Net start tomcat8