> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: Access a config file located outsite j2ee app > [SEC=UNOFFICIAL] > > 1. The commented line > env.put(Context.PROVIDER_URL, > "file:C:\\confluence\\confluence-2.5.1-std\\conf");
Not sure this will work (or even if it's a good idea), but you might try a relative path with forward slashes (which is what the JVM uses internally anyway): "file:../conf" Since Tomcat's normal working directory is bin - at the same directory level as conf - this may work. > 2. Can I somehow set the context to look into the conf > directory of Tomcat without hard coding the path You could set a context parameter or an environment entry: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html%20Context%20 Parameters http://tomcat.apache.org/tomcat-6.0-doc/config/context.html%20Environmen t%20Entries either in the <Context> element or in WEB-INF/web.xml, again using a relative path. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]