Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 68158 invoked from network); 25 Nov 2009 00:08:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 00:08:03 -0000 Received: (qmail 81716 invoked by uid 500); 25 Nov 2009 00:08:03 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 81626 invoked by uid 500); 25 Nov 2009 00:08:02 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 81618 invoked by uid 99); 25 Nov 2009 00:08:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 00:08:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 00:07:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8B356234C045 for ; Tue, 24 Nov 2009 16:07:39 -0800 (PST) Message-ID: <1536977732.1259107659554.JavaMail.jira@brutus> Date: Wed, 25 Nov 2009 00:07:39 +0000 (UTC) From: "Konstantin Ignatyev (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Created: (COCOON-2271) spring configuration should not require servlet-api classes at runtime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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.