Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3851

Startup Fail because Plugin OSGi can't load bundle's struts.xml throw NullPointerException

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            wanglxi1 blue wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: