Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
First of all: Thanks (Christopher, Andre, Bill and everybody) ! The complete solution is compound of 3 parts: 1. The Valve to process &jsessionid (just a piece of the source code) if (!request.isRequestedSessionIdFromCookie()) { String jsessionid = request.getPara

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Bill Barker
"Daniel Henrique Alves Lima" wrote in message news:1246314288.10803.6.ca...@magnaopus.no-ip.biz... > Yes ! > > Now imagine my frustration with ooffice escaping a ';' :-( > > Browser, wget and other applications seems to work ok with URL encoded > jsessionid. > The custom valve isn't that compli

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
On Tue, 2009-06-30 at 00:52 +0200, André Warnier wrote: Hi, Andre ! > 11) the filter captures the html output, and writes it to a local > temporary file. Then it calls OOo /on this file/, and asks for a PDF > version. Then it picks up the PDF version, and returns this as a > response, instea

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
On Tue, 2009-06-30 at 01:02 +0200, André Warnier wrote: > Daniel Henrique Alves Lima wrote: > > > > 1. Use a Java Web Proxy to convert requests and responses between > > ooffice and Tomcat; > Or use a httpd front-end.. > Yes. But i don't need this request-response magic all the time. I just

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
On Tue, 2009-06-30 at 00:52 +0200, André Warnier wrote: Hi, Andre ! > 11) the filter captures the html output, and writes it to a local > temporary file. Then it calls OOo /on this file/, and asks for a PDF > version. Then it picks up the PDF version, and returns this as a > response, inste

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread André Warnier
Daniel Henrique Alves Lima wrote: I've some few alternatives: 1. Use a Java Web Proxy to convert requests and responses between ooffice and Tomcat; Or use a httpd front-end.. 2. Use a Java crawler (spider/mirror tool) to make the first request, generate local files and

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread André Warnier
Daniel Henrique Alves Lima wrote: Yes ! Now imagine my frustration with ooffice escaping a ';' :-( Browser, wget and other applications seems to work ok with URL encoded jsessionid. On Tue, 2009-06-30 at 00:00 +0200, André Warnier wrote: Daniel Henrique Alves Lima wrote: ... Hi. If I underst

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
I've some few alternatives: 1. Use a Java Web Proxy to convert requests and responses between ooffice and Tomcat; 2. Use a Java crawler (spider/mirror tool) to make the first request, generate local files and then call oo. I was just wondering if was easier to modi

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
Yes ! Now imagine my frustration with ooffice escaping a ';' :-( Browser, wget and other applications seems to work ok with URL encoded jsessionid. On Tue, 2009-06-30 at 00:00 +0200, André Warnier wrote: > Daniel Henrique Alves Lima wrote: > ... > Hi. > If I understand what you are trying to do

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread André Warnier
Daniel Henrique Alves Lima wrote: ... Hi. If I understand what you are trying to do : 1) a client enters your application, authenticates, navigates, and displays a result html page. 2) on this page, is a button that says "get this page as PDF" 3) the client clicks on that button, and is supposed

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
On Mon, 2009-06-29 at 16:15 -0400, Christopher Schultz wrote: Hi, Chris ! > > Are you trying to change the URLs that are emitted in the HTML your > application generates? Yes and no. Declarative security will only work if tomcat recognizes jsession id (either coming encoded in requeste

Re: Tomcat crashes

2009-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kam, On 6/29/2009 2:39 PM, kam tak wrote: > I am using tomcat 6 and the server crashes all of a sudden creating a core > dump file. Core dump == JVM crash. This is unlikely to be Tomcat's fault. When the JVM dumps core, it should leave-behind a crash

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, On 6/29/2009 3:16 PM, Daniel Henrique Alves Lima wrote: > Hi, everybody. First of all: I'm sorry for my poor English. Your English is quite good! > Is it possible to change url rewriting schema to use a different path > separator

Re: How do I support a login form embedded in templates

2009-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, On 6/29/2009 1:58 PM, Steve B. wrote: > I understand that Tomcat's FORM authorization setup expects me to secure > URL's and then let Tomcat invoke the login form before proceeding to > these URL's when requested. > > However, I have a site fo

Re: Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Ken Bowen
You can use http://tuckey.org/urlrewrite/ to do your rewriting. Lots of people on the list recommend it. On Jun 29, 2009, at 3:16 PM, Daniel Henrique Alves Lima wrote: Hi, everybody. First of all: I'm sorry for my poor English. Is it possible to change

Re: Tomcat crashes

2009-06-29 Thread André Warnier
kam tak wrote: Hi, I am using tomcat 6 and the server crashes all of a sudden creating a core dump file. I have no clue why this is happening. Can you please suggest on what all details I need to provide so that some one can help resolve the issue. On which platform ? Which precise version of

Re: owned by root

2009-06-29 Thread André Warnier
Hassan Schroeder wrote: On Mon, Jun 29, 2009 at 8:55 AM, Melanie Pfefer wrote: Any idea what makes web applications owned by root even though tomcat runs as a non-root user? Uh, they were installed by root? :-) Uh, Uh. What do you mean by "web applications owned by root" anyway ? do you

Changing url rewriting behaviour (';jsessionid')

2009-06-29 Thread Daniel Henrique Alves Lima
Hi, everybody. First of all: I'm sorry for my poor English. Is it possible to change url rewriting schema to use a different path separator (instead of ';') or even to use a request parameter (instead of a path append) ? The problem: - I'm using OpenOffice API to c

