Re: Custom error page for invalid mutual authentication (TLS)

2025-02-11 Thread Christopher Schultz
'true' and then try to detect within your app, if the client provided a valid certificate and redirect them to an error page if that is not the case. Source: https://stackoverflow.com/a/46488689/1180010 +1 If the TLS handshake fails (because the certs are unacceptable to one party

Re: Custom error page for invalid mutual authentication (TLS)

2025-02-07 Thread Sebastian Trost
n your app, if the client provided a valid certificate and redirect them to an error page if that is not the case. Source: https://stackoverflow.com/a/46488689/1180010 Sebastian On 06.02.2025 18:59, Peter Rader wrote: Hi, I have a website that use mutual authentication for over 100 perso

Custom error page for invalid mutual authentication (TLS)

2025-02-06 Thread Peter Rader
to have a custom website instead of the browser's built-in error-page? Kind regards Peter Rader -- Fachinformatiker AE / IT Software Developer Peter Rader Wilsnacker Strasse 17 10559 Berlin - GERMANY Tel: 0049 (0)30 / 6 29 33 29 6 Fax: 0049 (0)30 / 6 29 33 29 6 Handy: 0049 (0)176 / 87 521 576

Re: Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Christopher Schultz
mething like a request attribute that could be included in a custom error page for example. However, the current Tomcat code for authentication is structured in such a way that exposing the reason for an authentication failure would require a reasonable amount of refactoring. I don't think an

Re: Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Werner Dähn
? > > No. > > I do think there is an argument for providing information on the reason > for the authentication failure via a mechanism that allows system > administrators to decide if they want to pass it on to the users or not. > Something like a request attribute that could be inc

Re: Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Mark Thomas
ers or not. Something like a request attribute that could be included in a custom error page for example. However, the current Tomcat code for authentication is structured in such a way that exposing the reason for an authentication failure would require a reasonable amount of refactoring. I don&

Form based auth does not provide the option to show error reason in the error page

2021-10-14 Thread Werner Dähn
I know it has been asked dozens of times but the response is always "Cannot be done in a standard way". But why can't we change Tomcat to provide further details to the error page of why the login failed? I would have thought tomcat can support that easily without any backward comp

Re: Custom error page

2021-09-24 Thread Mark Thomas
On 24/09/2021 11:56, Jan Pernica wrote: Hi how can I easly create error page for the whole server? Curretly if I add to conf/web.xml         500     /error/error.html             404     /error/error.html     And put into webapps/ROOT/error/error.html page it works

Custom error page

2021-09-24 Thread Jan Pernica
Hi how can I easly create error page for the whole server? Curretly if I add to conf/web.xml         500     /error/error.html             404     /error/error.html     And put into webapps/ROOT/error/error.html page it works only for ROOT context. Other contexts shows

答复: [Tomcat] Error page not work for 400 error.

2018-08-05 Thread Leonard Afeng
ed but the return was not worked. 发送自 Windows 10 版邮件应用 发件人: Mark Thomas 发送时间: 2018年8月6日 3:32 收件人: users@tomcat.apache.org 主题: Re: [Tomcat] Error page not work for 400 error. On 05/08/2018 04:13, Leonard Afeng wrote: > Dear all, > > I custom the error page in web.xml as below: >

Re: [Tomcat] Error page not work for 400 error.

2018-08-05 Thread Mark Thomas
On 05/08/2018 04:13, Leonard Afeng wrote: Dear all, I custom the error page in web.xml as below: And I added some log action in org.apache.catalina.util.ErrorPageSupport and found out that in some case the 400 error page not working but the default error page. 20:02:59.674 INFO

[Tomcat] Error page not work for 400 error.

2018-08-04 Thread Leonard Afeng
Dear all, I custom the error page in web.xml as below: 400 /error400.html 404 /error404.html java.lang.IllegalArgumentException /error404.html And I added some log action in org.apache.catalina.util.ErrorPageSupport and found out that in some case the 400 error

Re: Re: FW: HttpServletResponse.sendError - missing message in error page

2018-07-30 Thread Michael Osipov
> [...] > > “It is implied but it could be clearer.” > > [...] > > I agree that default ErrorReportValve is not something that has to be > backward compatible as the apps should have provided their own. Yet, > we were using the default as it was working very well and was covering > our needs.

