Hi Tomcat,
MG> I've written a bean which handles database connections. its config is a
MG> xml file which is located in the same jar as the bean and lies under
MG> WEB_INF/lib.
MG> in the bean the method getResource("config.xml") is called to load the
MG> config file. but somehow i don't have access to config.xml in the jar.
MG> it works fine if i use it outside tomcat servles environment.
MG> i tried a lot with classloader but till now i didn't manage to load the
MG> config.xml.
You should use the classloader to load the resource.
so long
Ingo Bruell
---
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<ICQ# 40377720>
Oldenburg PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC
Germany PGP-Public-Key available at pgpkeys.mit.edu
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>