Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat 7 is not running on browser(http://localhost:8080/ )

Actually the apache-tomcat 7 server running at The Eclipse.but in browser getting error "The requested resource is not available." .Any reasons Please..?

like image 248
Kumar KL Avatar asked Oct 18 '12 09:10

Kumar KL


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 access Tomcat on localhost?

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.

How do I access Tomcat in my browser?

Install Tomcat Have you installed Tomcat, you can launch Monitor Tomcat tool, and start the web service, Then open a web browser, and input in the address bar the URL http://localhost:8080, then you can view Tomcat documentation or start using Tomcat.

Why isn't my Tomcat server is not starting?

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.


3 Answers

When you start tomcat independently and type http://localhost:8080/, tomcat show its default page (tomcat has its default page at TOMCAT_ROOT_DIRECTORY\webapps\ROOT\index.jsp).

When you start tomcat from eclipse, eclipse doesn't have any default page for url http://localhost:8080/ so it show error message. This doesn't mean that tomcat7 is not running.when you put your project specific url like http://localhost:8080/PROJECT_NAME_YOU_HAVE_CREATE_USING_ECLIPSE will display the default page of your web project.

like image 110
kundan bora Avatar answered Oct 17 '22 03:10

kundan bora


I had the same issue and for me, I tried changing the options in

  • Server Locations

    and it worked.

    1. Double click on the Tomcat Server under the Servers tab in Eclipse
    2. Doing that opens a window in the editor with the top heading being Overview opens (there are 2 tabs-Overview and Modules).
    3. In that change the options under Server Locations, and give Ctrl+S (Save configurations) For me, Use Tomcat installation (takes control of Tomcat installation) worked
    4. Try starting the server and checking if localhost opens in the browser. Else select a different option.

I do not understand why that issue came up. I did search but did not find a relevant answer(Maybe I didn't use the right keywords). If someone knows why that worked, kindly share.

Thanks.

like image 23
Josiah Avatar answered Oct 17 '22 02:10

Josiah


There could be a number of reasons, have it as a checklist and go through it

Is your server running on 8080?I mean that is the default port but it could be configured to run on other.

Also there is a possibility that the default application is removed/uninstalled that is why it is giving "the requested resource is not available"

Also it could be a proxy issue. make sure you are not using any proxy in your browser.

like image 31
Mukul Goel Avatar answered Oct 17 '22 04:10

Mukul Goel