Re: jk 1.2.14 connector connection problem

2007-09-02 Thread Martin White
Just in case any other poor soul is trying to sort out such an error, thought I'd post my discovery after 6 hours of hair pulling...! The documentation I was following to set up the ISAPI redirector stated that I should create the ISAPI filter on the Web Sites folder in IIS. I did this, and all w

Re: Threads in tomcat application.

2007-09-02 Thread Juha Laiho
Manivannan Palanichamy wrote: > I need to design a web application that may use threads. Thats, the web > application might have to read some 200 files from network. In order to > speed up the process, I've decided to use threads/thread pooling. But, > however I know it is not a good practice to us

Re: full path of 404 file

2007-09-02 Thread Peter Boughton
> > I don't have a WEB-INF directory created yet - it does get auto-created, > > right? > > No. Ooops. :$ I created WEB-INF, chmod-ed, and it starts working now. (Well, the CFMLServlet works, the JSP servlet doesn't, but I don't really need that so I'm content to leave it.) Thanks to everyone

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > Correct. It appears that "Container" is the default, but setting it > explicitly certainly won't hurt. > Gotcha, thanks. -- brian - To start a new topic, e-mail: u

RE: Please help...

2007-09-02 Thread Caldarale, Charles R
> From: Brian Munroe [mailto:[EMAIL PROTECTED] > Subject: Re: Please help... > > After digesting that, it seems like auth="Container" is what should be > used when doing connection pooling, since Tomcat will be managing the > resources? Correct. It appears that "Container" is the default, but s

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > Not really. The Realm configuration documents how clients login to > applications, not how Tomcat (or your app) login to external resources. > The Security Manager describes how to place limits on what application > code can do within T

Re: Please help...

2007-09-02 Thread Hassan Schroeder
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > I take it you've noticed there's not a whole lot of documentation on > ... Oh, yeah, I've noticed. :-) > Looking at the code, the default is indeed Container, which would be the > typical usage. Thanks for the clarification! -- Hass

RE: Please help...

2007-09-02 Thread Caldarale, Charles R
> From: Hassan Schroeder [mailto:[EMAIL PROTECTED] > Subject: Re: Please help... > > OK, in a resource-ref, res-auth is a mandatory element. What does > that imply about leaving it out of a Resource in a Tomcat config? > > What's the default? I take it you've noticed there's not a whole lot of

RE: Please help...

2007-09-02 Thread Caldarale, Charles R
> From: Brian Munroe [mailto:[EMAIL PROTECTED] > Subject: Re: Please help... > > So I guess I should probably read the "Realm Configuration HOW-TO" and > "Security Manager HOW-TO" on the Tomcat documentation page? Not really. The Realm configuration documents how clients login to applications,

Re: Please help...

2007-09-02 Thread Hassan Schroeder
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > The auth attribute is the equivalent of element inside a > web.xml setting, as defined in the servlet spec. The > valid values are Application or Container. OK, in a resource-ref, res-auth is a mandatory element. What does that imply

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > The auth attribute is the equivalent of element inside a > web.xml setting, as defined in the servlet spec. The > valid values are Application or Container. > Chuck: So I guess I should probably read the "Realm Configuration HOW-T

Re: full path of 404 file

2007-09-02 Thread Hassan Schroeder
On 9/2/07, Peter Boughton <[EMAIL PROTECTED]> wrote: > I don't have a WEB-INF directory created yet - it does get auto-created, > right? No. > Anyway, here's /usr/local/jakarta/tomcat/conf/web.xml You shouldn't have to touch this at all, and I certainly wouldn't make any changes there until you

Re: full path of 404 file

2007-09-02 Thread Peter Boughton
That's a good idea. :) I don't have a WEB-INF directory created yet - it does get auto-created, right? Anyway, here's /usr/local/jakarta/tomcat/conf/web.xml (with a few million mime types snipped out): http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-

RE: Please help...

2007-09-02 Thread Caldarale, Charles R
> From: Brian Munroe [mailto:[EMAIL PROTECTED] > Subject: Re: Please help... > > Yea when I was originally struggling with getting connection pooling > working, I was crafting my and was googling like mad trying > to find some reference to what that attribute meant. The auth attribute is the eq

RE: tomcat startup w/ aggressiveheap option

2007-09-02 Thread Caldarale, Charles R
> From: Jeff Schindler [mailto:[EMAIL PROTECTED] > Subject: tomcat startup w/ aggressiveheap option > > I think it actually starts up fine from the command line, > but I'd have to confirm that Definitely need to confirm that first, before trying the service. There are some checks made when sett

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > > To be honest, I can't find any other documentation on that -- what > alternative values might be, or their effect. And I just gave it a quick > try with no setting and LambdaProbe's data sources page shows a > blank for "Auth" -- but acces

Re: Please help...

2007-09-02 Thread Brian Munroe
Mike, just an FYI: This morning I tried my little 'hello, world' recipe on Tomcat 6; aside from having to place the driver jar file in $CATALINA/lib, everything else works the same. Hope it helps you -- brian - To start a new t

Re: HTTP method GET is not supported by this URL

2007-09-02 Thread Peter Boughton
Was starting to think the same thing, and then I thought to actually try the local Host, and all the standard tomcat/webapps code and examples are all working there. So, that must mean it's a configuration difference between the main Host and the one I'm trying to add? The only thing I can think

RE: full path of 404 file

2007-09-02 Thread Caldarale, Charles R
> From: Peter Boughton [mailto:[EMAIL PROTECTED] > Subject: Re: full path of 404 file > > Does the fact that it is apparently reaching the right > directory now mean that this is more likely to be a new > problem with web.xml rather than server.xml? Sounds like you really need to post your serv

Re: Please help...

2007-09-02 Thread Hassan Schroeder
On 9/1/07, Brian Munroe <[EMAIL PROTECTED]> wrote: > Ok, lend me a hand here, besides the incorrect statement about > common/lib, does everything else look fine? The only discrepancy from my own config is that per the examples in the JNDI config notes

tomcat startup w/ aggressiveheap option

2007-09-02 Thread Jeff Schindler
Hello, I have tomcat 5.5.23 running with Java 1.5.0.11 on Windows Server 2003 SP1. I had been running tomcat 5.0 w/ Java 1.4.2 with the exact same Java options (including -XX:+AggressiveHeap) and I never had issues with tomcat starting up via the Windows service. Now, if I try to start it up,

Re: full path of 404 file

2007-09-02 Thread Peter Boughton
Ok, tried using that configuration, but I'm still getting the 405 method not supported error for any jsp file. Does the fact that it is apparently reaching the right directory now mean that this is more likely to be a new problem with web.xml rather than server.xml? Thanks, Peter On 9/2/07, Ma

Re: full path of 404 file

2007-09-02 Thread Mark Thomas
Peter Boughton wrote: > Ooops. > This is what I currently have: > > > www.mydomain.com > > > > What do I need to change so that mydomain.com/whatever will load > /home/user0/public_html/whatever ? I would use: www.mydomain.com and not define any contexts in server.xml Content

Re: full path of 404 file

2007-09-02 Thread Peter Boughton
Ooops. This is what I currently have: www.mydomain.com What do I need to change so that mydomain.com/whatever will load /home/user0/public_html/whatever ? On 9/2/07, Mark Thomas <[EMAIL PROTECTED]> wrote: > > Peter Boughton wrote: > > As far as I can tell, the appBase and docBase are

Re: full path of 404 file

2007-09-02 Thread Peter Boughton
I'm not really trying to use webapps at all - I want each Host to be associated with a user account, like this: ... ... ... On 9/2/07, Bill Barker <[EMAIL PROTECTED]> wrote: > > > "Peter Boughton" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >I mean full system path. (eg: /usr/

Re: how to close all the port allocated by tomcat after a doGet() request

2007-09-02 Thread David Delbecq
You certainly do not want to have tomcat stop responding to port it is listening too, it would be useless :) Except if you want your tomcat to not serve anything to anyone. If what you want is prevent client browser to use keep-alive connection and issue several requests on same connection, ta