Win a copy of Emmy in the Key of Code this week in the General Computing 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Configuring tomcat 6 with eclipse to serve servlets and jsp/html.

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

First of all, thank you very much for any assistance that you might be able to offer.

I am trying to setup Tomcat 6 to work with Eclipse (Build id: 20090621-0832). I am relatively new with eclipse but have used tomcat in the past with JBoss. I have installed the tomcat server within eclipse and have been able to configure it to handle a couple of servlets that I have developed.

What I cannot figure out is how to get it to make simple jsp and html files available via the web browser. I have tried putting simple files in various locations, but tomcat continues to respond with 404 errors.

The following is a summary of my basic directory structure:

C:\Program Files\eclipse\plugins\apache-tomcat-6.0.20\webapps\ROOT
C:\Program Files\eclipse\workspace\MyWebApp\WebContent

The following is my web.xml file:

<?xml version="1.0" encoding="UTF-8" ?>
<web-app xmlns:xsi="" xmlns="" xmlns:web="" xsi:schemaLocation="" id="WebApp_ID" version="2.5">
<description />
<description />

To access the servlets, I have been using http://localhost/MyWebApp/MyAppName/AppletBuilder or http://localhost/MyWebApp/MyAppName/XmlRpcManager, which appears to be working as expected. Where should I be putting the physical welcome files and what url should I use to access them? I was trying to use something like http://localhost/MyWebApp/index.jsp.

Any assistance would be HUGELY appreciated !!!

Thank you,
Popeye has his spinach. I have this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!