[OT] Re: Tomcat Valve

2018-08-28 Thread logo
Nice one Christopher. Didn't know that yet. Will bookmark. Am 28.08.2018 05:13, schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 8/27/18 19:21, Christopher Schultz wrote: Lance, On 8/24/18 11:52, Campbell, Lance wrote: Tomcat 9 Use Case 1: I want to

Re: Tomcat Valve

2018-08-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 8/27/18 19:21, Christopher Schultz wrote: > Lance, > > On 8/24/18 11:52, Campbell, Lance wrote: >> Tomcat 9 Use Case 1: I want to store the last N number of URLs >> sent to Tomcat 9 application. Then if Tomcat shuts down I want >> to

Re: Tomcat Valve

2018-08-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 8/24/18 11:52, Campbell, Lance wrote: > Tomcat 9 Use Case 1: I want to store the last N number of URLs > sent to Tomcat 9 application. Then if Tomcat shuts down I want to > write out these last N number of URLs to the log file. > >

RE: Tomcat Valve

2018-08-27 Thread Jäkel , Guido
t;-Original Message- >From: Mark Thomas [mailto:ma...@apache.org] >Sent: Friday, August 24, 2018 6:44 PM >To: users@tomcat.apache.org >Subject: Re: Tomcat Valve > >On 24/08/18 17:36, Campbell, Lance wrote: >> I don't understand. How does that help a valve running kn

Re: Tomcat Valve

2018-08-24 Thread Mark Thomas
On 24/08/18 17:36, Campbell, Lance wrote: > I don't understand. How does that help a valve running know that it is > shutting down? At that point it would be too late. The point is you don't need a valve to answer your question. Just look at the last 9 entries in the access log. Mark > >

Re: Tomcat Valve

2018-08-24 Thread Campbell, Lance
I don't understand. How does that help a valve running know that it is shutting down? At that point it would be too late. On 8/24/18, 11:06 AM, "Mark Thomas" wrote: On 24/08/18 16:52, Campbell, Lance wrote: > Tomcat 9 > Use Case 1: I want to store the last N number of URLs

Re: Tomcat Valve

2018-08-24 Thread Mark Thomas
On 24/08/18 16:52, Campbell, Lance wrote: > Tomcat 9 > Use Case 1: I want to store the last N number of URLs sent to Tomcat 9 > application. Then if Tomcat shuts down I want to write out these last N > number of URLs to the log file. > > Strategy: > I figured I would use a valve to keep track

Tomcat Valve

2018-08-24 Thread Campbell, Lance
Tomcat 9 Use Case 1: I want to store the last N number of URLs sent to Tomcat 9 application. Then if Tomcat shuts down I want to write out these last N number of URLs to the log file. Strategy: I figured I would use a valve to keep track of the last N number of URLs. However I don’t know

java.io.IOException: Broken pipe within an Apache Tomcat valve

2016-04-28 Thread Chiranga Alwis
Hi, any help with regards to the following issue is highly appreciated. http://stackoverflow.com/questions/36929016/java-io-ioexception-broken-pipe-within-an-apache-tomcat-valve

Re: 'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-25 Thread Chiranga Alwis
Hi, Sorry for the late response. I did start working by sticking to the default and it seems to work. Thanks for the help. On Thu, Feb 11, 2016 at 5:16 PM, Chiranga Alwis wrote: > Hi Chris, > > I will check if it works by sticking to the default. > > On Mon, Feb 8,

Re: 'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-11 Thread Chiranga Alwis
Hi Chris, I will check if it works by sticking to the default. On Mon, Feb 8, 2016 at 8:21 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chiranga, > > On 2/7/16 2:27 AM, Chiranga Alwis wrote: > > I think OpenSAML seems to be

Re: 'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chiranga, On 2/7/16 2:27 AM, Chiranga Alwis wrote: > I think OpenSAML seems to be using > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl. I am actually > having this class within the lib folder of Tomcat. Replacing XML parsers within

