Re: SSL connect to APR fails - bad version

2011-11-09 Thread André Warnier
Kobe, nothing is wrong. It was just my lack of familiarity with the SSL client that was the cause of my puzzlement. Konstantin's answer already cleared that up for me. I was just wondering what you were trying to do, connecting to Tomcat with a command-line client, and you did not provide a

Re: how to connect to datasource

2011-11-09 Thread spike@12
No. I am using tomcat 6.0, java 6.0, linux system. Pid * wrote: On 09/11/2011 07:00, spike@12 wrote: Hi, I have setup my application using with tomcat and it is working fine. But when I have restarted my DB machine, my application is not working. If I have restart my tomcat server

Session time out never takes place with ajax

2011-11-09 Thread Sharon Prober (sprober)
Hi, This is my first post here so wish me luck J My question is as follow: I have a web based application running on tomcat 6.0.29 On my main page there is a polling ajax call every 5 seconds. Clearly this revalidates the session and by that renders the session timeout feature unusable

Re: how to connect to datasource

2011-11-09 Thread chris derham
may I know, how to connect to datasource automatically if my DB machine is restarted?? Is it having any specific parameter to connect datasource automatically?? How does the existing app connect to the database? Can you show the code please - remove any sensitive passwords Thanks

Re: making security constraints configureable

2011-11-09 Thread Leon Rosenberg
Hello Terence, the System property would be indeed the easiest way, unfortunately I wouldn't know that the descriptive security in web.xml supports scripting with environment variables. If it does, it would solve all the problems ;-) regards Leon 2011/11/8 Terence M. Bandoian tere...@tmbsw.com:

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-09 Thread markt
Matthew Tyson matthewcarlty...@gmail.com wrote: I guess what I'm asking is if I just start using the Servlet 3.0 support for suspending requests out of the box, will it be a thread blocking implementation I'm using? That depends what you mean by thread blocking. Once startAsync has been called

Re: making security constraints configureable

2011-11-09 Thread Leon Rosenberg
Hello Andre, sorry for the late response. Putting a httpd or lightttpd or nginx in front of our staging tomcat came to our mind too. The problem with this approach is however, that it reduces the idea of having a staging environment to absurdity, at least in technical sense, because its not

SSL for modjk and tomcat

2011-11-09 Thread Harsimranjit singh Kler
Hi I am using httpd 2.2.17 modjk 1.2.30 tomcat 6.0.I want to enable SSL in my setup. i Am able to successfully on httpd.but there is lot of confusion how to enable between httpd to AJP AJP to tomcat. There is not specific documentation also. 1) what are step for modjk configurations? 2)Is AJP

Re: making security constraints configureable

2011-11-09 Thread André Warnier
Leon Rosenberg wrote: Hello Andre, sorry for the late response. Putting a httpd or lightttpd or nginx in front of our staging tomcat came to our mind too. The problem with this approach is however, that it reduces the idea of having a staging environment to absurdity, at least in technical

Re: SSL for modjk and tomcat

2011-11-09 Thread André Warnier
Harsimranjit singh Kler wrote: Hi I am using httpd 2.2.17 modjk 1.2.30 tomcat 6.0.I want to enable SSL in my setup. i Am able to successfully on httpd.but there is lot of confusion how to enable between httpd to AJP AJP to tomcat. There is no confusion. You can't do that. There is no SSL

Re: making security constraints configureable

2011-11-09 Thread André Warnier
Leon Rosenberg wrote: Hello Andre, sorry for the late response. Putting a httpd or lightttpd or nginx in front of our staging tomcat came to our mind too. The problem with this approach is however, that it reduces the idea of having a staging environment to absurdity, at least in technical

Re: SSL for modjk and tomcat

2011-11-09 Thread Harsimranjit singh Kler
hi Thanks for reply. There are some parameters whate they are for i saw like: : JkExtractSSL On JkHTTPSIndicator HTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER JkCERTSIndicator SSL_CLIENT_CERT and JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

Re: how to connect to datasource

2011-11-09 Thread Pid
On 09/11/2011 08:34, spike@12 wrote: Please don't top-post. Read: http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html Pay attention to the paragraph which refers to the 'validationQuery' attribute. No. I am using tomcat 6.0, java 6.0, linux system. Crikey. That changes

Re: SSL for modjk and tomcat

2011-11-09 Thread Pid
On 09/11/2011 11:20, Harsimranjit singh Kler wrote: Please don't top-post. hi Thanks for reply. There are some parameters whate they are for i saw like: : JkExtractSSL On JkHTTPSIndicator HTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER

WAR unzipping not catched

2011-11-09 Thread Stefan Siegel
Hi everyone, I have a question concerning Tomcats WAR deployment behavior: I have a web application which allows me to upload WAR files to the server via a web form. I get feedback from Tomcat once the upload is finished. I then put the file in Tomcats webapps folder. Tomcat now starts

Re: WAR unzipping not catched

2011-11-09 Thread André Warnier
Stefan Siegel wrote: Hi everyone, I have a question concerning Tomcats WAR deployment behavior: I have a web application which allows me to upload WAR files to the server via a web form. I get feedback from Tomcat once the upload is finished. I then put the file in Tomcats webapps folder.

RE: WAR unzipping not catched

