Never mind... I eventually solved it by retrieving the class loader of
the class that is located in that jar. Calling getResource() on this
class loader works fine.
Thanks,
Marek
On 21.11.2008, at 18:08, Potociar Marek wrote:
> Hello,
> I need to find a way how to load a resource from a GFv3 module
> located in module.jar/META-INF. To be exact, I need to load
> webservices.jar/META-INF/metro-default.xml when a new WS gets
> deployed. Standard
> Thread.currentThread().getContextClassLoader().getResource("META-INF/
> metro-default.xml") approach apparently does not work.
>
> Thanks for your help,
> Marek
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>