Return-Path: Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 73729 invoked by uid 500); 18 Jul 2003 05:02:58 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 73714 invoked from network); 18 Jul 2003 05:02:57 -0000 Received: from imap.gmx.net (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 18 Jul 2003 05:02:57 -0000 Received: (qmail 6755 invoked by uid 65534); 18 Jul 2003 05:03:07 -0000 Received: from a183069.studnetz.uni-leipzig.de (EHLO gmx.de) (139.18.183.69) by mail.gmx.net (mp026) with SMTP; 18 Jul 2003 07:03:07 +0200 Message-ID: <3F177F99.3000200@gmx.de> Date: Fri, 18 Jul 2003 07:03:21 +0200 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: de-de, de, en-gb, en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Command Line Interface References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello Steven, this was a bug in the CocoonBean. The logger was used before it was initialized. I have fixed it in the CVS. This happened only if you should get an error before initializing the logger. In your case (line 178) you should have seen this error: "Please, specify at least one starting URI." If you use current CVS, your won't get the NPE. Thanks for reporting. Joerg Steven Kurzman wrote: > Hello, > I'm having problems using the command line interface and hope somebody can > help me out. I don't know Java and am very new to Cocoon, using 2.1m3 and > Tomcat 4.1.24 on Mac OS 10.2. > > I read the instructions at wiki.cocoondev.org/Wiki.jsp?page=CommandLine and, > from my /Cocoon/build/webapp directory containing both a cocoon.xconf and > sitemap.xmap, did > > ./cocoon.sh cli -x cocoon.xconf > > It loads all the .jar files from WEB-INF/lib but then gives me > > -------------------- Executing ----------------- > Main Class: org.apache.cocoon.Main > ERROR: Unknown element: sitemap > ------------------------------------------------------------------------ > cocoon 2.1m3 > Copyright (c) 1999-2003 Apache Software Foundation. All rights reserved. > ------------------------------------------------------------------------ > > > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at Loader.invokeMain(Unknown Source) > at Loader.run(Unknown Source) > at Loader.main(Unknown Source) > Caused by: java.lang.NullPointerException > at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:178) > at org.apache.cocoon.Main.main(Main.java:374) > ... 7 more > > I've tried variations on the ./cocoon.sh command, editing the cli.xconf > file, etc., but always get this exception. > > What does this mean? What am I doing wrong? How can I do it correctly? > Thank you very much for any help! > > Steve Kurzman --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org