tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Torna Jr." <alto...@hotmail.com>
Subject Re: web.xml files and servlet mapping
Date Thu, 01 Jan 1970 00:00:00 GMT
<html><DIV>
<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;
<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Gabriel Marti" <MARTIGABRIEL@HOTMAIL.COM>
<DIV></DIV>&gt;Reply-To: tomcat-user@jakarta.apache.org 
<DIV></DIV>&gt;To: <TOMCAT-USER@JAKARTA.APACHE.ORG>
<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; 
<DIV></DIV>&gt;Hello, I was reading over the past answers to some servlet
mapping 
<DIV></DIV>&gt;questions, but i still cannot get my situation to work. I have
the following 
<DIV></DIV>&gt;setup: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;D:/tomcat/webapps/clan/WEB-INF/classes/com/gabadoo/bp/servlet

<DIV></DIV>&gt; /web.xml 
<DIV></DIV>&gt; 
<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; 
<DIV></DIV>&gt;And in the clan/WEB-INF/web.xml: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;<?xml version="1.0" encoding="ISO-8859-1"?> 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;<!DOCTYPE web-app
</DIV>&gt; PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
<DIV></DIV>&gt; "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;<WEB-APP> 
<DIV></DIV>&gt; <SERVLET>
<DIV></DIV>&gt; <SERVLET-NAME>
<DIV></DIV>&gt; attemp 
<DIV></DIV>&gt; </SERVLET-NAME>
<DIV></DIV>&gt; <SERVLET-CLASS>
<DIV></DIV>&gt; com.gabadoo.bp.servlet 
<DIV></DIV>&gt; </SERVLET-CLASS>
<DIV></DIV>&gt; </SERVLET>
<DIV></DIV>&gt; <SERVLET-MAPPING>
<DIV></DIV>&gt; <SERVLET-NAME>
<DIV></DIV>&gt; attemp 
<DIV></DIV>&gt; </SERVLET-NAME>
<DIV></DIV>&gt; <URL-PATTERN>
<DIV></DIV>&gt; /attemp 
<DIV></DIV>&gt; </URL-PATTERN>
<DIV></DIV>&gt; </SERVLET-MAPPING>
<DIV></DIV>&gt; 
<DIV></DIV>&gt;</WEB-APP> 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;the url:http://127.0.0.1:8080/clan/servlet/com.gabadoo.bp.servlet
wors fine 
<DIV></DIV>&gt;however the mapping to http://127.0.0.1:8080/clan/servlet/attemp
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>&gt; 
<DIV></DIV>&gt;Gabriel 
<DIV></DIV>&gt; 
<DIV></DIV><br clear=all><hr>Get your FREE download of MSN Explorer
at <a href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>

Mime
View raw message