users@glassfish.java.net

Re: Putting a configuraiton file on classpath

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Mon, 11 Jan 2010 12:05:01 -0800

On 01/11/10 01:32 AM, Jürgen Link wrote:
> Hi all,
> we are using spring framework where it's convenient to inject
> environment-specific properties via classpath.
> We are thus facing the challenge to put a simple text file on the
> system classpath (putting them inside an ear of course is easy, but
> not feasible for system-dependent properties).
> I tried to place it in domain/lid directory, but that's obviously not
> enough. What is the preferred way of specifiying such a file?

Sahoo recently answered a similar question, see
http://forums.java.net/jive/thread.jspa?messageID=378066:

<quote>
If you have some resources which are not part of any jar, then directly
placing the resources in domain1/lib would not help. domain1/lib/ is not
part of any classpath; jars in domain1/lib are. You should place
resources and .class files in domain1/lib/classes/, which is part of
classpath.
</quote>

Hope this helps.

Jan


>
> Cheers
> Jürgen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>