Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server http:/localhost:8080 requires a user name and a password. The server says: XDB

Tags:

I am trying to access localhost:8080 but it is showing me I need to enter user name and pass word. I remember messing up with the server some 4 months ago while I was trying to develop a web application and hosting my domain name on my pc, Unfortunately I become unsuccessful. While working with servlets I was tring some security features and till some time i did not see and of these pop up windows asking for authentication.

I tried to enter the password that I was playing with but non of those are working. Is there anyway i could get out of this problem? enter image description here

like image 213
Tesfa Zelalem Avatar asked Oct 06 '15 02:10

Tesfa Zelalem


People also ask

How do I fix localhost 8080?

You need to access your app with http in the URL not https when developing locally. You may have your web browser set to automatically try to upgrade the connection from http to https.

What is the password for localhost 8080?

After restarting Tomcat, you should be able to access the Manager app (http://localhost:8080/manager/html) using username = admin and password = admin.

What does http localhost 8080 mean?

http://localhost:8080. So if in a browser, if http://localhost:8080 is entered, it simply means to server web-pages from local web-server which is listening for web-requests on 8080 port. The machine might not be connected to internet at all and still web-pages can be rendered in browser from local hard-drive.


2 Answers

This is http authentication. You can find username and password inside users.xml WEB-INF directory if any. otherwise you have to edit or remove security-constraint element from web.xml file

UPDATE Sorry, I haven't noticed XDB. check if Oracle and tomcat using same port. Update anyone of them

like image 53
haseeb Avatar answered Sep 28 '22 06:09

haseeb


Some other application(like oracle) is using the same port number. So you should change the tomcat port number in apachetomcat/conf/server.xml

Privious--->

<Connector port="8080" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="8443" /> 

Updated ---->

<Connector port="8088" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="8443" /> 
like image 42
Ram Thota Avatar answered Sep 28 '22 04:09

Ram Thota