Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat starts but home page cannot open with url http://localhost:8080

Tags:

java

tomcat

I am a newbie in Java, and I am trying to develop a web application. I have Windows 7 32 bit. I have installed Java 7 and set the path and classpath as well. After that I installed Tomcat 7.

When I try to open tomcat home page using URL localhost:8080, it does not open and Tomcat stops automatically.

Please help me.

like image 300
Aniket Joshi Avatar asked Jan 09 '14 13:01

Aniket Joshi


People also ask

Why local host 8080 is not working?

Description. The server might be running at a different port number than expected, either because it was intentionally installed there, or because another server was already running on the default port when the server was installed.

How do I open Tomcat homepage in browser?

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.

Why is Tomcat folder not opening?

Finding cause. Most common issue with Tomcat note starting is that Java is not configured properly, user trying to start Tomcat does not have permissions to do so, or another program is using port 8080 on that server.


2 Answers

Make sure no other application using port 8080 before starting tomcat. If that's not the problem please paste tomcat log.

If you want to change tomcat's default port, go to tomcat folder and open conf folder, in which you can see server.xml. In that file you can see something like <Connector port= . Change the port value and start tomcat.

like image 162
Fathah Rehman P Avatar answered Oct 05 '22 10:10

Fathah Rehman P


If you started tomcat through eclipse, It can be solved in different ways too.

Method 1:

  1. Right click on server --> Properties
  2. click on Switch location and apply.

enter image description here

enter image description here Method2:

  1. Double click in the server in eclipse.
  2. Change Server location to Use tomcat installation(takes control of tomcat installation).
like image 40
robinrjoe Avatar answered Oct 05 '22 11:10

robinrjoe