cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2085) Applications classloader should be set during method invocations.
Date Fri, 06 Mar 2009 12:51:56 GMT

    [ https://issues.apache.org/jira/browse/CXF-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679581#action_12679581
] 

Sergey Beryozkin commented on CXF-2085:
---------------------------------------

thanks - so if you expect the context loader be equal to that of the resource class (HelloClass
in your example) loader, then why would not you do

HelloService.class.getClassLoader(), when loading the properties ?

> Applications classloader should be set during method invocations.
> -----------------------------------------------------------------
>
>                 Key: CXF-2085
>                 URL: https://issues.apache.org/jira/browse/CXF-2085
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2
>            Reporter: Chaitanya Choleti
>             Fix For: 2.2
>
>         Attachments: cl_test.war, sources.zip
>
>
> 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.


Mime
View raw message