Re: FW: HttpServletResponse.sendError - missing message in error page

2018-07-27 Thread Emil Alexandroff
> > -Original Message- > From: Mark Thomas > Sent: 26 юли 2018 г. 19:04 > To: Tomcat Users List > Subject: Re: HttpServletResponse.sendError - missing message in error page > > On 26/07/2018 13:46, Assia Djambazova wrote: > > Hello, >

Re: HttpServletResponse.sendError - missing message in error page

2018-07-26 Thread Mark Thomas
me from the spec [2] that the message should be displayed: *The server defaults to creating the response to look like an HTML-formatted server error page containing the specified message, setting the content type to "text/html"* This is not a spec compliance issue. The ErrorReportValve

Re: HttpServletResponse.sendError - missing message in error page

2018-07-26 Thread Michael Osipov
message should > be displayed: *The server defaults to creating the response to look like an > HTML-formatted server error page containing the specified message, setting > the content type to "text/html"* > > I use the ErrorReportValve and showReport is set to false. Rea

HttpServletResponse.sendError - missing message in error page

2018-07-26 Thread Assia Djambazova
E I think that this change is the cause [1] However, this change looks incompatible with servlet spec and breaks our integration tests. It seems to me from the spec [2] that the message should be displayed: *The server defaults to creating the response to look like an HTML-formatted server error page

RE: tomcat 6 vulnerability scan default error page help

2018-05-07 Thread Berneburg, Cris J. - US
Mark Thanks for taking the time to help. Again, I appreciate it. cjb> We are getting dinged by a vulnerability scan for the default cjb> not-found error page being returned by Tomcat for a Status 404. cjb> [...] cjb> And we're using Tomcat 6.0.37 (ahem). MT> And you are wor

RE: tomcat 6 vulnerability scan default error page help

2018-05-07 Thread Berneburg, Cris J. - US
Leon, Mark, and Alejandro Thanks for your time and suggestions. I appreciate it. cjb> We are getting dinged by a vulnerability scan for the default cjb> not-found error page being returned by Tomcat for a Status 404. cjb> [...] cjb> However, I can't find where the error-page f

RE: tomcat 6 vulnerability scan default error page help

2018-05-07 Thread Berneburg, Cris J. - US
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, May 2, 2018 4:01 PM To: users@tomcat.apache.org Subject: Re: tomcat 6 vulnerability scan default error page help > On 02/05/18 20:51, Leon Rosenberg wrote: > > Hi Mark, > > > > I ag

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread alejandro . vargas
tomcat\lib directory again. Hope this could help you, I'm using Tomcat 8.0.27 "Berneburg, Cris J. - US" escribió: We are getting dinged by a vulnerability scan for the default not-found error page being returned by Tomcat for a Status 404. On my dev server when requesting

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Mark Thomas
t for. Don't get me started on PCI compliance... Oh, and Cris - take a look at the ErrorReportValve. That is where the default error page is coming from. Mark > > regards > Leon > > On Wed, May 2, 2018 at 9:42 PM, Mark Thomas wrote: > >> On 02/05/18 20:27, Bernebu

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Leon Rosenberg
wrote: > On 02/05/18 20:27, Berneburg, Cris J. - US wrote: > > We are getting dinged by a vulnerability scan for the default not-found > error page being returned by Tomcat for a Status 404. > > > > On my dev server when requesting an invalid URL, Tomcat returns a Status

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Mark Thomas
On 02/05/18 20:27, Berneburg, Cris J. - US wrote: > We are getting dinged by a vulnerability scan for the default not-found error > page being returned by Tomcat for a Status 404. > > On my dev server when requesting an invalid URL, Tomcat returns a Status 404 > page that disp

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Leon Rosenberg
Hi Cris, try to add following to your web.xml 404 /error404.html regards Leon On Wed, May 2, 2018 at 9:27 PM, Berneburg, Cris J. - US wrote: > We are getting dinged by a vulnerability scan for the default not-found > error page being returned by Tomcat

tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Berneburg, Cris J. - US
We are getting dinged by a vulnerability scan for the default not-found error page being returned by Tomcat for a Status 404. On my dev server when requesting an invalid URL, Tomcat returns a Status 404 page that displays the Tomcat version. Right, I need to do something about that. However

