Reputation: 15335
Actually the apache-tomcat 7 server running at The Eclipse.but in browser getting error "The requested resource is not available." .Any reasons Please..?
Upvotes: 10
Views: 152852
Reputation: 7626
You can run below commands.
./catalina.sh run
Note: Make sure the port 8080 is open. If not, kill the process that is using 8080 port using sudo kill -9 $(sudo lsof -t -i:8080)
Upvotes: 0
Reputation: 340
Sometimes another software can be holding this door and it can be the cause of this conflict, try change the door on the server.xml.
Upvotes: 1
Reputation: 21
1)Goto Server tab 2)Right on server -> general -> click on switch location. 3)Double click on the server -> under server location -> select tomcat installation. 4) restart the server.
Upvotes: 2
Reputation: 690
You may face two errors while testing tomcat server startup.
Fixes -
The reason for choosing this option is, When the default option is given as eclipse location, we will see 404 error as it changes Catalina parameters (sometimes). But if we change it to Tomcat location, it works fine.
Upvotes: 1
Reputation: 85
Many of us get this error after setting up the eclipse and server for first time. This solution is -
go to server tab
select the properties option of your respective server and expand it
in the properties window , select general tab -> click Switch Location -> click apply ->click ok.
This may work .
Upvotes: -1
Reputation: 1
Double click on the Tomcat Server under the Servers tab in Eclipse Doing that opens a window in the editor with the top heading being Overview opens (there are 2 tabs-Overview and Modules). In that change the options under Server Locations, and g
Upvotes: 0
Reputation: 3889
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.
Upvotes: 19
Reputation: 161
I had the same issue and for me, I tried changing the options in
Server Locations
and it worked.
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.
Upvotes: 16
Reputation: 9935
It will be proxy configuration of your browser.
In NetWork Setting, use no proxy
For Manual proxy configuration
add exception(No Proxy for in Firefox) like localhost:8080, localhost
.
Upvotes: 1
Reputation: 8467
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.
Upvotes: 10