aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Having problem running tomcat application (WAR)" Watch "Having problem running tomcat application (WAR)" New topic
Author

Having problem running tomcat application (WAR)

Ish Fad
Greenhorn

Joined: Aug 09, 2011
Posts: 4
Hi

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
http://127.0.0.1/if2.html
try:
http://127.0.0.1/application-name/if2.html
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: http://aspose.com/file-tools
 
subject: Having problem running tomcat application (WAR)