SpringBusFactory should read META-INF/cxf/cxf.extension during creating 
SpringBus
---------------------------------------------------------------------------------

                 Key: CXF-3564
                 URL: https://issues.apache.org/jira/browse/CXF-3564
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: David Liu


  It could be a bug in SpringBusFactory that it does not read 
META-INF/cxf/cxf.extension file which contains additional cxf extension config 
files. However, it uses to read META-INF/cxf/cxf.extension in 2.2.

  Reason: In CXF 2.2, SpringBusFactory will always create BusApplicationContext 
to read META-INF/cxf/cxf.extension when cfgFile is null, However, CXF 2.4 does 
not create BusApplicationContext when cfgFile is null. I think it is a bug in 
CXF 2.4 because it will ignore the extions in cxf.extension file

Code: when cfgFiles is null, SpringBusFactory will not create 
BusApplicationContext to read META-INF/cxf/cxf.extension file. 
{code}
    public Bus createBus(String cfgFiles[], boolean includeDefaults) {
        try {
            String userCfgFile = 
System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_NAME);
            String sysCfgFileUrl = 
System.getProperty(Configurer.USER_CFG_FILE_PROPERTY_URL);
            Resource r = 
BusApplicationContext.findResource(Configurer.DEFAULT_USER_CFG_FILE);
            if (context == null && userCfgFile == null && cfgFiles == null && 
sysCfgFileUrl == null 
                && (r == null || !r.exists()) && includeDefaults) {
                return new org.apache.cxf.bus.CXFBusFactory().createBus();
            }
            return finishCreatingBus(createApplicationContext(cfgFiles, 
includeDefaults));
            return finishCreatingBus(createApplicationContext(cfgFiles, 
includeDefaults));
{code}
   
   Could you please fix it?

Cheers,
David

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to