struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "blue wang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-3851) Startup Fail because Plugin OSGi can't load bundle's struts.xml throw NullPointerException
Date Tue, 17 Jul 2012 05:16:33 GMT
blue wang created WW-3851:
-----------------------------

             Summary: Startup Fail because Plugin OSGi can't load bundle's struts.xml throw
NullPointerException
                 Key: WW-3851
                 URL: https://issues.apache.org/jira/browse/WW-3851
             Project: Struts 2
          Issue Type: Bug
          Components: XML Configuration
    Affects Versions: 2.3.4
            Reporter: blue wang


see the code of org.apache.struts2.osgi.BundlePackageLoader:

<code>
BundleConfigurationProvider prov = new BundleConfigurationProvider("struts.xml", bundle, bundleContext);
        for (PackageConfig pkg : pkgConfigs.values()) {
            config.addPackageConfig(pkg.getName(), pkg);
        }
        prov.setObjectFactory(objectFactory);
        prov.init(config);
        prov.loadPackages();
</code>

because XmlConfigurationProvider need be injected FileManager, but there isn't


--
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

        

Mime
View raw message