jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes properties file in shared/classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "properties file in shared/classes" Watch "properties file in shared/classes" New topic

properties file in shared/classes

Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
We have quite a few tomcat apps and would like to use a common .properties file to access common information.

I'm under the impression that I can put a properties file in the tomcat_home/shared/classes directory and all of the apps will be able to access it. True?

I've placed my common.properties file in the tomcat_home/shared/classes directory, but get an error when trying to load it:

I get the following error:
"Can't find bundle for base name common.properties, locale en_US"

I'm using eclipse...

don't know if it's syntax or classpath. I would guess classpath, but don't know how to create the classpath association to a properties file (also doesn�t seem like I should be doing this) - when I try, it seems to want to associate to a jar file rather than a .properties file.

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
I think there should not be the extension .properties, just common.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
that was it. Thanks!
I agree. Here's the link: http://aspose.com/file-tools
subject: properties file in shared/classes
It's not a secret anymore!