tomcat jaas custom error message in error page

2016-05-11 Thread Shushant Arora
Hi I have a web application deployed on tomcat. I have used custom login module of JAAS for authentication and provided login and error page in web.xml. I want to access message of login exception which I threw in login module into error page - so that custom message can be displayed to user

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Kim Ming Yap
ok. i see the light .. Thanks a zillion! 😊 > Date: Tue, 19 May 2015 15:56:47 +0100 > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: Tomcat valve JAAS : form error page displayed first before > response reaches back to Tomcat valve > > On 19/05/201

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Mark Thomas
On 19/05/2015 15:51, David kerber wrote: > On 5/19/2015 10:46 AM, Kim Ming Yap wrote: >> >> You said .. >> >> "> Actually, the better analogy is that there is an application that can >>> tell you whether or not 1+1=2, and you're asking it to explain why the >>> numbers they entered don't total up t

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread David kerber
any more information is just setting yourself up to be a victim of much quicker brute-force attacks, because you're giving them lots of help. Date: Tue, 19 May 2015 10:34:48 -0400 From: dcker...@verizon.net To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page di

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Kim Ming Yap
. i will ask 1+1 = 10? That's the issue. > Date: Tue, 19 May 2015 10:34:48 -0400 > From: dcker...@verizon.net > To: users@tomcat.apache.org > Subject: Re: Tomcat valve JAAS : form error page displayed first before > response reaches back to Tomcat valve > > On 5/19/201

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread David kerber
etc. That's why when i started looking at this issue, well lots of complaints on this. Just google it. Just my thoughts. Date: Tue, 19 May 2015 09:10:57 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Kim Ming Yap
> Subject: Re: Tomcat valve JAAS : form error page displayed first before > response reaches back to Tomcat valve > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Ming Yap, > > (Please let me know if I'm using your given name properly... you > haven

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Christopher Schultz
hristopherschultz.net To: users@tomcat.apache.org Subject: >> Re: Tomcat valve JAAS : form error page displayed first before >> response reaches back to Tomcat valve >> > Ming Yap, > > On 5/18/15 4:56 PM, Kim Ming Yap wrote: >>>> Now here's come

Re: RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread l...@bsoft.com.cn
good question.lol l...@bsoft.com.cn From: Kim Ming Yap Date: 2015-05-19 06:23 To: Tomcat Users List Subject: RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve I think Tomcat should provide interfaces for different scenarios .. that'

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
t; From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: Tomcat valve JAAS : form error page displayed first before > response reaches back to Tomcat valve > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Ming Yap, > > On 5/18/15 4:56 PM, Ki

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Christopher Schultz
> This message propagate to error page4. Invalid password -> > This message propagate to error page You should do some reading about user-enumeration vulnerabilities and similar things. You probably don't want to give this kind of information to a user. Hint: the user might be an adv

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
Invalid password -> This message propagate to error page There's no way to propagate the above error messages to the error page from JAAS login module since this module has no access to those important aforementioned objects. Hence i turn to valve (storing ThreadLocal). But as you can see

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Christopher Schultz
check to see if the response has been committed, but you can't do anything effective to stop it. - -chris >> Date: Mon, 18 May 2015 14:54:24 +0100 From: ma...@apache.org To: >> users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form >> error page displayed first

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
You said "The error page will be handled by the webapp or the ErrorReportingValve - both of whichh may get called before your Valve depending on how the Valve is configured." How do i ensure that my custom valve is called before the the ErrorReportingValve?Is there some settings

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
flow? > Date: Mon, 18 May 2015 14:54:24 +0100 > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: Tomcat valve JAAS : form error page displayed first before > response reaches back to Tomcat valve > > On 18/05/2015 13:57, Kim Ming Yap wrote: > >

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Mark Thomas
ow .. > > Gee .. i got this wrong all the while > Think i'm seeing the light .. Happy to help. Mark > > >> Date: Mon, 18 May 2015 13:43:14 +0100 >> From: ma...@apache.org >> To: users@tomcat.apache.org >> Subject: Re: Tomcat valve JAAS : form

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
low .. Gee .. i got this wrong all the while Think i'm seeing the light .. > Date: Mon, 18 May 2015 13:43:14 +0100 > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: Tomcat valve JAAS : form error page displayed first before > response reaches back to To

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Mark Thomas
nal objects) the Authenticator calls the filter. Neither the request nor the response are part of the processing chain. They are objects that are passed up and down the chain. > If invalid credential .. > > request --> valve --> JAAS --> response --> valve (break point and s

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
ced the flow exactly as indicated on my email (I've traced is using system.out.println) request --> valve --> JAAS --> filter --> JSP --> response --> filter --> JAAS --> valve --> browser If invalid credential .. request --> valve --> JAAS --> response

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Mark Thomas
> flow of JAAS back to the client should the form based authentication failed. > SOFTWARE:1. Apache Tomee plus 1.7.12. Java 83. Tomcat JAAS Realm > OBJECTIVE:Custom error captured in JAAS login module to propagate to error > page You are unlikely to get much help from Tomcat with this

Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve‏

2015-05-17 Thread Kim Ming Yap
Thought of adding this custom error as an attribute in the session object.However I noticed that the error page is already displayed before i could add this cusom error (immediately after the getNext method).Due to that the ready custom error message cannot be usedSAMPLE CODES:1. web.xml

Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-17 Thread Kim Ming Yap
authentication failed. SOFTWARE:1. Apache Tomee plus 1.7.12. Java 83. Tomcat JAAS Realm OBJECTIVE:Custom error captured in JAAS login module to propagate to error page BASIC UNDERSTANDING: The Tomcat JAAS layer is not integrated with the web container layer. Hence the former does not have access to r

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
st is made for a file that does not exist. Since the file doesn't exist, I actually wanted to show a proper 404 error page matching the error pages for the rest of my server. Currently, all I see is a blank page from the CGIServlet since my debug level doesn't meet the logging condition.

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Konstantin Kolinko
2015-03-16 21:52 GMT+03:00 Jacob Haverkost : > Version: 6.0.43 > OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work fine > > This appears to be due to the line, res.setStatus(4

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jacob, On 3/16/15 2:52 PM, Jacob Haverkost wrote: > Version: 6.0.43 OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work > fine >

CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
Version: 6.0.43 OS: Win7 x64 Currently, the CGIServlet does not appear to support using the 404 error-page specified in the web.xml (ROOT). The error-pages work fine This appears to be due to the line, res.setStatus(404);, inside of doGet(). According to the documentation for

Re: Custom error page for all errors

2014-08-19 Thread Mark Thomas
On 19/08/2014 21:05, Mark Haroldson wrote: > Is there a way to route all errors to a single web page? Leave out the error-code tag and you define the default error page. That will work in Tomcat 8 and I think in 7 as well. Mark > > > > > > Something like:

Custom error page for all errors

2014-08-19 Thread Mark Haroldson
Is there a way to route all errors to a single web page? Something like: all myerror.jsp Basically I want to control the content of everything that goes out of my service. Thanks Mark

Re: Single error page for multiple web applications

2014-01-02 Thread Maarten van Hulsentop
wrote: > >> > >> Hello, > >> > >> We are using Tomcat to host a number of web applications as a > >> uniform solution. We trying to implement something that seems to > >> be an odd requirement, evh it is really a use case for us. > >> &g

Re: Single error page for multiple web applications

2014-01-01 Thread Christopher Schultz
olution. We trying to implement something that seems to >> be an odd requirement, evh it is really a use case for us. >> >> We would like to define a single [default] error page for all >> web applications residing on this Tomcat instance. After some >> experimentat

Re: Single error page for multiple web applications

2013-12-31 Thread Leo Donahue
; We would like to define a single [default] error page for all web > applications residing on this Tomcat instance. After some experimentation > and googling around, it seems that there is no clear-cut solution for this. > I see a few options; > > - Let the global conf/web.xml defi

Re: Single error page for multiple web applications

2013-12-31 Thread Maarten van Hulsentop
Hello Serge, Thank you for your reply. This option seems to be similar to the first thing i tried, editing conf/web.xml. As is suggested in http://stackoverflow.com/questions/13914575/how-to-build-server-level-custom-error-page-in-tomcat But contrary to what's stated in the stackoverlow me

Re: Single error page for multiple web applications

2013-12-31 Thread Serge Fonville
Hello Maarten, When I was in the same boat, I found http://stackoverflow.com/questions/13914575/how-to-build-server-level-custom-error-page-in-tomcatand http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q6 both very helpful. I found these by googling https://www.google.nl/?gws_rd=cr&am

Single error page for multiple web applications

2013-12-31 Thread Maarten van Hulsentop
Hello, We are using Tomcat to host a number of web applications as a uniform solution. We trying to implement something that seems to be an odd requirement, even though it is really a use case for us. We would like to define a single [default] error page for all web applications residing on this

Re: Error page messages

2012-12-01 Thread André Warnier
David Kerber wrote: On 11/30/2012 5:59 PM, André Warnier wrote: Christopher Schultz wrote: ... I've even seen a site with a Perl-based (or was it PHP-based) service .. must have been PHP, not Perl, I'm sure. We Perl guys don't do things that way. As I was telling Leo off-line, we have a nic

Re: Error page messages

2012-11-30 Thread David Kerber
On 11/30/2012 5:59 PM, André Warnier wrote: Christopher Schultz wrote: ... I've even seen a site with a Perl-based (or was it PHP-based) service .. must have been PHP, not Perl, I'm sure. We Perl guys don't do things that way. As I was telling Leo off-line, we have a nice global switch calle

Re: Error page messages

2012-11-30 Thread André Warnier
Christopher Schultz wrote: ... I've even seen a site with a Perl-based (or was it PHP-based) service .. must have been PHP, not Perl, I'm sure. We Perl guys don't do things that way. As I was telling Leo off-line, we have a nice global switch called "fatals_to_browser", which you can just tu

Re: Error page messages

2012-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/30/12 5:28 PM, Caldarale, Charles R wrote: >> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] >> Subject: RE: Error page messages > >> I don't know of any public facing websites, off h

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
>-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Sent: Friday, November 30, 2012 3:28 PM >To: Tomcat Users List >Subject: RE: Error page messages > >> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] >> Su

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
>-Original Message- >From: Christopher Schultz [mailto:ch...@christopherschultz.net] >Sent: Friday, November 30, 2012 3:19 PM >To: Tomcat Users List >Subject: Re: Error page messages > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Leo, > >On 11/

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
>-Original Message- >From: Pid [mailto:p...@pidster.com] >Sent: Friday, November 30, 2012 3:13 PM >To: Tomcat Users List >Subject: Re: Error page messages > >On 30/11/2012 22:09, Leo Donahue - RDSA IT wrote: >>> -Original Message- >>> From:

RE: Error page messages

2012-11-30 Thread Caldarale, Charles R
> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] > Subject: RE: Error page messages > I don't know of any public facing websites, off hand, that show uncaught > exception messages. You need to get out more - there are tons of poorly implemented websites th

