You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Markus Garscha <ga...@core.gama.de> on 2002/05/10 13:24:37 UTC

Using beans and Security...

Hi!

I've written a bean which handles database connections. its config is a
xml file which is located in the same jar as the bean and lies under
WEB_INF/lib.
in the bean the method getResource("config.xml") is called to load the
config file. but somehow i don't have access to config.xml in the jar.
it works fine if i use it outside tomcat servles environment. 
i tried a lot with classloader but till now i didn't manage to load the
config.xml. 

pleas help!

thanx a lot
markus



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Using beans and Security...

Posted by Ingo Bruell <ib...@gmx.de>.
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

---
<ib...@gmx.de>
<In...@epost.de>
<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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>