tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingo Bruell <ibru...@gmx.de>
Subject Re: Using beans and Security...
Date Fri, 10 May 2002 11:58:09 GMT
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

---
<ibruell@gmx.de>
<Ingo.Bruell@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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message