Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2
-
None
-
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.
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.