cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaitanya Choleti (JIRA)" <>
Subject [jira] Commented: (CXF-2085) Applications classloader should be set during method invocations.
Date Fri, 06 Mar 2009 13:39:56 GMT


Chaitanya Choleti commented on CXF-2085:

I am sorry. I was not clear enough last time. I hope this example explains why i want to use
Thread.currentThread().getContextClassLoader() instead of HelloService.class.getClassLoader().

use the request urls :          new_cl_test/helloservice/hello and new_cl_test/byeservice/bye

Thank you for shuch a prompt response.

> Applications classloader should be set during method invocations.
> -----------------------------------------------------------------
>                 Key: CXF-2085
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Chaitanya Choleti
>             Fix For: 2.2
>         Attachments: cl_test.war, new_cl_test.war,,
> Invocation of a JAX-RS method may depend on some application classes which may not be
loaded already, they will be loaded during invocation. But during invocation the classloader
will be CXF war application classloader, this will lead to NoClassDefFoundErrors. To avoid
this root resource class' classloader should be set on the current thread.
> Similar fix should be applied to provider methods such as readFrom, writeTo etc.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message