Tomcat and statically included JSPs

2003-03-20 Thread Grivsky, John
hi

we are using Tomcat 4.1.18/IIS on a win2000 machine.  we have one JSP
statically including other JSPs, and I know that Tomcat can detect and
recompile statically included pages when they are modified (whether or not
the calling page has been modified).  This works fine on its own.  However,
when we call our servlet, it does some processing then forwards the request
using a RequestDispatcher like this

RequestDispatcher rd = getServletContext().getRequestDispatcher(page);
rd.forward( req, res );

the problem is that Tomcat no longer detects that statically included pages
have been modified.  is it something to do with the request dispatcher,
Tomcat or what?  we have done a lot of internet research but have come up
empty.  

thanks in advance
john

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: trouble configuring a web app outside Tomcat install directory

2003-03-24 Thread Grivsky, John
hi

did you add the servlets to your web.xml (using the  and
 elements)?



-Original Message-
From: Michael Harrison [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 10:59 AM
To: tomcat-user
Subject: trouble configuring a web app outside Tomcat install directory


Hello, all,

I'm having trouble with a web app I've located outside the Tomcat
install directory: that is, under a webapps/ROOT/ directory that is not
under /usr/local/tomcat/. I have my JSPs working fine, but I can't call
servlets through the web browser: I get 404's.

Quick background: Apache 2.0.44 and Tomcat 4.1.18 on Linux, mod_jk.so.
I'll call my application site 'appsite.com' to protect the innocent:
it's set up under "/home/web/appsite.com/webapps/ROOT/". 

In my mod_jk.conf file, I have the servlet-specific JkMount directives
"JkMount /servlet  ajp13" and "JkMount /servlet/*  ajp13".

In server.xml, I have the following containers defined:

  
  



The servlets are located in
"/home/web/appsite.com/webapps/ROOT/WEB-INF/classes/mypackage/". I'm
trying to call them as
http://www.appsite.com/servlet/mypackage.ServletX,
and that's when I get the 404.

Is there something else I need to do to map servlet to the
webapps/ROOT/WEB-INF/classes directory of my site?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: best practices on rotating tomcat logs

2003-03-31 Thread Grivsky, John
hi

is there a way I can use log4j without modifiying tomcat source?  I would
like to have catalina.out roll over every night, but change nothing else
about what goes into catalina.out or other aspects of tomcat logging.
anybody have an idea?

thanks
john

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:28 AM
To: Tomcat Users List
Subject: RE: best practices on rotating tomcat logs



Howdy,
We use nightly rotated (at midnight) log4j logs, using log4j's
DailyRollingFileAppender class.  It's worked very well for us.  The
files are automatically renamed, e.g. from x.txt to x.txt.2003-03-31,
and we archive them that way.

We cat them all together periodically for traffic analysis etc, although
there are tools which remove the need for concatenating all the log4j
together.  

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: klute [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 28, 2003 3:20 PM
>To: Tomcat Users List
>Subject: best practices on rotating tomcat logs
>
>Hi All,
>
>i run tomcat behind apache via mod_jk. currently i
>define a timestamped  for each  in my
>server.xml:
>
>className="org.apache.catalina.logger.FileLogger"
>  prefix="mycontextA." suffix=".txt"
>  timestamp="true"/>
>
>and a logger for my engine in which all the contexts
>reside:
>
>className="org.apache.catalina.logger.FileLogger"
>prefix="apache_log." suffix=".txt"
>timestamp="true"/>
>
>All the tomcat's sdtout goes to catalina.out (default
>setup).
>
>I am wondering if this is pretty much what other
>people do and if there is a better way of doing it.
>
>i just found that apache can rotate its logs with its
>bin/rotatelogs where you can specify the rotation
>interval.
>
>does tomcat have a similar functionality? i searched
>for "rotate" in Tomcat's source and found the
>AccessLogValve class which could be i want, but i need
>help figuring it out.
>
>thanks a lot!
>james
>
>
>__
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]