user1176926
user1176926

Reputation: 251

Tomcat 7 The requested resource is not available

I have written a Java servlet and run it through local Tomcat 7, but when I copied the war file that I have written to another computer and copied it to the webapps folder in the tomcat directory, but I keep getting the "requested resource is not available" message, while in my computer everything works fine, what could be the problem?

Upvotes: 4

Views: 38174

Answers (2)

user1801279
user1801279

Reputation: 1783

You may have not mapped the URL correctly . Tomcat does not know what to hit with the current URL

Upvotes: 0

Rajesh
Rajesh

Reputation: 3014

Check in the console are you getting any error? is server started properly? Have you set JAVA_HOME in environmental variable? To check if the server is started properly or not type following url in the browser:

http://localhost:8080/

of the computer where you have deployed the war. replace 8080 with appropriate port number if you are not starting the server at port 8080. If you are able to see tomcat page then the server is started properly.

if you are getting no error on console then everything seems correct and you are typing an incorrect url in the browser. I think you must be getting exception on the console as you said war was working on the previous system . Make sure you set JAVA_HOME to appropriate jdk or jre version(ex 1.6) which is used to develop the war.

Upvotes: 2

Related Questions