thanks for replying.
Is there a way that this can be done without putting it in classes?
Main Topics
Browse All TopicsI am using Tomcat 6.
I have a .properties file in a jar file which is placed in <tomcat_home>/<app_name>/W
This same properties file I have placed in <tomcat_home>/<app_name>/c
In tomcat/bin, setclasspath.bat, I have set the classpath to <tomcat_home>/<app_name>/c
Is there a way that I can set the priority to "config" to be higher than "lib"
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
>>though whats the problem with putting it in classes?
We create the war once and then it is moved to various environments like SIT, UAT and Production. The war itself is never expanded and no changes are ever made to it. So exactly the same version of WAR is there in all the environments with no changes whatsoever.
Now there may be some properties which we may need to configure based on the environment. So we keep these properties in a folder called config which is placed outside the WAR. We set the classpath to this folder so that these properties are accessible to the application.
Business Accounts
Answer for Membership
by: objectsPosted on 2009-10-05 at 21:20:42ID: 25501865
I would suggest against messing around with tomcats classpath and instead put your config file in <app_name>/WEB-INF/classes