Can you create a quick "hello world" type example for this that we could use
as a test case?
Not sure if it's easily fixable though. Having to load resources via the
classloaders is a bit difficult in OSGi. That said, this code likely
should be using our ClassLoaderUtils to grab that resource. That MAY allow
it to work. Not really sure. An example would definitely help.
Dan
On Thursday, March 29, 2012 07:17:01 PM Isuru Suriarachchi wrote:
> I'm trying CXF in my OSGi container and looks like JAX-WS handler samples
> are not working inside OSGi. When I had a look at the code in
> the HandlerChainBuilder class, it uses clz.getResource(filename) to load
> the handler file. This fails in OSGi.
>
> protected URL resolveHandlerChainFile(Class clz, String filename) {
> URL handlerFile = clz.getResource(filename);
> if (handlerFile == null) {
> //the file location might be an absolute java.net.URL in
> externalForm.
> try {
> handlerFile = new URL(filename);
> //test if the URL can be opened
> handlerFile.openStream();
> } catch (Exception e) {
> //do nothing
> }
> }
> return handlerFile;
> }
>
> Has anyone tried this before? Is there a workaround for this problem?
>
> Thanks,
> ~Isuru
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com