Re: Error page messages

2012-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 11/30/12 5:09 PM, Leo Donahue - RDSA IT wrote: >> -Original Message- From: Pid [mailto:p...@pidster.com] >> Sent: Friday, November 30, 2012 3:04 PM To: Tomcat Users List >> Subject: Re: Error page messages >>

Re: Error page messages

2012-11-30 Thread Pid
On 30/11/2012 22:09, Leo Donahue - RDSA IT wrote: >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Sent: Friday, November 30, 2012 3:04 PM >> To: Tomcat Users List >> Subject: Re: Error page messages >> >> On 30/11/2012 21:00,

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
>-Original Message- >From: Pid [mailto:p...@pidster.com] >Sent: Friday, November 30, 2012 3:04 PM >To: Tomcat Users List >Subject: Re: Error page messages > >On 30/11/2012 21:00, Leo Donahue - RDSA IT wrote: >> Are there standardized server responses that one

Re: Error page messages

2012-11-30 Thread Pid
exception isn't handled* by the app then it's 500 and a stacktrace if you haven't configured a custom error page. Those packages probably have a few tens of exceptions that could be thrown. > I don't know that I would expect to see any of these on a public website, as > I am

Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
Are there standardized server responses that one should expect to see when dealing with java.lang, javax.servlet and javax.faces exceptions that should be displayed to the client? I don't know that I would expect to see any of these on a public website, as I am likely not to care what happens o

