Load properties file from Tomcat directory

2013-01-24 Thread Justin Rosenberg
Is there a to load a properties file that is dropped in the ${catalina.base}/lib directory? When I try the following it returns null: MyClass.class.getResourceAsStream(PROPERTY_FILE_NAME) I realize I can do the following, but I don't want the code to be server specific: props.load(new Fi

RE: JAAS Module Tomcat 7 (Bundling and JNDI Datasource access)

2013-01-24 Thread Justin Rosenberg
" for the help. ~Justin -Original Message----- From: Justin Rosenberg [mailto:rosenbe...@crlcorp.com] Sent: Wednesday, January 23, 2013 7:06 PM To: users@tomcat.apache.org Subject: JAAS Module Tomcat 7 (Bundling and JNDI Datasource access) I'm running into issues accessing a JNDI

RE: Tomcat6+webapps+log4j

2013-01-24 Thread Justin Rosenberg
You might try putting the log4j properties file (or xml) in a shared loader location. In catalina.properties add something like this: shared.loader=${catalina.base}/conf/properties and then put the properties file there. ~Justin -Original Message- From: Tiago Sousa [mailto:tia

JAAS Module Tomcat 7 (Bundling and JNDI Datasource access)

2013-01-23 Thread Justin Rosenberg
I'm running into issues accessing a JNDI datasource in a JAAS module. Can I bundle a JAAS module in my war file? When I try to do this by defining the Realm in the context.xml of the web application I get a java.lang.ClassNotFoundException. The documentation specifies I must put the module in