Re: AJP12 or AJP13?

2001-06-18 Thread Neil Conway

On Tue, Jun 19, 2001 at 10:27:05AM +0900, [EMAIL PROTECTED] wrote:
> I am new to tomcat. I am not sure which protocol should be set in my server.xml,
> AJP12 or AJP13?  How to know which protocol is supported in my box? 

You need AJP12 to shutdown Apache/Tomcat, but AJP13 is the better
protocol for general purpose use. So I'd say enable both of them
(although you may as well cut down on the number of threads the
PoolTcpConnector for AJP12 uses, since you're rarely be using them).

There are docs on how to do this @ the Tomcat site.

Cheers,

Neil




Re: access log for Tomcat

2001-06-18 Thread Neil Conway

On Mon, Jun 18, 2001 at 07:08:51AM -0400, Randy Layman wrote:
>   There isn't a module for Tomcat that does this that I know of (and
> nothing built into Tomcat, regardless of what Luba says), although it should
> be fairly easy to do - you need to write a RequestInterceptor that just
> logs, not intercepts, the requests.

I think I heard Tomcat 4.0 will ship with a pre-setup access log
facility.

Cheers,

Neil




Re: Has the servlet be compiled?

2001-06-19 Thread Neil Conway

On Wed, Jun 20, 2001 at 12:24:22AM +0200, [EMAIL PROTECTED] wrote:
> I have to compile the servlet?
> I ha a simple servlet (Hello world)
> what I have to do:
> -complie and put it (file.class) in appropriate directory

Yes, compile it and put the bytecode in WEB-INF/classes

> -or just put it (file.java) in appropriate directory?
> 
> and how can I compile a servlet?

With a Java compiler (javac, jikes, etc), just like regular Java code.

Cheers,

Neil