Re: NPE during custom error page handling in Tomcat 7.0.32

2012-10-11 Thread Sean Owen
x()).addMapping("/error.jspx"); On Wed, Oct 10, 2012 at 8:06 PM, Sean Owen wrote: > Hello all, > > I'm looking for any ideas on the following issue: > https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 > > On Tomcat 7.0.32, using embedded Tomcat, I'm s

NPE during custom error page handling in Tomcat 7.0.32

2012-10-10 Thread Sean Owen
Hello all, I'm looking for any ideas on the following issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 On Tomcat 7.0.32, using embedded Tomcat, I'm seeing a NullPointerException when using a custom error page. The page itself is fine and loads if accessed directly. Tri

Re: empty error page when using sendError()

2012-08-13 Thread Vladimir Mokrozub
On Sat, 11 Aug 2012 09:07:11 +0100 Mark Thomas wrote: > > You are already in an error page so sendError will not trigger the > error page matching process again. If it did there is a strong > possibility that you could end up in an infinite loop. > > Mark > Thi

Re: empty error page when using sendError()

2012-08-11 Thread Mark Thomas
On 11/08/2012 08:17, Vladimir Mokrozub wrote: >> On Fri, 10 Aug 2012 10:50:17 -0400 >> Christopher Schultz wrote: > >>> >>> When I try to send error page directly from ErrorHandler using >>> HttpServletResponse, it works fine and page is displayed, so

