File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Having problem running tomcat application (WAR) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Having problem running tomcat application (WAR)" Watch "Having problem running tomcat application (WAR)" New topic

Having problem running tomcat application (WAR)

Ish Fad

Joined: Aug 09, 2011
Posts: 6

I have installed tomcat 7 on laptop. I have tested tomcat and it is running fine.
I have created simple war file with just one html page.
I have added this war file to webapps folder of the tomcat.
When I try to open this page from the browser, I am getting following error

message /if2.html

description The requested resource (/if2.html) is not available.

Please could you help me.

Many thanks
Chris Beckey
Ranch Hand

Joined: Jun 09, 2006
Posts: 116

You may be missing the application context from the url, for example instead of
where "application-name" is replaced wit the name of your application (try the WAR file name if you don't know the application name).

If that isn't int, post the complete URL you are trying and the name of the application and the location of the html page within the WAR.
I agree. Here's the link:
subject: Having problem running tomcat application (WAR)
It's not a secret anymore!