When you install oracle apex on your operating XDB account automatically created and it's default port is 8080 and it's offline server is localhost or ip 127.0.0.1. To access 
localhost:8080 
it needs a username and password. May be that's your problem. 

Actually by default XDB account is locked. 

To solve this problem you should have do the following work--- 
go to RUN and open CMD prompt and write the following-- 

sqlplus sys/system@orcl as sysdba; 

ALTER USER XDB ACCOUNT UNLOCK; 

ALTER USER XDB IDENTIFIED BY xdb; 


Then again go to your browser and type 
localhost:8080 

username: XDB 
password: xdb 

That's it. I think to do this your problem will solve.
Back to top