2011-11-09 Thread Sharon Prober (sprober)
Perhaps consider using the tomcat event listeners that trigger when a context is up Sharon -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, November 09, 2011 3:01 PM To: Tomcat Users List Subject: Re: WAR unzipping not catched Stefan Siegel

Re: Catalina.policy file for security option

2011-11-09 Thread Petr Hracek
I have move during the starting of catalina in security nd now I am in the stage that in catalina.out log files I have: access: access allowed (java.io.FilePermission /usr/share/tomcat5/common/classes/log4j.properties read) access: access denied (java.io.FilePermission

Re: making security constraints configureable

2011-11-09 Thread chris derham
This thread is quite long, but to sum up what I have understood 1) you have an application running on staging and production 2) you want to enable access to staging for public demos from anywhere on the internet - for this you want to add access controls 3) everyone else will access the

Re: Tomcat 7, Servlet 3.0, and Non-Blocking

2011-11-09 Thread Matthew Tyson
That's very illuminating, thanks. I was looking at the table at the bottom of http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html#NIO_specific_configuration, and got the impression APR was blocking also, but now I see 'waiting for next request' is non-blocking in the TC7 table. Would you

Re: Trouble running TC8 trunk

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I can't see this message having been posted -- re-posting just in case. Apologies if my client is the problem and this is a double-post. Thanks, - -chris On 11/8/11 5:37 PM, Christopher Schultz wrote: All, With current trunk HEAD and a

Re: Trouble running TC8 trunk

2011-11-09 Thread Konstantin Kolinko
2011/11/9 Christopher Schultz ch...@christopherschultz.net: I can't see this message having been posted -- re-posting just in case. Apologies if my client is the problem and this is a double-post. Already replied 15hr ago. http://tomcat.markmail.org/thread/qkaukjmf2pnuzt62 Do you still have

Re: Trouble running TC8 trunk

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/8/11 6:32 PM, Konstantin Kolinko wrote: How do you start it? I use a custom ant target to launch catalina.sh. Here is the command line that actually gets run: /usr/bin/java -Dnop -Xmx64M -

Re: Trouble running TC8 trunk

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 11/9/11 9:14 AM, Christopher Schultz wrote: $ rm -rf output $ ant clean clean-depend download-compile deploy Looks like this has cleared the log-jam. Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin)

Re: SSL for modjk and tomcat

2011-11-09 Thread Harsimranjit singh Kler
Doing this configuratiosn first time. As per reply AJP not support SSL but still apache can pass some information to tomcat. i found above parameter in documentation : http://tomcat.apache.org/connectors-doc/reference/apache.html but no example how to configure these and how helpful. i dont

Re: how to connect to datasource

2011-11-09 Thread spike@12
now it is working fine, after adding validationQuery,testOnBorrow parameters. Thanks to all. billybob79 wrote: may I know, how to connect to datasource automatically if my DB machine is restarted?? Is it having any specific parameter to connect datasource automatically??

Re: SSL for modjk and tomcat

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harsimranjit, On 11/9/11 10:35 AM, Harsimranjit singh Kler wrote: Doing this configuration first time. As per reply AJP not support SSL but still apache can pass some information to tomcat. Correct: mod_ssl will forward the important SSL

Re: Session time out never takes place with ajax

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sharon, On 11/9/11 12:56 AM, Sharon Prober (sprober) wrote: This is my first post here so wish me luck J Welcome. My question is as follow: I have a web based application running on tomcat 6.0.29 On my main page there is a polling ajax call

Re: WAR unzipping not catched

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sharon, On 11/9/11 5:46 AM, Sharon Prober (sprober) wrote: Perhaps consider using the tomcat event listeners that trigger when a context is up +1 This is what ServletContextListener was made for. If you need one webapp to get a notification from

Re: how to connect to datasource

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 spike@12, On 11/9/11 8:59 PM, spike@12 wrote: now it is working fine, after adding validationQuery,testOnBorrow parameters. Note that testOnBorrow=true is the default, so you don't really need to set it. - -chris -BEGIN PGP SIGNATURE-

Re: AW: AW: mod_jk - Browser displays HTML Sourcecode

2011-11-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander, On 11/8/11 7:29 AM, Alexander Diedler wrote: Ok, But would be the better way (of life) for this? HTTPD vhost.conf: VirtualHost 192.168.100.40:80 ServerAdmin xxx@yyy DocumentRoot D:/www/apps/app1/ROOT Directory D:/www/apps/app1/ROOT

Fwd: SSL for modjk and tomcat

2011-11-09 Thread Harsimranjit singh Kler
Hi Simple i have setup httpd,modjk,tomcat .i want to enable SSL(i.e i can handle everything on https). If (instead) you want to encrypt the AJP connection between HTTPD and Tomcat, you'll have to use an SSH tunnel because the AJP protocol is not encrypted. Now AJP not support SSL fine. i.e

Parallel deployment - can we use JMX to monitor old and new versions of a webapp?

2011-11-09 Thread Ellecer Valencia
Hi, We're looking into the parallel deployment feature of Tomcat 7 and want to see if there is a way to monitor performance stats of an old deployment of a webapp. Our webapp has a few pages that display application-specific information - performance indicators, recent exceptions, cache