tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Torna Jr." <>
Subject Re: web.xml files and servlet mapping
Date Thu, 01 Jan 1970 00:00:00 GMT
<P>If the examples JSP sites are working, ensure that your JSP has a path defined for
your site like the others.&nbsp; Check the Server.xml.&nbsp; That is where most of
the general configuration for Tomcat is done.&nbsp; Once it is working there, change the
default root of Apache to that directory.&nbsp; You should see results then.&nbsp;
<DIV></DIV>&gt;From: "Gabriel Marti" <MARTIGABRIEL@HOTMAIL.COM>
<DIV></DIV>&gt;Subject: web.xml files and servlet mapping 
<DIV></DIV>&gt;Date: Sat, 30 Jun 2001 01:27:16 -0400 
<DIV></DIV>&gt;Hello, I was reading over the past answers to some servlet
<DIV></DIV>&gt;questions, but i still cannot get my situation to work. I have
the following 

<DIV></DIV>&gt; /web.xml 
<DIV></DIV>&gt;In the servlet.xml i have added the following: 
<DIV></DIV>&gt; <CONTEXT DIV < path="/clan">&gt; docBase="/webapps/clan"

<DIV></DIV>&gt; crossContext="false" 
<DIV></DIV>&gt; debug="5" 
<DIV></DIV>&gt; reloadable="true" &gt; 
<DIV></DIV>&gt; </CONTEXT>
<DIV></DIV>&gt;And in the clan/WEB-INF/web.xml: 
<DIV></DIV>&gt;<?xml version="1.0" encoding="ISO-8859-1"?> 
<DIV></DIV>&gt;<!DOCTYPE web-app
</DIV>&gt; PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
<DIV></DIV>&gt; ""&gt; 
<DIV></DIV>&gt; attemp 
<DIV></DIV>&gt; com.gabadoo.bp.servlet 
<DIV></DIV>&gt; </SERVLET>
<DIV></DIV>&gt; attemp 
<DIV></DIV>&gt; /attemp 
<DIV></DIV>&gt;the url:
wors fine 
<DIV></DIV>&gt;however the mapping to
is a no go. 
<DIV></DIV>&gt;I thought this would work however nothing so far. I attempted
to put the 
<DIV></DIV>&gt;tags in the main web.xml file however no difference.When i
load up tomcat 
<DIV></DIV>&gt;one of the lines displayed says reading the file .....web.xml,
but i dont 
<DIV></DIV>&gt;think it really is. Please help. thanks 
<DIV></DIV><br clear=all><hr>Get your FREE download of MSN Explorer
at <a href=""></a><br></p></html>

View raw message