Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/1/07, Brian Munroe [EMAIL PROTECTED] wrote: On 9/1/07, Hassan Schroeder [EMAIL PROTECTED] wrote: If you're talking about TC6, there is no common/lib or shared/lib; $CATALINA_HOME/lib is correct... Oh crap, I was going off my 5.5 install! Hassan: Ok, lend me a hand here, besides

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,

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: Host name=user1.com appBase=/home/user1/public_html.../Host Host name=user2.com appBase=/home/user2/public_html.../Host Host name=user3.com appBase=/home/user3/public_html.../Host On

Re: full path of 404 file

2007-09-02 Thread Peter Boughton
Ooops. This is what I currently have: Host name=localhost appBase=webapps/ Host name=mydomain.com appBase=/home/user0/public_html Aliaswww.mydomain.com/Alias Context path= docBase=/home/user0/public_html reloadable=true/ /Host What do I need to change so that mydomain.com/whatever will

Re: full path of 404 file

2007-09-02 Thread Mark Thomas
Peter Boughton wrote: Ooops. This is what I currently have: Host name=localhost appBase=webapps/ Host name=mydomain.com appBase=/home/user0/public_html Aliaswww.mydomain.com/Alias Context path= docBase=/home/user0/public_html reloadable=true/ /Host What do I need to change so

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,

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

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

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

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: 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

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 accessing

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 setting

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 Resource and was googling like mad trying to find some reference to what that attribute meant. The auth attribute is the

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): ?xml version=1.0 encoding=ISO-8859-1? web-app

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've

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 res-auth element inside a web.xml resource-ref setting, as defined in the servlet spec. The valid values are Application or Container. Chuck: So I guess I should probably read the Realm

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 res-auth element inside a web.xml resource-ref 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

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, not how

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 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 Resource... Oh, yeah, I've noticed. :-) Looking at the code, the default is indeed Container, which would be the typical usage. Thanks for the clarification! --

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

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 setting it

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:

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 for

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 use

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