Re: empty error page when using sendError()

2012-08-11 Thread Vladimir Mokrozub
>On Fri, 10 Aug 2012 10:50:17 -0400 >Christopher Schultz wrote: > > > > When I try to send error page directly from ErrorHandler using > > HttpServletResponse, it works fine and page is displayed, so it > > seems the problem is with sendError() method. Is this an

Re: empty error page when using sendError()

2012-08-10 Thread Christopher Schultz
; protected void doPost(HttpServletRequest request, > HttpServletResponse response) throws ServletException, IOException > { doGet(request, response); } } - > > When I type http:///TestServlet in the address bar, I > get an empty page instead of default Tomcat error page,

empty error page when using sendError()

2012-08-10 Thread Vladimir Mokrozub
Hello, I have a problem (tried Tomcat 7.0.29 and Glassfish 3.1) with displaying an error page when exception is thrown and processed by another servlet. Here is what I've added to web.xml: - java.lang.Throwable /ErrorHandler - Here

AW: Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von:Mark Thomas Gesendet: Mo 14.05.2012 18:25 Betreff:Re: AW: Manager activeSessions and customized error page An: Tomcat Users List ; > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 14/05/2012 16:58, Christopher S

Re: AW: Manager activeSessions and customized error page

2012-05-14 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/05/2012 16:58, Christopher Schultz wrote: > Thomas, > > On 5/14/12 9:44 AM, Thomas Rohde wrote: >> A Filter was my first approach. But the filter is invoked after >> authentication has taken place. And for authentication a session >> is neede

Re: AW: Manager activeSessions and customized error page

2012-05-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 5/14/12 9:44 AM, Thomas Rohde wrote: > A Filter was my first approach. But the filter is invoked after > authentication has taken place. And for authentication a session > is needed. ;-) Right: the form authenticator is in a Valve and Va

AW: Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von:Konstantin Kolinko Gesendet: Mo 14.05.2012 15:00 Betreff:Re: Manager activeSessions and customized error page An: Tomcat Users List ; > 2012/5/14 Thomas Rohde : > > Hi! > > > > I configured the Manager's maxA

Re: Manager activeSessions and customized error page

2012-05-14 Thread Konstantin Kolinko
ion we > catch this exception around httpServletRequest.getSession(true) and redirect > to an customized error page. Works! > > Now I activated form based authentication via securiy constraint in web.xml. > If I try to open the web application with my browser by sending the first &g

Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
getSession(true) and redirect to an customized error page. Works! Now I activated form based authentication via securiy constraint in web.xml. If I try to open the web application with my browser by sending the first request, the response is empty (status 200 OK). Is there any way to map a st

Re: Servlet Mapping w/ Error Page

2012-01-11 Thread George Sexton
HttpServletResponse.sendError(). Once I re-structured the code to not commit the response, it started working. If I change the error-page entry to reference a static HTML page, the page is displayed as expected. This looks like a bug to me, but I wanted to run it past tomcat-user and see what other people think. 1

Re: Servlet Mapping w/ Error Page

