[
https://issues.apache.org/jira/browse/CXF-4155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223122#comment-13223122
]
Sergiusz Kierat commented on CXF-4155:
--------------------------------------
@Sergey : Thanks for the nice hint. I have not seen it. I do not want to switch
the entire application to CGLIB by *<aop:aspectj-autoproxy
proxy-target-class="true"/>*. This is not an option, thus I have to use "the
preferred solution". Thanks a lot.
> Fault "object is not an instance of declaring class" is related to AOP/CGLIB
> ----------------------------------------------------------------------------
>
> Key: CXF-4155
> URL: https://issues.apache.org/jira/browse/CXF-4155
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.4, 2.5.2
> Reporter: Sergiusz Kierat
> Assignee: Sergey Beryozkin
> Fix For: 2.4.7
>
> Attachments: cxf_bug.tar.gz
>
>
> The attached app works when the annotation Secured is turned off, otherwise
> fails.
> In my opinion, there is the issue during proxying mechanism in Spring
> Security.
> Try it out :
> * run : _mvn clean install jetty:run_
> * after running see :
> ** http://localhost:8080/cxf/rest/?_wadl&_type=xml
> ** http://localhost:8080/cxf/rest/name - PASS
> ** http://localhost:8080/cxf/rest/dateTime - FAIL
> Known workaround : add declaration method *getDateTime()* to _RestService_
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira