Re: Setting PropertySourceVault programatically in o.a.t.util.digester.Digester

2017-09-11 Thread Rémy Maucherat
On Mon, Sep 11, 2017 at 10:56 PM, Mark Thomas wrote: > On 11/09/17 21:07, Coty Sutherland wrote: > > On Mon, Sep 11, 2017 at 2:43 PM, Mark Thomas wrote: > >> On 11/09/17 19:07, Coty Sutherland wrote: > >> > >>> So, my questions comes down to "Can I configure a PropertySource > >>> instance and p

Re: How to prevent tomcat from deleting a webapp on restart

2017-09-11 Thread Olaf Kock
On 12.09.2017 03:00, Aryeh Friedman wrote: I have setup a webapp (main app) that is uploaded with a war file and second one ("images") that is just a dir in the webapp dir, no war file. Sometimes (not always) on tomcat restart/system reboot images gets deleted. How can I prevent this. That's ea

How to prevent tomcat from deleting a webapp on restart

2017-09-11 Thread Aryeh Friedman
I have setup a webapp (main app) that is uploaded with a war file and second one ("images") that is just a dir in the webapp dir, no war file. Sometimes (not always) on tomcat restart/system reboot images gets deleted. How can I prevent this. -- Aryeh M. Friedman, Lead Developer, http://www.Pet

Re: Setting PropertySourceVault programatically in o.a.t.util.digester.Digester

2017-09-11 Thread Mark Thomas
On 11/09/17 21:07, Coty Sutherland wrote: > On Mon, Sep 11, 2017 at 2:43 PM, Mark Thomas wrote: >> On 11/09/17 19:07, Coty Sutherland wrote: >> >>> So, my questions comes down to "Can I configure a PropertySource >>> instance and pass that to tomcat's Digester before tomcat starts?". >> >> No, bec

Re: BIO: Async servlet with it's own thread pool; but get connection refused!

2017-09-11 Thread Mark Thomas
On 07/09/17 23:30, Yasser Zamani wrote: > Thanks for your attention. > > Now I downloaded a fresh apache-tomcat-7.0.81-windows-x64 and chenged > it's connector in same way (BIO,20,20,10). I get same result, fortunately :) > > OUTPUT: > > Using CATALINA_BASE: > "C:\Users\user\.IntelliJIdea2016.

Re: Setting PropertySourceVault programatically in o.a.t.util.digester.Digester

2017-09-11 Thread Coty Sutherland
On Mon, Sep 11, 2017 at 2:43 PM, Mark Thomas wrote: > On 11/09/17 19:07, Coty Sutherland wrote: > >> So, my questions comes down to "Can I configure a PropertySource >> instance and pass that to tomcat's Digester before tomcat starts?". > > No, because of the way it is currently coded. I thought

Re: Setting PropertySourceVault programatically in o.a.t.util.digester.Digester

2017-09-11 Thread Mark Thomas
On 11/09/17 19:07, Coty Sutherland wrote: > So, my questions comes down to "Can I configure a PropertySource > instance and pass that to tomcat's Digester before tomcat starts?". No, because of the way it is currently coded. > Is this a silly question? If so, why? No. N/A. I can see the benefi

Re: mod_alias equivalent for tomcat 8?

2017-09-11 Thread Mark Thomas
On 11/09/17 16:07, Chris Cheshire wrote: > Why doesn't tomcat copy context.xml into the conf tree if it doesn't > exist when it > deploys a webapp on startup? That behaviour caused problems for some users so it is configurable. See copyXML on the Host Mark --

Re: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread Mark Thomas
On 11/09/17 18:45, S Abirami wrote: > Hi Mark, > > I followed the below steps as you stated > > https://wiki.apache.org/tomcat/FAQ/Password > > still getting the same exception in log. Here also property > ${keystore.password} decrypted successfully from encrypted password saved in > catalina

Setting PropertySourceVault programatically in o.a.t.util.digester.Digester

