[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 st

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 w

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. > > Stra

RE: Tomcat Valve

2018-08-27 Thread Jäkel , Guido
Guido >-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 v

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

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 sen

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 how

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, 2016 at 8:21 PM, Christopher

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 applications

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 single-sign-on valve for Tomcat.

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 t

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

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

2015-05-28 Thread Violeta Georgieva
Hi, 2015-05-28 22:44 GMT+03:00 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 hacki

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 t

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
oving on to more advanced 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

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

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

2015-05-18 Thread Kim Ming Yap
7;s a JAAS module but without access to those basic objects 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 erro

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
i can set? 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

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
e re control flow vs data flow. > How did the JSP error page displayed when on its way back to the client > browser .. i did a break point stop at the valve. See point above re control flow vs data flow. Mark > > Hm .. > > >> Date: Mon, 18 May 2015 11:14:19 +0100 >>

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

2015-05-18 Thread Kim Ming Yap
lve. 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 wrote: > > Hi

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 th

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 fai

Re: Tomcat Valve Custom args

2013-04-01 Thread Konstantin Kolinko
2013/4/1 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 c

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 Tomca

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 henc

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 fi

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

Tomcat Valve Custom args

2013-03-31 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: 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

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 > >override="true" While you're fixing your valve code, also get rid of the declaration - that hasn't been used since Tomcat 4. The default context

Re: FW: Reg: Tomcat valve

2009-03-17 Thread Pid
plication Filter chain 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: Tomc

RE: FW: Reg: Tomcat valve

2009-03-17 Thread shenaz.assu
[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 wrote: > Hi all, > > Resending the mail with formatted xml tags. > > Regards > Shenaz > > > From: Shenaz M

Re: FW: Reg: Tomcat valve

2009-03-17 Thread Pid
x27;users@tomcat.apache.org'; 'users-h...@tomcat.apache.org' > 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, > "RenewSession

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

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, "RenewSession.java" extending ValveBase.java and I declared the valve in the server.xml as follows. [tt] &lt;Host name="localhost" autoD

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) corr

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