Tomcat is stopping on its own even though stop script is not executed

2017-07-19 Thread Chaitanya Sabbineni
Hi All, i am using tomcat 7.0.069 version where tomcat is stopping at a specified time(02:00AM) even though the stop script of the tomcat is not executed. Below is the *error *which i can see in the tomcat log at 2:00 AM when the server is stopped.In order to start the sever we need to execute th

Do symlinks under aliased directories require any special handing/configuration (tomcat = 7.0.56)?

2017-07-19 Thread Terence Lee
Please forgive any misuse of terminology here.  I am a sysadmin involved in devops deployments of tomcat servers and applications, but I don't really know much about how tomcat actually works. I am a unix guy! We recently had a deployment of a third party application that resulted in tomcat th

Re: Storing JNDI binding password using encryption

2017-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alex, On 7/19/17 3:53 PM, Alex O'Ree wrote: > The jar file is in /tomcat/lib. The class is super simple > > package org.redacted; public class JNDIRealmExt extends JNDIRealm{ > @Override public String getConnectionPassword(){ return > Utility.decr

Maven Tomcat Plugin Specific Properties File

2017-07-19 Thread Tony Chuinard
Is there anyway to load a specific properties file for the Tomcat plugin? I know about the section of the plugin config, but I am looking to point to a specific file when using tomcat7:run instead of having to code these properties into the pom.

Re: Storing JNDI binding password using encryption

2017-07-19 Thread Alex O'Ree
The jar file is in /tomcat/lib. The class is super simple package org.redacted; public class JNDIRealmExt extends JNDIRealm{ @Override public String getConnectionPassword(){ return Utility.decrypt(connectionPassword); } } server.xml looks like this ldap://localhost:389"; userBase="..." userSe

Re: Storing JNDI binding password using encryption

2017-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alex, On 7/19/17 1:53 PM, Alex O'Ree wrote: > On Wed, Jul 19, 2017 at 12:09 PM, Mark Thomas > wrote: >> On 19/07/17 16:22, Alex O'Ree wrote: >>> Assuming I had access to a reversible encryption mechanism and >>> wanted to store the JNDI binding pas

Re: Storing JNDI binding password using encryption

2017-07-19 Thread Alex O'Ree
Thanks Mark I tried just extend the JDNI Realm class and overriding getConnectionPassword but it doesn't appear that my code ever called, even those my fully qualified classname is listed in the realm xml element. Any ideas? On Wed, Jul 19, 2017 at 12:09 PM, Mark Thomas wrote: > On 19/07/17 16:2

Re: Storing JNDI binding password using encryption

2017-07-19 Thread Mark Thomas
On 19/07/17 16:22, Alex O'Ree wrote: > Assuming I had access to a reversible encryption mechanism and wanted > to store the JNDI binding password in an encrypted form by extending > the JNDIRealm class, which method should i override to encrypt the > password stored in server.xml on the fly? You c

Storing JNDI binding password using encryption

2017-07-19 Thread Alex O'Ree
Assuming I had access to a reversible encryption mechanism and wanted to store the JNDI binding password in an encrypted form by extending the JNDIRealm class, which method should i override to encrypt the password stored in server.xml on the fly? --

Re: Getting user role membership without context

2017-07-19 Thread Alex O'Ree
Got it to work! Thanks Mark! On Wed, Jul 19, 2017 at 10:40 AM, Mark Thomas wrote: > On 19/07/17 15:34, Alex O'Ree wrote: >> Context.findChild and findChildren returns an instance of "Container". >> It looks like StandardWrapper extends Container, so I should be able >> to type cast it. The questi

Re: Getting user role membership without context

2017-07-19 Thread Mark Thomas
On 19/07/17 15:34, Alex O'Ree wrote: > Context.findChild and findChildren returns an instance of "Container". > It looks like StandardWrapper extends Container, so I should be able > to type cast it. The question is, is it always going to be an instance > of StandardWrapper? For a Context, it shou

Re: run thread from servlet

2017-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Lance, On 7/19/17 7:35 AM, Campbell, Lance wrote: > Thanks for your information. So when I have a process that I want > to run as a thread I would assume I need to implement the > interface ServletContextListener. I would also assume that the > s

Re: Getting user role membership without context

2017-07-19 Thread Alex O'Ree
Context.findChild and findChildren returns an instance of "Container". It looks like StandardWrapper extends Container, so I should be able to type cast it. The question is, is it always going to be an instance of StandardWrapper? On Tue, Jul 18, 2017 at 6:40 PM, Mark Thomas wrote: > On 18/07/17

RE: run thread from servlet

2017-07-19 Thread Campbell, Lance
Chris, Thanks for your information. So when I have a process that I want to run as a thread I would assume I need to implement the interface ServletContextListener. I would also assume that the servlet that creates the process will call the following method: this.getServletContext().addListe