cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hesam Talebi (JIRA)" <>
Subject [jira] [Created] (CXF-6003) jaxrs:server "basePackages" attribute doesn't initialize REST services properly
Date Sun, 14 Sep 2014 21:19:33 GMT
Hesam Talebi created CXF-6003:

             Summary: jaxrs:server "basePackages" attribute doesn't initialize REST services
                 Key: CXF-6003
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.0.0
            Reporter: Hesam Talebi

As I see, there is a feature to let cxf detect REST services automatically through "basePackages"
attribute of "jaxrs:server" tag.
it supposed to scan classpath and create beans for classes with @Path(and @Provider) annotation.
the problem is Spring Autowiring doesn't work for these beans, so there is no way to initialize
REST services properly.
I saw the code and think found the problem. in JAXRSServerFactoryBeanDefinitionParser if you
providers.add(context.getAutowireCapableBeanFactory().createBean(clazz, 2, true));
everything works fine. it simply tells spring to enable autowiring in bean creation.

This message was sent by Atlassian JIRA

View raw message