RE: Tomcat LoadBalancing

2010-10-15 Thread Deepak Pal
Hello, My organisatin is also planning to use NginX web server by replacing apache2 web server in this configuration as a front end Load balancer and then provide load to tomcat. will it work or we should go with apache. Deepak

lock session in distributed environment

2010-10-15 Thread Roman Makurin
Hi All! I have an app which rely on session locking and its key point here. Everything work on single tomcat instance, but its completly broken in distributed env. So i want to know is there any way to get my app working without complete redesing? I need lock all incoming requests untill

Re: lock session in distributed environment

2010-10-15 Thread André Warnier
Roman Makurin wrote: Hi All! I have an app which rely on session locking and its key point here. Everything work on single tomcat instance, but its completly broken in distributed env. So i want to know is there any way to get my app working without complete redesing? I need lock all incoming

Re: lock session in distributed environment

2010-10-15 Thread Ronald Klop
Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin dro...@gmail.com: Hi All! I have an app which rely on session locking and its key point here. Everything work on single tomcat instance, but its completly broken in distributed env. So i want to know is there any way to get my app

Re: lock session in distributed environment

2010-10-15 Thread Roman Makurin
On Fri, Oct 15, 2010 at 12:34:10PM +0200, Ronald Klop wrote: Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin dro...@gmail.com: Hi All! I have an app which rely on session locking and its key point here. Everything work on single tomcat instance, but its completly broken in

Re: lock session in distributed environment

2010-10-15 Thread Ronald Klop
Op vrijdag, 15 oktober 2010 13:00 schreef Roman Makurin dro...@gmail.com: On Fri, Oct 15, 2010 at 12:34:10PM +0200, Ronald Klop wrote: Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin dro...@gmail.com: Hi All! I have an app which rely on session locking and its key point

RE: Starting/Stopping Tomcat from Java program

2010-10-15 Thread dB .
Since the question is how to do this from Java, don't go shelling out net start/stop on Windows :) Use JNA (http://jna.dev.java.net) , someone just recently committed complete support for Windows services. Stopping a service looks like this: W32ServiceManager serviceManager = new

RE: Kerberos authentication

2010-10-15 Thread dB .
Jump :) Waffle is windows-only and it seems like this is a Solaris implementation. I have some good news though. Someone just uploaded a big patch for a windows authentication provider that uses JCIFs (which does Kerberos and more), which works on top of Samba on *nix. dB. @ dblock.org

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver, On 10/15/2010 1:40 AM, Oliver Siegmar wrote: Am Thursday 14 October 2010 schrieb Christopher Schultz: So I'm surprised that Oliver is getting that weird output. I wrote in my initial mail to this list I have an enum that has an

JSESSIONID Cookie handle customizing

2010-10-15 Thread Juliano Daloia de Carvalho
Hi Folks! I want to put some information on the JSESSIONID that tomcat generates. I'm using aspect programming so I don´t need to change the tomcat code itself. The thing is that I found many points where tomcat handle this information, I checked and notice that the head parser is

Re: Tomcat LoadBalancing

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Deepak, On 10/15/2010 2:36 AM, Deepak Pal wrote: My organization is also planning to use NginX web server by replacing apache2 web server I'm always nervous about running pre-1.0 things in production. Exception maybe OpenSSL :) in this

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Oliver Siegmar
Chris, On Friday 15 October 2010 16:11:29 Christopher Schultz wrote: not. Sorry for the confusion. So this is a simplified example for my enum: You're right: that was stupid of me. I had forgotten your toString method. Uh... why override the toString method like that? Well, as written in

Re: Tomcat LoadBalancing

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 10/15/2010 12:10 AM, Caldarale, Charles R wrote: From: Deepak Pal [mailto:deepak@orkash.com] Subject: Re: Tomcat LoadBalancing Should I continue with this configuration or make some changes to it. Since you're already

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver, On 10/15/2010 10:19 AM, Oliver Siegmar wrote: Chris, On Friday 15 October 2010 16:11:29 Christopher Schultz wrote: not. Sorry for the confusion. So this is a simplified example for my enum: You're right: that was stupid of me. I had

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Pid
On 15/10/2010 15:22, Christopher Schultz wrote: Oliver, On 10/15/2010 10:19 AM, Oliver Siegmar wrote: Chris, On Friday 15 October 2010 16:11:29 Christopher Schultz wrote: not. Sorry for the confusion. So this is a simplified example for my enum: You're right: that was stupid of me. I had

Re: JSESSIONID Cookie handle customizing

2010-10-15 Thread Pid
On 15/10/2010 15:15, Juliano Daloia de Carvalho wrote: Hi Folks! I want to put some information on the JSESSIONID that tomcat generates. I'm using aspect programming so I don´t need to change the tomcat code itself. What information? The thing is that I found many points

What is the lifecycle of the apache tribes channel?