Re: 'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-06 Thread Chiranga Alwis
Hi Chris, I think OpenSAML seems to be using org.apache.xerces.jaxp.DocumentBuilderFactoryImpl. I am actually having this class within the lib folder of Tomcat. On Sun, Feb 7, 2016 at 12:41 PM, Chiranga Alwis wrote: > Hi Chris, > > Yes I do. This is a SAML based

Re: 'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-06 Thread Chiranga Alwis
Hi Chris, Yes I do. This is a SAML based single-sign-on valve for Tomcat. On Sat, Feb 6, 2016 at 2:58 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chiranga, > > On 2/4/16 3:10 PM, Chiranga Alwis wrote: > > I have specified

Re: 'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chiranga, On 2/4/16 3:10 PM, Chiranga Alwis wrote: > I have specified the following issue in stackoverflow: > http://stackoverflow.com/questions/35210472/javax-xml-parsers-factoryc onfigurationerror-provider-for-class-javax-xml-parse So > you have

'javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created' for Tomcat Valve

2016-02-04 Thread Chiranga Alwis
Hi, I have specified the following issue in stackoverflow: http://stackoverflow.com/questions/35210472/javax-xml-parsers-factoryconfigurationerror-provider-for-class-javax-xml-parse Any help will be highly appreciated.

Re: Tomcat Valve doing Request.getParameter() consumes the stream

2015-05-29 Thread Violeta Georgieva
Hi, 2015-05-28 22:44 GMT+03:00 Teunissen,Peter peter.teunis...@cerner.com: (Tomcat 7) I am writing a Valve that does a getParameter on the Request. At the end of the Valve/Filter chain is a servlet that calls HttpServletRequest.getReader() returning an empty buffer (because the Valve consumed

Re: Tomcat Valve doing Request.getParameter() consumes the stream

2015-05-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Peter, On 5/28/15 3:44 PM, Teunissen,Peter wrote: (Tomcat 7) I am writing a Valve that does a getParameter on the Request. At the end of the Valve/Filter chain is a servlet that calls HttpServletRequest.getReader() returning an empty buffer

Tomcat Valve doing Request.getParameter() consumes the stream

2015-05-28 Thread Teunissen,Peter
(Tomcat 7) I am writing a Valve that does a getParameter on the Request. At the end of the Valve/Filter chain is a servlet that calls HttpServletRequest.getReader() returning an empty buffer (because the Valve consumed it). I tried hacking a wrapper for the Request together and pass that into

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's my

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

2015-05-19 Thread Christopher Schultz
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 comes to crucial point and question when comes to JAAS. I know the benefit of JAAS - a pluggable authentication and authorization module

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

2015-05-19 Thread Kim Ming Yap
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/2015 10:26 AM, Kim Ming Yap wrote: Sorry .. you can call me Kim. Yes. I know Mark suggested

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

2015-05-19 Thread David kerber
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 before response reaches back to Tomcat valve

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 to 2 when a

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

2015-05-19 Thread Kim Ming Yap
needs like TLS certificate 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

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

2015-05-19 Thread David kerber
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 displayed first before response reaches back to Tomcat valve On 5/19/2015 10:26

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/2015 15:51, David kerber wrote

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

2015-05-18 Thread Mark Thomas
point above re control flow vs data flow. Mark Hm .. Date: Mon, 18 May 2015 11:14:19 +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 17/05/2015 23:44, Kim Ming Yap

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

2015-05-18 Thread Kim Ming Yap
To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 17/05/2015 23:44, Kim Ming Yap wrote: Hi,I'm building a website using form based authentication integrating with JAAS for user based authentication. I

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

2015-05-18 Thread Mark Thomas
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 Tomcat valve On 18/05/2015 13:31, Kim Ming Yap wrote: Thanks Mark for your suggestion. I'm still

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

2015-05-18 Thread Kim Ming Yap
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 Tomcat valve On 18/05/2015 13:31, Kim Ming Yap wrote

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

2015-05-18 Thread Kim Ming Yap
? Thanks for your help. From: yapk...@hotmail.com To: users@tomcat.apache.org Subject: RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve Date: Mon, 18 May 2015 11:43:02 -0400 so who control the data flow? Does the data flow has stages just

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

2015-05-18 Thread Kim Ming Yap
? 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: Wow .. that really confuses me. I've

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

2015-05-18 Thread Christopher Schultz
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 before response reaches back to Tomcat valve On 18/05/2015 13:57, Kim Ming Yap wrote: Wow .. that really confuses me. I've studied

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

2015-05-18 Thread Kim Ming Yap
used in any web development. This is beyond mind boggling .. Any insights? Date: Mon, 18 May 2015 16:08:41 -0400 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

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

2015-05-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ming Yap, On 5/18/15 4:56 PM, Kim Ming Yap wrote: Now here's comes to crucial point and question when comes to JAAS. I know the benefit of JAAS - a pluggable authentication and authorization module. Why and in JavaEE's name have a JAAS

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

2015-05-18 Thread Kim Ming Yap
...@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, Kim Ming Yap wrote: Now here's comes to crucial point

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

2015-05-18 Thread Mark Thomas
On 17/05/2015 23:44, Kim Ming Yap wrote: Hi,I'm building a website using form based authentication integrating with JAAS for user based authentication. I don't have issue when a successful credential is authenticated. Rather I'm having difficulty understanding the flow of JAAS back to the

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

2015-05-17 Thread Kim Ming Yap
Hi,I'm building a website using form based authentication integrating with JAAS for user based authentication. I don't have issue when a successful credential is authenticated. Rather I'm having difficulty understanding the flow of JAAS back to the client should the form based authentication

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

2015-05-17 Thread Kim Ming Yap
Hi,I'm building a website using form based authentication integrating with JAAS for user based authentication. I don't have issue when a successful credential is authenticated. Rather I'm having difficulty understanding the flow of JAAS back to the client should the form based authentication

Tomcat Valve Custom args

2013-04-01 Thread N.s.Karthik
request. ] of the specific APP 2) How to get the values only once and not per request of the users [ servlet Filters do this process ] with regards KArthik -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat-Valve-Custom-args-tp4997226.html Sent from the Tomcat

