https server behind apache

2011-07-18 Thread AngeloChen
Hi, I set up a virtual host for ssl in apache, www.sample.com, it uses mod_proxy to redirect to a tomcat server: ProxyPass / https://localhost:8443/ ProxyPassReverse / https://localhost:8443/ ProxyPreserveHost on SSLEngine on SSLProxyEngine on SSLCertificateFile /etc/httpd/sample.crt

Re: https server behind apache

2011-07-18 Thread André Warnier
AngeloChen wrote: Hi, I set up a virtual host for ssl in apache, We will assume that you know what you are doing, but just as a reminder : HTTPS and VirtualHosts are not really compatible. You can make it work, but only with one name-based VirtualHost. If you are not sure or do not

ssl and host name not match

2011-07-18 Thread AngeloChen
Hi, I got a virtual host: Host name=www.sample.comappBase=sampleapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliassample.com/Alias ... for some reason, the jks in the tomcat is for sample.com,

Init HTTP session during realm authentication stage

2011-07-18 Thread Chema
Hi all: I'm using realm tool for user authentication on Tomcat 7 I've made a custom realm overriding authenticate() method of DataSourceRealm class. And all works fine. But I would like to initialize HTTP session in this stage with user data. My custom authenticate() method queries user data

Re: Init HTTP session during realm authentication stage

2011-07-18 Thread chris derham
But I would like to initialize HTTP session in this stage with user data. My custom authenticate() method queries user data to check if exists or not , and I wouldn't like to have to call another service to perform the same query. Couldn't you just implement HttpSessionListener? Chris

Re: Init HTTP session during realm authentication stage

2011-07-18 Thread Chema
2011/7/18 chris derham ch...@derham.me.uk: Couldn't you just implement HttpSessionListener? Chris Yes, could be useful :-) Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands,

Re: ssl and host name not match

2011-07-18 Thread André Warnier
AngeloChen wrote: Hi, I got a virtual host: Host name=www.sample.comappBase=sampleapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliassample.com/Alias ... for some reason, the jks in the tomcat is

Re: ssl and host name not match

2011-07-18 Thread AngeloChen
i opted for #3 and it works, thanks. awarnier wrote: AngeloChen wrote: Hi, I got a virtual host: Host name=www.sample.comappBase=sampleapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false

Re: Init HTTP session during realm authentication stage

2011-07-18 Thread Chema
2011/7/18 Chema demablo...@gmail.com Yes, could be useful  :-) Thanks I guess it's not so useful than I thought :-/ The reason is that HttpSessionListener.sessionCreated method is invoked always when Tomcat server receives the first petition. Session is not created by realm code when user

Re: RedHat and mod_jk

2011-07-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/16/2011 12:50 AM, Mark Eggers wrote: I've been successful in the past in getting permission to build critical components locally. I've also been in environments where this was strictly forbidden, even at the expense of not meeting

Re: [JSP] List directory content within a war-file

2011-07-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 DBD, On 7/16/2011 10:46 AM, Dark Before Dawn wrote: Since I have no exposed filesystem getRealPath will return null. So I tried to use getResourceAsStream wich works fine for files but not for directories. Are you sure you want to do this? My

Re: https server behind apache

2011-07-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Angelo, On 7/18/2011 4:55 AM, AngeloChen wrote: I set up a virtual host for ssl in apache, www.sample.com, it uses mod_proxy to redirect to a tomcat server: ProxyPass / https://localhost:8443/ ProxyPassReverse / https://localhost:8443/

Re: Init HTTP session during realm authentication stage

2011-07-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 7/18/2011 9:16 AM, Chema wrote: Now I'm trying to use filters. When realm code validates an user , redirect to protected resource. If I can filter this redirection and load user data into session, I think that could works This is how

Re: RedHat and mod_jk

2011-07-18 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/16/2011 12:50 AM, Mark Eggers wrote: I've been successful in the past in getting permission to build critical components locally. I've also been in environments where this was strictly forbidden, even at the

RE: RedHat and mod_jk

2011-07-18 Thread Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2
FYI... I got the S.A. to compile Apache, and then to compile mod_jk. It works, just like you guys said that it would. Thanks for ALL of your help! :-) JL -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, July 18, 2011 11:33 AM To: Tomcat Users List

apache and tomcat gets hang

2011-07-18 Thread 12345vb
below problem is seen in mod_jk.log file and after that my apache stop taking calls.the client gives error java.net.SocketTimeoutException: Read timed out. Added connection_timeout in server.xml for AJP13 , and no extra other entry in workers.properties. workers.properties

Re: RedHat and mod_jk

2011-07-18 Thread Mark Eggers
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Monday, July 18, 2011 8:33 AM Subject: Re: RedHat and mod_jk Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/16/2011

APR connector pollTime defaults are strange in tomcat6/7

2011-07-18 Thread Darius D.
From documentation: TC6: Duration of a poll call. Lowering this value will slightly decrease latency of connections being kept alive in some cases, but will use more CPU as more poll calls are being made. The default value is 2000 (5ms). TC7: Duration of a poll call in microseconds. Lowering

Error dialog with the word environment misspelled as envionment

2011-07-18 Thread Eric Hawkes
Hi, We are attempting to upgrade our product from using tomcat 6.0.29 to 6.0.32 (and also upgrade to the latest patch of Java 6). This process has been rocky, and when I installed the latest version of our product on windows, the tomcat service would not start, and I saw an error dialog

Running Tomcat on a webserver that is on a workgroup

2011-07-18 Thread Leo Donahue - PLANDEVX
I've been informed that our web server is going to be disjoined from the domain and placed on a workgroup. Is this a trend? I don't understand how Tomcat will be able to access resources from our domain, and vice versa, unless I'm running Tomcat as a local account, and that same local account

Re: Running Tomcat on a webserver that is on a workgroup

2011-07-18 Thread André Warnier
Leo Donahue - PLANDEVX wrote: I've been informed that our web server is going to be disjoined from the domain and placed on a workgroup. Is this a trend? There is probably more to it than that. Perhaps your webserver is being moved to some demilitarised zone (DMZ) behind some kind of

Re: Error dialog with the word environment misspelled as envionment

2011-07-18 Thread André Warnier
Eric Hawkes wrote: Hi, We are attempting to upgrade our product from using tomcat 6.0.29 to 6.0.32 (and also upgrade to the latest patch of Java 6). This process has been rocky, and when I installed the latest version of our product on windows, the tomcat service would not start, and I saw

RE: Running Tomcat on a webserver that is on a workgroup

2011-07-18 Thread Leo Donahue - PLANDEVX
André, -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Running Tomcat on a webserver that is on a workgroup There is probably more to it than that. All they are going to do is join it to a workgroup. I don't understand how Tomcat will be able to access

RE: Error dialog with the word environment misspelled as envionment

2011-07-18 Thread Eric Hawkes
Hi, I am running tomcat as a windows service. The service starts automatically after the machine is rebooted. The Path to executable in the tomcat service properties dialog is C:\Program Files (x86)\SonicWallES\Apache Software Foundation\Tomcat 6.0\bin\tomcat6.exe //RS//Tomcat6 It is