• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Sam Garvey
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="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 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,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!