You need a logger directive in your context
<Logger className="org.apache.catalina.logger.FileLogger" prefix
="myapp_log." suffix=".txt" timestamp="true"/>
Brett Reasor
Systems Administrator
212-399-4200 x 2297
[EMAIL PROTECTED]
"Lindomar"
<lindomar.silva@b To: "Tomcat Users List"
<[EMAIL PROTECTED]>
ol.com.br> cc:
Subject: Re: web.xml
09/19/2002 11:40
AM
Please respond to
"Tomcat Users
List"
I can't see file localhost_myapp_log, i only found localhost_examples_log,
localhost_admin_log and localhost_log.
I search something in localhost_log, but i don't find anything.
Let me take a few of your time.
Well, i created a new app (teste) :
teste
|_index.html
|_WEB-INF
|_classes
|_HelloWorldExample.class
|_web.xml
The class HelloWorldExample it's work in
localhost:8080/examples/servlet/HelloWorldExample, then i copied it.
The file web.xml is:
***
<?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>myteste</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
myteste
</servlet-name>
<url-pattern>
/hi
</url-pattern>
</servlet-mapping>
</web-app>
***
When i put http://localhost:8080/teste ->It's ok, i see my index.html
But when i put http://localhost:8080/teste/hi -> don't works!?
I see this on page:
##
HTTP Status 404 - /teste/hi
type Status report
message /teste/hi
description The requested resource (/teste/hi) is not available
##
And i can't found anything in log files about this exception.
What do i? I don't have an idea...i only install tomcat 4.1, i don't
configurate anything more.
Thank's for your attention.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 11:36 AM
Subject: RE: web.xml
Quer ter seu pr�prio endere�o na Internet?
Garanta j� o seu e ainda ganhe cinco e-mails personalizados.
Dom�niosBOL - http://dominios.bol.com.br
What the tomcat's log say?
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>