Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue with Running Apache Tomcat -XDB

This is the error I get when I try to run tomcat server "the server localhost:8080 requires a username and a password. the server says: XD". I hav researched and found that it is due to Oracle. Since Oracle has hijacked that portnumber. So I changed my oracle portnumber from 8080 to 3010. But i still get the same error! Installing tomcat again also has not solved the problem!

like image 552
Mounica Reddy Avatar asked Oct 05 '13 20:10

Mounica Reddy


People also ask

Why my Apache Tomcat is not working?

Apache Tomcat requires Java: If you have multiple Java versions installed on your system, we recommend that you uninstall earlier Java versions and keep only the latest Java.

What is an Apache Tomcat error?

Out Of Memory Errors, or OOMEs, are one of the most common problems faced by Apache Tomcat users. Generally, these errors occur during development, but can even occur on production servers that are experiencing an unusually high spike of traffic.

How do you check if your Tomcat is working?

Use a browser to check whether Tomcat is running on URL http://localhost:8080 , where 8080 is the Tomcat port specified in conf/server. xml. If Tomcat is running properly and you specified the correct port, the browser displays the Tomcat homepage.


1 Answers

Oracle XDB services uses the port number 8080. So I suggest you to change the port of tomcat by Editing server.xml. for that go into the {tomcat-installation-dir}/conf and edit following line in server.xml.

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

Just change the Connector port to 8081(or something else other than 8080) and restart tomcat. It should work then.

like image 75
gaurav aggarwal Avatar answered Oct 26 '22 13:10

gaurav aggarwal