2017-09-11 Thread Coty Sutherland
Hi all, I'm fairly certain that there isn't a way to do this currently (I'm not so good with Reflection, so there could be), but I have to ask anyway. Let me explain my use case... I'm using tomcat embedded (8.5.x/trunk) and have a need to programmatically configure and use a PropertySource befor

RE: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi Mark, I followed the below steps as you stated https://wiki.apache.org/tomcat/FAQ/Password still getting the same exception in log. Here also property ${keystore.password} decrypted successfully from encrypted password saved in catalina.properties. but it is giving the same exception and

Re: What is the expected behaviour for system property: "org.apache.catalina.core.StandardHostValve.ACCESS_SESSION=false"

2017-09-11 Thread Kwan Lim
Thanks Mark. Makes sense and the configuration change did the trick! On Mon, Sep 11, 2017 at 10:05 AM, Mark Thomas wrote: > On 11/09/17 14:21, Kwan Lim wrote: > > Thanks Mark. You are correct that I'm using my own application which > looks > > like the problem is the NonLoginAuthenticator valve

Re: mod_alias equivalent for tomcat 8?

2017-09-11 Thread Chris Cheshire
On Mon, Sep 11, 2017 at 9:40 AM, Mark Thomas wrote: > On 08/09/17 23:00, Chris Cheshire wrote: >> In tomcat8, how do I go about configuring a Resources element to >> replace mod_alias directives in httpd? > > > >> I have tried all kinds of variations of >> >> >> > classNa

RE: 8.5 - multiple host configuration question

2017-09-11 Thread Berneburg, Cris J. - US
Chris and Chris (but not Chris) -Original Message- From: Chris Cheshire [mailto:yahoono...@gmail.com] Sent: Friday, September 08, 2017 9:16 PM To: Tomcat Users List Subject: Re: 8.5 - multiple host configuration question On Thu, Sep 7, 2017 at 5:29 PM, Christopher Schultz wrote: > ---

Re: What is the expected behaviour for system property: "org.apache.catalina.core.StandardHostValve.ACCESS_SESSION=false"

2017-09-11 Thread Mark Thomas
On 11/09/17 14:21, Kwan Lim wrote: > Thanks Mark. You are correct that I'm using my own application which looks > like the problem is the NonLoginAuthenticator valve is calling > getInternalSession() (via the AuthenticatorBase class's invoke() method). > Is there a way to bypass this? I'm guessing

Re: mod_alias equivalent for tomcat 8?

2017-09-11 Thread Mark Thomas
On 08/09/17 23:00, Chris Cheshire wrote: > In tomcat8, how do I go about configuring a Resources element to > replace mod_alias directives in httpd? > I have tried all kinds of variations of > > >className="org.apache.catalina.webresources.DirResourceSet" >

Re: What is the expected behaviour for system property: "org.apache.catalina.core.StandardHostValve.ACCESS_SESSION=false"

2017-09-11 Thread Kwan Lim
Thanks Mark. You are correct that I'm using my own application which looks like the problem is the NonLoginAuthenticator valve is calling getInternalSession() (via the AuthenticatorBase class's invoke() method). Is there a way to bypass this? I'm guessing the ROOT application bypasses the StandardH

Re: What is the expected behaviour for system property: "org.apache.catalina.core.StandardHostValve.ACCESS_SESSION=false"

2017-09-11 Thread Mark Thomas
On 10/09/17 01:53, Kwan Lim wrote: > Hi, > > I am trying to make a servlet that doesn't extend the session when accessed > and it looked like the system property "org.apache.catalina.core. > StandardHostValve.ACCESS_SESSION" could do job. > > To test it out I created a simple project in Netbeans

RE: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi Thomas, I have encrypted the keystore password using openssl and hardcoded in server.xml. For decrypting , Http11Nio2ProtocolDecryptProp extends Http11Nio2Protocol] and mentioned as below in server.xml mailto:ma...@apache.org] Sent: Monday, September 11, 2017 4:03 PM To: Tomcat Users List

Re: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread Mark Thomas
On 11/09/17 10:11, S Abirami wrote: > > Hi All, > > I have to encrypt keystore password in server.xml. https://wiki.apache.org/tomcat/FAQ/Password Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additi

RE: Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi All, I have to encrypt keystore password in server.xml. For decrypting ,I have inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set that to endpoint keystorePass and super class setKeyS

Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi All, I have to encrypt keystore password in server.xml. For decrypting ,I have inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set that to endpoint keystorePass and super class setKeySt

Encrypt Keystore password in server.xml 8.0.45

2017-09-11 Thread S Abirami
Hi All, I have to encrypt keystore password in server.xml. For decrypting ,I have inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set that to endpoint keystorePass and super class setKeyS

Encrypt Keystore password in server.xml

2017-09-11 Thread S Abirami
Hi All, I have to encrypt keystore password in server.xml. For decrypting ,I have inherited the class Http11Nio2Protocol[Http11Nio2ProtocolDecryptProp extends Http11Nio2Protocol] and decrypted in setKeyStorePass overridden method then set that to endpoint keystorePass and super class setKeySt