This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

web application can't start my application  RSS feed

Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having a problem with tomcat standalone 4.1
it doe not seem to find my web application
it keeps giving me The requested resource (/App/reg) is not available.
http staus 404 expection what is responsible for this.
the tomcat installation is fine cause it shows the index.jsp file
when you go to the http://localhost:8080
i have a deployment descriptor(web.xml)
which the web application manager sees the description of the web.xml file.
i placed my web app on the webapps directory
that is %catalina_home%/webapps/myApp
is it cause i did not set a context path for my app cause the web Application manger gives this error-Message: FAIL - Application at context path /App could not
could you explain to me in a step by step procedure on how to set the context path for web applicaton.
please can i get a solution soon

p.s my application just has a servlet in the web-inf/classes dir
and a web.xml in the web-inf dir
thanks again
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WEB-INF should be all caps.

In server.xml, place this right after the examples context:

Create the following directories:

Inside WEB-INF, have a web.xml file that contains the following:

And finally, a single hello.jsp page under the /demo directory that contains:

By invoking http://localhost:8080/demo/hello.jsp do you get the right output?

That's all to confirm that Tomcat is happy with its configuration.

Otherwise, post more details, like your servlet mappings in web.xml, and how you are calling it in the browser. The exact error messages if any, that are relevant in catalina_log, stdout, stderr and localhost_log
This parrot is no more. It has ceased to be. Now it's a tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!