2010-10-15 Thread Michael Knümann
Hi, I'm using apache tribes for messaging between nodes within a cluster. My implementation bases on the quickstart example that is part of the related documentation. At the moment there is Context Listener that starts the communication like this: myChannel = new GroupChannel();

Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Juliano Daloia de Carvalho
I'll inject code using an agent. The thing is that I need to know for sure the message entering point on Tomcat, and the leaving point also, so I can be able to sniff if the clients message has the Cookie info with JSESSIONID= or not. and before sending to check if tomcat sent set-cookie on

Re: What is the lifecycle of the apache tribes channel?

2010-10-15 Thread Pid
On 15/10/2010 16:45, Michael Knümann wrote: Hi, I'm using apache tribes for messaging between nodes within a cluster. My implementation bases on the quickstart example that is part of the related documentation. At the moment there is Context Listener that starts the communication like

Re: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Pid
On 15/10/2010 17:02, Juliano Daloia de Carvalho wrote: I'll inject code using an agent. The thing is that I need to know for sure the message entering point on Tomcat, and the leaving point also, so I can be able to sniff if the clients message has the Cookie info with JSESSIONID= or

Res: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Juliano Daloia de Carvalho
I need to change the value of the sessionID. If I let this to be done on the servlet, tomcat won't be able to identify the real session, and will send a redirect to login page. - Mensagem original De: Pid p...@pidster.com Para: Tomcat Users List users@tomcat.apache.org Enviadas:

RE: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Caldarale, Charles R
From: Juliano Daloia de Carvalho [mailto:judac2...@yahoo.com.br] Subject: Res: Res: JSESSIONID Cookie handle customizing I need to change the value of the sessionID. Why? Using a separate parameter or cookie to hold your specific additional information would seem to be a much more workable

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Oliver Siegmar
Hello, now I tried with jstl-api-1.2.jar and jstl-impl-1.2.jar downloaded from https://jstl.dev.java.net/download.html - same result. Am Friday 15 October 2010 schrieb Christopher Schultz: Uh... why override the toString method like that? Well, as written in java.lang.Enum: An enum

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Oliver Siegmar
Pid, Am Friday 15 October 2010 schrieb Pid: No, because that would call a method getName() which doesn't exist - the method is named name(). c:out value=${myEnumValue.getName()}/ I don't think that'll work in 6.0. That's right. Or, just consistently use EL, since that actually

Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-15 Thread Wesley Acheson
+1 I'd also like to see the results. It may be what I need to persuade my bosses about something. On Thu, Oct 14, 2010 at 11:03 PM, Pid p...@pidster.com wrote: On 14/10/2010 21:39, János Löbb wrote: On Oct 14, 2010, at 3:00 PM, Christopher Schultz wrote: All, Is there any interest in my

Res: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Juliano Daloia de Carvalho
Chuck, I can't say explicit why I need to use this info on the session. but is related with security issues. and you are right, is much more plausible to make this as you said, but I can't afford to do that. Tks -- Universidade

RE: Inconsistent output of Java 5 enums

2010-10-15 Thread Maximilian Stocker
Or, just consistently use EL, since that actually works as you expect. +1 'c:out' seems surplus. And how do you escape XML characters to entity codes using pure EL? This seems a valid reason except that is this a problem for your enum? If it really is a problem then did you try and create

Re: Res: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Mark Thomas
On 15/10/2010 17:47, Juliano Daloia de Carvalho wrote: Chuck, I can't say explicit why I need to use this info on the session. but is related with security issues. and you are right, is much more plausible to make this as you said, but I can't afford to do that. If you need to control

SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Robert La Ferla
When users connect to our Tomcat 6.0.29 using Google Chrome, they get this warning when they click the security icon: The connection had to be retried using SSL 3.0. This typically means that the server is using very old software and may have other security issues. Tomcat is configured

RE: SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Maximilian Stocker
There are some issues with Chrome regarding SSL, essentially Chrome is more restrictive than other browsers and will get upset with proxied connections etc. For example http://www.google.com/support/forum/p/Chrome/thread?tid=6cbb881fc85406f4hl=en Especially see reply #2 there. Are you sure

Re: SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Mark Thomas
On 15/10/2010 17:58, Robert La Ferla wrote: When users connect to our Tomcat 6.0.29 using Google Chrome, they get this warning when they click the security icon: The connection had to be retried using SSL 3.0. This typically means that the server is using very old software and may have

Re: SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Robert La Ferla
On 10/15/2010 1:12 PM, Maximilian Stocker wrote: There are some issues with Chrome regarding SSL, essentially Chrome is more restrictive than other browsers and will get upset with proxied connections etc. For example

