Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 93882 invoked from network); 19 Dec 2006 17:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 17:15:54 -0000 Received: (qmail 71406 invoked by uid 500); 19 Dec 2006 17:15:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 71341 invoked by uid 500); 19 Dec 2006 17:15:56 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 71330 invoked by uid 99); 19 Dec 2006 17:15:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 09:15:56 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_WHOIS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jdwilliams@austin.rr.com designates 24.93.47.40 as permitted sender) Received: from [24.93.47.40] (HELO ms-smtp-01.texas.rr.com) (24.93.47.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 09:15:45 -0800 Received: from jdw-laptop (cpe-70-122-48-13.austin.res.rr.com [70.122.48.13]) by ms-smtp-01.texas.rr.com (8.13.6/8.13.6) with ESMTP id kBJHFOuo018615 for ; Tue, 19 Dec 2006 11:15:24 -0600 (CST) Subject: CLI in 2.1.9: Cannot find ServletContext object From: "J.D. Williams" To: users@cocoon.apache.org Content-Type: text/plain Date: Tue, 19 Dec 2006 11:14:26 -0600 Message-Id: <1166548466.5177.6.camel@jdw-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org I have Googled for this exception, read the docs for 2.1, and cannot figure this out. I did a ./build.sh clean, then built a minimal webapp and verified that it worked. No blocks, no samples, bare minimum. Then, I copied servlet-2.3.jar from $COCOON_INSTALL_DIRECTORY/tools/jetty/lib to $COCOON_INSTALL_DIRECTORY/build/webapp/WEB-INF/lib I even added $COCOON_INSTALL_DIRECTORY/build/webapp/WEB-INF/lib to my classpath. The cli.xconf contains the following: build/webapp WEB-INF/cocoon.xconf build/work build/dest I ran the CLI using the demo cli.xconf and got the following fatal error. jdw@jdw-desktop:~/cocoon-2.1.9$ ./cocoon.sh cli -x cli.xconf ./cocoon.sh: using ./build/webapp as the webapp directory ------------------------------------------------------------------------ cocoon 2.1.9 Copyright (c) 1999-2006 Apache Software Foundation. All rights reserved. ------------------------------------------------------------------------ DEBUG 2006-12-19 11:07:33.386 [ ] (): Getting handle to context directory 'build/webapp' DEBUG 2006-12-19 11:07:33.425 [ ] (): Getting handle to working directory 'build/work' DEBUG 2006-12-19 11:07:33.624 [ ] (): Added new LogTargetFactory of type cocoon DEBUG 2006-12-19 11:07:33.626 [ ] (): Added new LogTargetFactory of type servlet DEBUG 2006-12-19 11:07:33.628 [ ] (): Added new LogTargetFactory of type stream DEBUG 2006-12-19 11:07:33.779 [ ] (): Added new LogTarget of id main DEBUG 2006-12-19 11:07:33.782 [ ] (): Added new LogTarget of id deprecation FATAL_E 2006-12-19 11:07:33.786 [ ] (): Exception caught org.apache.avalon.framework.configuration.ConfigurationException: Cannot find ServletContext object in application context --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org