Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2271

spring configuration should not require servlet-api classes at runtime

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2
    • None
    • * Cocoon Core
    • None
    • Normal

    Description

      org.apache.cocoon.spring.configurator.impl.SettingsElementParser#registerComponents is the method that uses
      ServletContextFactoryBean.class.getName(), ServletContext.class.getName() in the call

      This makes it necessary to include servlet-api jar in non-web applications (like batch application) and that does not make whole lot of sense.

      I think the library should simply use string values there, such values could be 'hardcoded' or some init procedure can try to instantiate those classes, and if the attempt fails then fall back to defaults and print warning in a log.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgignatyev@yahoo.com Konstantin Ignatyev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: