RE: Handling Tomcat Errors in Apache

2006-09-23 Thread Edward Quick

> Can I have one cgi-bin directory, or does there
> have to be one in each webapp?

By design, webapps are intended to be independent, so error handling is
also independent.  Don't have any personal experience here, but possibly
you could use a copy of the same error page in each webapp that does a
redirect to the error handling page in httpd.  You might want to search
the archives for other options:
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

 - Chuck



Thanks, I had searched them quite extensively before but with no luck. 
Having said that I've just figured one way round this, but using mod_proxy 
instead of mod_jk.


ErrorDocument 404 /cgi-bin/error.cgi
ProxyRequests Off
ProxyErrorOverride On

 ProxyPass http://localhost:8080/examples/
 ProxyPassReverse http://localhost:8080/examples/


If anyone could tell me how to do this with mod_jk, I'd really appreciate 
it.


Cheers,

Ed.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Handling Tomcat Errors in Apache

2006-09-23 Thread Caldarale, Charles R
> From: Edward Quick [mailto:[EMAIL PROTECTED] 
> Subject: RE: Handling Tomcat Errors in Apache
> 
> Can I have one cgi-bin directory, or does there 
> have to be one in each webapp?

By design, webapps are intended to be independent, so error handling is
also independent.  Don't have any personal experience here, but possibly
you could use a copy of the same error page in each webapp that does a
redirect to the error handling page in httpd.  You might want to search
the archives for other options:
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Handling Tomcat Errors in Apache

2006-09-23 Thread Edward Quick



> From: Edward Quick [mailto:[EMAIL PROTECTED]
> Subject: Handling Tomcat Errors in Apache
>
> 
> 404
> /cgi-bin/error.cgi
> 
>
> I guess the location tag is wrong here as it doesn't work, but I'm
> not surewhat else to put.

Quoting from the Servlet spec:

"The sub-element location element contains the location of the resource
in the web application relative to the root of the web application. The
value of the location must have a leading '/'."

Where is your cgi-bin directory?

 - Chuck



Thanks Chuck.

My cgi-bin is in the apache cgi-bin directory i.e. 
/usr/local/apache/cgi-bin. Can I have one cgi-bin directory, or does there 
have to be one in each webapp? Surely Tomcat can have one overriding cgi-bin 
directory, but where would this be set? And would the cgi script be ran by 
Tomcat or Apache? I prefer to use the latter without setting up another one 
in Tomcat.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Handling Tomcat Errors in Apache

2006-09-23 Thread Caldarale, Charles R
> From: Edward Quick [mailto:[EMAIL PROTECTED] 
> Subject: Handling Tomcat Errors in Apache
> 
> 
> 404
> /cgi-bin/error.cgi
> 
> 
> I guess the location tag is wrong here as it doesn't work, but I'm
> not surewhat else to put.

Quoting from the Servlet spec:

"The sub-element location element contains the location of the resource
in the web application relative to the root of the web application. The
value of the location must have a leading '/'."

Where is your cgi-bin directory?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Handling Tomcat Errors in Apache

2006-09-23 Thread Edward Quick

Hi,

I have an Apache 2 -> mod_jk -> Tomcat 5.5.16 set up and I'm trying
to get Tomcat errors handled by Apache.

In Apache I have:

ErrorDocument 404 /cgi-bin/error.cgi

And in Tomcat's web.xml I have


   404
   /cgi-bin/error.cgi


I guess the location tag is wrong here as it doesn't work, but I'm
not surewhat else to put.
Could someone help me out please?!

Thanks,

Ed.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Handling Tomcat Errors in Apache

2006-09-22 Thread Edward Quick

Hi,

I have an Apache 2 -> mod_jk -> Tomcat 5.5.16 set up and I'm trying to get 
Tomcat errors handled by Apache.


In Apache I have:

ErrorDocument 404 /cgi-bin/error.cgi

And in Tomcat's web.xml I have


   404
   /cgi-bin/error.cgi


I guess the location tag is wrong here as it doesn't work, but I'm not 
surewhat else to put.

Could someone help me out please?!

Thanks,

Ed.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]