tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Tomcat 4.1.24/Win2K - Servlet not found.
Date Wed, 25 Jun 2003 16:47:04 GMT

Except that using the Invoker is disabled for a reason and should be 
avoided if possible.

John

On Wed, 25 Jun 2003 11:44:38 -0500, Mike Curwen <gb_dev@gb-im.com> wrote:

> Look in CATALINA_HOME/conf/web.xml.   This is a large file with a large
> amount of comments.
> You should find a servlet-mapping tag that has the pattern /servlet/*
> and you'll find it commented out.  This is the 'invoker servlet' that
> every beginner dreads, because there are a LOT of books / tutorials out
> there that assume it is enabled, but ever since tomcat 4.1.12 it has
> been disabled by default.
> Just remove the comments, and you should be alright.
>
>
>> -----Original Message-----
>> From: Rohit Bapat [mailto:rohitb@eden.rutgers.edu] Sent: Wednesday, June 
>> 25, 2003 11:37 AM
>> To: tomcat-user@jakarta.apache.org
>> Subject: Tomcat 4.1.24/Win2K - Servlet not found.
>>
>>
>> Hello,
>> I'm a Tomcat beginner, and I'm having the following problem -  The 
>> browser can't locate the servlet under URL /servlet.
>>
>> I read some recommended solutions for this in the mailing list, as well 
>> as the sample web.xml file on the Tomcat website, but am still having 
>> trouble getting the Servlets to be found.
>>
>> (http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2)
>> (http://marc.theaimsgroup.com/?l=tomcat-user&m=104327383710262&w=2)
>>
>> but I'm still having trouble modifying my web.xml file. I hope someone 
>> can help.
>>
>> I'm running Tomcat 4.1.24 LE, j2se1.4.1 and j2ee1.3.1 on Win2000 Prof.
>>
>> My directory structure is as follows:
>> - c
>> --Tomcat
>> ---webapps
>> ----myApp
>> -----images, WEB-INF (web.xml lies here)
>> -classes (.java and .class here)
>>
>> my TestServlet file is located here - c:\Tomcat\webapps\myApp\WEB- 
>> INF\classes\
>>
>> It compiled correctly and made the .class
>>
>> If I put  http://localhost:8080  when Tomcat runs, I get the welcome 
>> page, so I know Tomcat's running fine.
>>
>> But if I have http://localhost:8080/myApp/servlet/TestingServlet, 
>> (without
>> the web.xml file)     it doesn't find the servlet.
>>
>> nor does it find the servlet with this 
>> http://localhost:8080/myApp/servlet/Testing (with web.xml)
>>
>> I tried putting an image in c:\Tomcat\webapps\myApp\images\   and tried
>> http://localhost:8080/myApp/images/test.pic   it finds the  picture
>> correctly.
>>
>> myweb.xml file reads as follows:
>> --------------------------------------------------------------
>> ------------------
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>
>> <!DOCTYPE web-app
>> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>> "http://java.sun.com/dtd/web-app_2_3.dtd">
>>
>> <web-app>
>> <servlet>
>> <servlet-name>Testing</servlet-name>
>> <servlet-class>TestingServlet</servlet-class>
>> </servlet>
>> </web-app>
>> --------------------------------------------------------------
>> ------------------
>>
>> I'm still confused as to how I should modify my web.xml file?
>>
>> <web-app>
>> <servlet>
>> <servlet-name>Testing</servlet-name>
>> <servlet-class>****???***</servlet-class>
>> </servlet>
>> <servlet-mapping>
>> <servlet-name>****???***</servlet>
>> <url-pattern>****???***</url-pattern>
>> </servlet-mapping>
>> </web-app>
>> --------------------------------------------------------------
>> --------------------
>>
>> also, I'm learning from a book am not sure what the use of <web-app> tag 
>> is, in the web.xml file?
>>
>> Thank you,
>> Rohit.
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message