Re: Tomcat Valve Custom args

2013-04-01 Thread Michael-O
Am 2013-04-01 08:25, schrieb N.s.Karthik: Hi Spec: JDK1.6 Tomcat 6.0.26 O/s nix Suse I have build a Customized Valve and have done the required settings in context.xml for specific APP and have them returned variables System.println on console ( Catalina.out) Question : 1) How to get the

Re: Tomcat Valve Custom args

2013-04-01 Thread N.s.Karthik
possibilities to fetch the variables into each of the applications from the valves ...??? with regards Karthik -- View this message in context: http://tomcat.10.n6.nabble.com/Tomcat-Valve-Custom-args-tp4997226p4997235.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: Tomcat Valve Custom args

2013-04-01 Thread Michael-O
Am 2013-04-01 14:28, schrieb N.s.Karthik: Hi Thx for the reply I know that Valves are invisible to the app.. Reason : I have created a Customized valve as a separate jar used for AAA interception of my APPS , Since I cannot configure each and every application hosted on the Tomcat with

Re: Tomcat Valve Custom args

2013-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karthik, On 4/1/13 8:28 AM, N.s.Karthik wrote: Reason : I have created a Customized valve as a separate jar used for AAA interception of my APPS , Since I cannot configure each and every application hosted on the Tomcat with filters and hence

Re: Tomcat Valve Custom args