2012-01-02 Thread Terence M. Bandoian
code I have if (someCondition) { res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } When this code is hit, my custom page is not displayed. I get a blank page. No error is thrown by tomcat. If I change the error-page entry to reference a static HTML page, the page is displayed

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread George Sexton
) { res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } When this code is hit, my custom page is not displayed. I get a blank page. No error is thrown by tomcat. If I change the error-page entry to reference a static HTML page, the page is displayed as expected. This looks like a bug to

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread Konstantin Kolinko
gt; > if (someCondition) { >    res.sendError(HttpServletResponse.SC_FORBIDDEN); >    return; > } > > When this code is hit, my custom page is not displayed. I get a blank page. > No error is thrown by tomcat. > > If I change the error-page entry to reference a static HTML page,

Servlet Mapping w/ Error Page

2011-12-31 Thread George Sexton
code is hit, my custom page is not displayed. I get a blank page. No error is thrown by tomcat. If I change the error-page entry to reference a static HTML page, the page is displayed as expected. This looks like a bug to me, but I wanted to run it past tomcat-user and see what other people

No error-page for IllegalStateException(Too many active sessions) Instead: Empty page HTTP code 200 (OK)

2011-07-22 Thread Selaron
Hello, in somecases, Tomcat dosn't allow output of an error page for too many active sessions. Reproduction: 1) Configure Tomcat 6 or 7 example application to allow maxActiveSessions=1 only (e.g. adding /examples/META-INF/context.xml#SimpeSessionManager...) 2) Visit http://localhost

Re: error-page for http 500 error code does not work

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, On 6/7/2011 8:56 AM, Kevin Claver wrote: > Through further investigation, I now believe the JSF framework I'm > using is absorbing the error, and the framework's error page is what > is throwing the 500 error. I wonder if t

Re: error-page for http 500 error code does not work

2011-06-07 Thread Kevin Claver
Chris,  Through further investigation, I now believe the JSF framework I'm using is absorbing the error, and the framework's error page is what is throwing the 500 error.  I wonder if the 500 error thrown by the framework's error page should fall through to the custom error pa

Re: error-page for http 500 error code does not work

2011-06-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, On 6/3/2011 9:43 AM, Kevin Claver wrote: > When the custom error servlet fails to display, I get the stock tomcat http > 500 error page. > > If I look at the access log, I see the 500 error: > > 192.168.xxx.xxx - - [02

Re: error-page for http 500 error code does not work

2011-06-03 Thread Kevin Claver
Friday, June 3, 2011 7:47 AM Subject: RE: error-page for http 500 error code does not work > From: Kevin Claver [mailto:kcla...@yahoo.com] > Subject: Re: error-page for http 500 error code does not work > I zipped the tomcat install and deployed it to my Win 7 machine > where it works

RE: error-page for http 500 error code does not work

2011-06-03 Thread Caldarale, Charles R
> From: Kevin Claver [mailto:kcla...@yahoo.com] > Subject: Re: error-page for http 500 error code does not work > I zipped the tomcat install and deployed it to my Win 7 machine > where it works without issue. I'll hazard a guess that you have a case sensitivity issue.

Re: error-page for http 500 error code does not work

2011-06-03 Thread Kevin Claver
Thanks for the quick reply! I zipped the tomcat install and deployed it to my Win 7 machine where it works without issue. When the custom error servlet fails to display, I get the stock tomcat http 500 error page. If I look at the access log, I see the 500 error: 192.168.xxx.xxx - - [02/Jun

Re: error-page for http 500 error code does not work

2011-06-03 Thread Pid
On 02/06/2011 21:45, Kevin Claver wrote: > Two things I would like to note: > > 1. When I invoke the Java HMAExceptionHandlerServlet configured to be used > in the error-page block in the application specific web.xml directly from the > URL in the browser, it works. > > 2

error-page for http 500 error code does not work

2011-06-02 Thread Kevin Claver
ut never a solution. My Tomcat version: Apache Tomcat 5.5.33 (I've also tried 5.5.27 and 6.0.32) running on: Fedora 2.6.27.5-117.fc10.x86_64 Two things I would like to note: 1.  When I invoke the Java HMAExceptionHandlerServlet configured to be used in the error-page block in the appli

  1   2   3   4   >