Tomcat crashes

2009-06-29 Thread kam tak
Hi, I am using tomcat 6 and the server crashes all of a sudden creating a core dump file. I have no clue why this is happening. Can you please suggest on what all details I need to provide so that some one can help resolve the issue. Thanks Kam

How do I support a login form embedded in templates

2009-06-29 Thread Steve B.
I suspect this question has been answered before - unfortunately, I cannot find the key words to find my answer(s) in archives, etc. I understand that Tomcat's FORM authorization setup expects me to secure URL's and then let Tomcat invoke the login form before proceeding to these URL's when re

Re: owned by root

2009-06-29 Thread Hassan Schroeder
On Mon, Jun 29, 2009 at 8:55 AM, Melanie Pfefer wrote: > Any idea what makes web applications owned by root even though tomcat runs as > a non-root user? Uh, they were installed by root? :-) -- Hassan Schroeder hassan.schroe...@gmail.com -

Re: owned by root

2009-06-29 Thread David Smith
Melanie Pfefer wrote: > Hi > > Any idea what makes web applications owned by root even though tomcat runs as > a non-root user? (I have mod_jk installed and apache running as root) > > Thank you, > > > I have two thoughts: 1. You installed the webapp as root which caused the OS to write the f

RE: Seeking authoritative answer re using Log4J with v6

2009-06-29 Thread Mike Frohme
This also worked correctly (as documented) for me with 6.0.20 - with the build of extras and log4j off the SVN trunk (patches for certain property handling due out in 1.2.16) -- Mike -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, June 26, 2009 4:01 PM To:

owned by root

2009-06-29 Thread Melanie Pfefer
Hi Any idea what makes web applications owned by root even though tomcat runs as a non-root user? (I have mod_jk installed and apache running as root) Thank you, - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or

RE: splitting thread pool

2009-06-29 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: splitting thread pool > > The only way I know of to do this is with separate connectors: One thing that hasn't been discussed is whether HTTP keep-alives are involved. If so, then using the NIO connector would free

Re: splitting thread pool

2009-06-29 Thread prashant sharma
Thanks for a detailed response Chris! I am quite new to tomcat...It would be really helpful if you could give some reference links to the things you are talking about in 1 and 3 below? Thanks! Prashant From: Christopher Schultz To: Tomcat Users List Sent: M

Re: splitting thread pool

2009-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prashant, On 6/29/2009 1:12 AM, prashant sharma wrote: > Is there any way to configure my web application such that I have a > separate quota of threads for webpage access and a separate quota for > other types of accesses like webservice requests? T

Re: Session timeout on shared session between two webapps

2009-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tamar, On 6/28/2009 11:10 AM, Tamar Furman (tfurman) wrote: > The problem starts when the second webapp is opened as well. In this > case, on timeout the session does get destroyed but the new session that > is created on a new http request still hold

Re: Tomcat and Salesforce Issue

2009-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 6/28/2009 1:35 PM, Martin Gainty wrote: > op mentioned the SF webservice becomes unavailable at 'weird' times > (more than likely the SF webserver is going offline for backup) > > if you can post the SF log we'll take a look and try to fig

Re: splitting thread pool

2009-06-29 Thread Ronald Klop
If you have maxThreads=100 and you create a filter which blocks A if threadRunningA=10 and blocks B if threadsRunningB=90 than you can tune it the way you want it to be without seeing TooManyThreads errors from Tomcat. Or make it 9 vs. 89 to be safe. Still it doesn't solve you real problem abo

RE: Seeking authoritative answer re using Log4J with v6

2009-06-29 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Seeking authoritative answer re using Log4J with v6 > > > Are you sure you followed all of the steps on the logging page with a > > clean Tomcat install? > > I will try again from scratch, and report back. Did a clean install of Win 7, JDK 6u14, ant 1.

RE: NoClassDefFoundError

2009-06-29 Thread Caldarale, Charles R
> From: chenjh [mailto:che...@thinker.com.cn] > Subject: NoClassDefFoundError > > I had placed jfreechart.jar and jcommon.jar into [tomcat]/common/lib, > but after running for some time, the producing image page fail with > NoClassDefFoundError. Make sure you do not have other copies of jfreechar

Re: splitting thread pool

2009-06-29 Thread prashant sharma
Thanks for your response Ronald! Won't a filter be a part of the thread pool? I mean every incoming request would create a new thread and filter would be invoked on this new thread ...right? The solution that I am looking for is to partition the thread pool into 2 parts One that serves the we

Re: splitting thread pool

2009-06-29 Thread Ronald Klop
You can create a filter or run on separate Tomcat instances. NB: You are not solving the cause, but the effect. You don't have enough threads or cpu-power to handle the total load. Ronald. Op maandag, 29 juni 2009 07:12 schreef prashant sharma :> Hi, I have the following attributes in the

Re: REMOTE_USER with Apache 2.2.9 (Debian) + Tomcat 6.0.18 + mod_auth_kerb

2009-06-29 Thread André Warnier
Maciej Matecki wrote: On Mon, Jun 29, 2009 at 1:28 AM, André Warnier wrote: Maciej Matecki wrote: Actually I've got much more bigger problem I can't get compiled module for kerberos with Apache on Windows :( Can I ask again : why do you need to authenticate /under Apache/ with Kerberos ? Is