2013-04-01 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karthik, On 4/1/13 8:28 AM, N.s.Karthik wrote: Reason : I have created a Customized valve as a separate jar used for AAA interception of my APPS , Since I cannot configure each and every application hosted on the

Re: Tomcat Valve Custom args

2013-04-01 Thread Konstantin Kolinko
2013/4/1 André Warnier a...@ice-sa.com: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karthik, On 4/1/13 8:28 AM, N.s.Karthik wrote: Reason : I have created a Customized valve as a separate jar used for AAA interception of my APPS , Since I cannot configure

Reg: Tomcat valve

2009-03-17 Thread shenaz.assu
Hi all, I'm trying to implement a custom tomcat valve. My application server is JBoss 4.0.5GA with Tomcat 5.5. I created a class, quot;RenewSession.javaquot; extending ValveBase.java and I declared the valve in the server.xml as follows. [tt] amp;lt;Host name=quot;localhostquot; autoDeploy=quot

FW: Reg: Tomcat valve

2009-03-17 Thread shenaz.assu
Hi all, Resending the mail with formatted xml tags. Regards Shenaz From: Shenaz Mohamed assu (WT01 - Telecom Equipment) Sent: Tuesday, March 17, 2009 12:49 PM To: 'users@tomcat.apache.org'; 'users-h...@tomcat.apache.org' Subject: Reg: Tomcat valve Hi all, I'm

Re: FW: Reg: Tomcat valve

2009-03-17 Thread Pid
' Subject: Reg: Tomcat valve Hi all, I'm trying to implement a custom tomcat valve. My application server is JBoss 4.0.5GA with Tomcat 5.5. I created a class, quot;RenewSession.javaquot; extending ValveBase.java and I declared the valve in the server.xml as follows. Host name

RE: FW: Reg: Tomcat valve

2009-03-17 Thread shenaz.assu
...@pidster.com] Sent: Tuesday, March 17, 2009 4:20 PM To: Tomcat Users List Subject: Re: FW: Reg: Tomcat valve shenaz.a...@wipro.com wrote: Hi all, Resending the mail with formatted xml tags. Regards Shenaz From: Shenaz Mohamed assu (WT01 - Telecom Equipment) Sent

Re: FW: Reg: Tomcat valve

2009-03-17 Thread Pid
and then to the matching Servlet. p P.S. No need to double reply, if you reply to the list, I'll get it. Regards Shenaz -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Tuesday, March 17, 2009 4:20 PM To: Tomcat Users List Subject: Re: FW: Reg: Tomcat valve shenaz.a...@wipro.com

RE: Reg: Tomcat valve

2009-03-17 Thread Caldarale, Charles R
From: shenaz.a...@wipro.com [mailto:shenaz.a...@wipro.com] Subject: FW: Reg: Tomcat valve DefaultContext cookies=true crossContext=true override=true While you're fixing your valve code, also get rid of the DefaultContext declaration - that hasn't been used since Tomcat 4

RE: FW: Reg: Tomcat valve

2009-03-17 Thread shenaz.assu
Hi P, It worked. I really appreciate your help. Thanks a lot!! Regards Shenaz -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Tuesday, March 17, 2009 4:38 PM To: Tomcat Users List Subject: Re: FW: Reg: Tomcat valve shenaz.a...@wipro.com wrote: Hi Pid, I don't have

Tomcat Valve, how to Create Pattern

2006-03-27 Thread Scott Purcell
Tomcat 5.5 OS=Win2000 I would like to change the pattern for a valve in my server.xml. The API shows when you have the element pattern for the AccessLogValve that you give it a name. So where can I define a pattern for my needs, give it a name, then use it? Does anyone have an example of that?

Re: Tomcat Valve, how to Create Pattern

2006-03-27 Thread Jon Wingfield
I may be wrong but I think there are only two predefined names: common and combined. For all others you set the pattern attribute to the required number and ordering of pattern elements as defined in the docs. From the docs: The shorthand pattern name common (which is also the default)