cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Ignatyev (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-2271) spring configuration should not require servlet-api classes at runtime
Date Wed, 25 Nov 2009 00:07:39 GMT
spring configuration should not  require servlet-api classes at runtime
-----------------------------------------------------------------------

                 Key: COCOON-2271
                 URL: https://issues.apache.org/jira/browse/COCOON-2271
             Project: Cocoon
          Issue Type: Improvement
          Components: * Cocoon Core
    Affects Versions: 2.2
            Reporter: Konstantin Ignatyev
            Priority: Minor


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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message