• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Having problem running tomcat application (WAR)

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 116
Eclipse IDE Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic