tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat 6.0 CLASSPATH query
Date Mon, 10 Dec 2012 14:50:20 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vicky,

On 12/9/12 2:06 PM, vicky wrote:
> Thanks MARK/CHRIS  for all earnest replies, i really owe you guys
> for your replies.
> 
> Exporting CLASSPATH wont work ad i believe that Tomcat "catalina.sh
> " will ignore it.
> 
> Anyway i am able to fetch the "resource/properties file " contents 
> if i place in "$CATALINA_BASE/bin" directory.

That is surprising to me. How does your code load the properties file?
I'll bet you aren't even using the ClassLoader (and you *should* be).

> Actually i read the documentation but no where its been written
> that by  adding resource files to "$CATALINA_BASE/bin" , tomcat
> will make them available in its CLASSPATH

I don't believe it's true, so it shouldn't be in the documentation.

> This is weird for me to understand, if you have any thoughts on
> this behavior then please share """" else we can close this email 
> thread""""

Nobody should be using CATALINA_BASE/bin for anything: it's for Tomcat's
bootstrap classes only.

I'm fairly sure that simply dropping a file in there won't do anything
at all, unless you have modified Tomcat from its original configuration.

If you want something to be globally available, use CATALINA_BASE/lib or
configure a shared.loader in catalina.properties. Oh, and write your
code properly to load from the class path.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDF9qwACgkQ9CaO5/Lv0PDwQwCeKVZkWejHUXb7R2uQX92IsSi7
MyQAnjG0iuGjhZcRjDULuDKt94d+cuXr
=0hHZ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message