This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Property file in EAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Property file in EAR" Watch "Property file in EAR" New topic

Property file in EAR

Alec Shcherbakov

Joined: Feb 04, 2004
Posts: 19
I have a property file located in a 'resource' folder in my enterprise application. This file is used by several EJB and Web modules, that is why I put it into the EAR. The manifest files of these modules contain the name of the folder in the EAR where the property file is located ('resource'). However the property file can't be loaded by ClassLoader.getResource().
If I put the property file into a jar-file and include jar-file name into the maifest file, everything works fine. The application server is Websphere 5.1.
This approach is described here:
J2EE Class Loading Demystified
Can anybody make any suggestion on what I might be doing wrong?
Thank you.

Thank you.<br /> <br />Alec
I agree. Here's the link:
subject: Property file in EAR
Similar Threads
Best way to place property file values in Webspehere
migrating from Jboss4.0 to websphere 6.0
EAR deployment problem Weblogic Migration... additional resources needed on classpath
IBM Websphere v6 and JBoss 4x MQ Connectivity - Please Help
What is NoInitialContextException?