In your service.xml, If you set the following <parameter name="ServiceTCCL" locked="false">service</parameter>
then it sets the context class loader to the classloader that loaded your aar, then you can use Thread.currentThread().getContextClassLoader(). The following will not work!
- new FileInputStream - ClassLoader.getSystemResource
Yes, if you don't set that ServiceTCCL, then the only way is to use: FooService.class.getResourceAsStream thanks, dims On 10/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
Hi all, I'm facing a strange problem after updating to the last axis2 snapshot: I cannot load my property files any more. I've tried to put them in /lib or in / and to load them in several ways, i.e.: - Thread.currentThread().getContextClassLoader().getResourceAsStream - new FileInputStream - ClassLoader.getSystemResource however I can load the file only using - FooService.class.getResourceAsStream + put the property file in the same package of FooService. Is this the correct way? Thanks in advance, Michele --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