Re: SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Robert La Ferla
On 10/15/2010 1:14 PM, Mark Thomas wrote: Those two statements are not consistent. Your connector config is for JSSE, not OpenSSL. Tomcat uses TLS by default[1]. See [2] for other options for sslProtocol We are indeed using JSSE. The link for #2 just pointed at the general Java docs. What

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Oliver Siegmar
Hello, Am Friday 15 October 2010 schrieb Maximilian Stocker: Or, just consistently use EL, since that actually works as you expect. +1 'c:out' seems surplus. And how do you escape XML characters to entity codes using pure EL? This seems a valid reason except that is this a problem

RE: SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Maximilian Stocker
Wrong reply. The second reply is from a Google employee and there links there to another thread on the subject. If you are only having this problem with chrome then it may well be related to this. Clearing the cache etc won't help if the clients connections are being proxied, maybe. If you

Re: SSL/TLS, Tomcat 6.0.29 and Chrome: The connection had to be retried using SSL 3.0.

2010-10-15 Thread Mark Thomas
On 15/10/2010 18:26, Robert La Ferla wrote: On 10/15/2010 1:14 PM, Mark Thomas wrote: Those two statements are not consistent. Your connector config is for JSSE, not OpenSSL. Tomcat uses TLS by default[1]. See [2] for other options for sslProtocol We are indeed using JSSE. The link for

Res: Res: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Juliano Daloia de Carvalho
Mark, I do not want to change how tomcat handle the sessionId. I want to create one little class that handle on the server side the cookie information that can come on the header, make a preprocessing which will create one another information that I want to put on the attributes of the request.

RE: Inconsistent output of Java 5 enums

2010-10-15 Thread Maximilian Stocker
I did some testing myself just now with a simple enum and I think this is a Tomcat bug somewhere. Whether the old behaviour was right or wrong vs the new I don't know. I also think that your enum is screwy or doing something different then you think. At any rate I created a simple enum public

RE: Res: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Caldarale, Charles R
From: Juliano Daloia de Carvalho [mailto:judac2...@yahoo.com.br] Subject: Res: Res: Res: JSESSIONID Cookie handle customizing I want to create one little class that handle on the server side the cookie information that can come on the header, make a preprocessing which will create one

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver, On 10/15/2010 1:28 PM, Oliver Siegmar wrote: The enum is part of a 3rd party lib. And of course, there are several workarounds available, but I want to understand what is happening here and clarify if it's a bug. Just for the record,

Re: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Mark Thomas
On 15/10/2010 19:44, Christopher Schultz wrote: This can be done with a Valve, but I'm not exactly sure how to insert a Valve before the authentication valve, which is (I think) what you'd have to do. Option 1. Auth Valves are on the Context so define Your valve on the Host or Engine. Option

Re: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 10/15/2010 2:50 PM, Mark Thomas wrote: On 15/10/2010 19:44, Christopher Schultz wrote: This can be done with a Valve, but I'm not exactly sure how to insert a Valve before the authentication valve, which is (I think) what you'd have to

Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-15 Thread msacks
+1 On Oct 15, 2010 9:46 AM, Wesley Acheson wesley.ache...@gmail.com wrote: +1 I'd also like to see the results. It may be what I need to persuade my bosses about something. On Thu, Oct 14, 2010 at 11:03 PM, Pid p...@pidster.com wrote: On 14/10/2010 21:39, János Löbb wrote: On Oct 14, 2010,

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Oliver Siegmar
Am Friday 15 October 2010 schrieb Maximilian Stocker: On tomcat 5.5. I get #1 = A is for Apple #2 = A is for Apple On tomcat 6 I get #1 = APPLE #2 = A is for Apple Which is obviously not the same, and surprised me, but it seems if I understand this thread that it is the opposite of

RE: Inconsistent output of Java 5 enums

2010-10-15 Thread Maximilian Stocker
Okay. Then while I think it is a bug in tomcat (but it might be tomcat 5 that has the bug because I still don't 100% understand what it *should* do) I am not sure what the problem is. Do you want the toString value or the name() value? If it's the name value then there is no danger in using it

Re: ApacheCon2010NA Meetup / Connector Performance

2010-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Sounds like it's a date. I'll bring some hard-copy materials for circulation. I'll also post everything online and post a link to the list. I'm not planning any formal presentation or anything, but I'll obviously be happy to answer any

Res: Res: JSESSIONID Cookie handle customizing

2010-10-15 Thread Juliano Daloia de Carvalho
Mark thank you! do you know which is the first tomcat class that receives the client request? do you know which is the last tomcat class that is used before send the response to the client? tks. Juliano - Mensagem original De: Christopher Schultz ch...@christopherschultz.net

Re: Inconsistent output of Java 5 enums

2010-10-15 Thread Oliver Siegmar
Am Saturday 16 October 2010 schrieb Maximilian Stocker: Okay. Then while I think it is a bug in tomcat (but it might be tomcat 5 that has the bug because I still don't 100% understand what it *should* do) I am not sure what the problem is. Do you want the toString value or the name() value?