Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 32898 invoked from network); 26 Nov 2003 15:58:07 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Nov 2003 15:58:07 -0000 Received: (qmail 19369 invoked by uid 500); 26 Nov 2003 15:57:52 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 19354 invoked by uid 500); 26 Nov 2003 15:57:52 -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 19340 invoked from network); 26 Nov 2003 15:57:52 -0000 Received: from unknown (HELO mailserver1b.viaginterkom.de) (62.180.31.22) by daedalus.apache.org with SMTP; 26 Nov 2003 15:57:52 -0000 Received: from mailserver1.viaginterkom.de (localhost [127.0.0.1]) by mailserver1b.viaginterkom.de (Postfix) with ESMTP id D3DD59DDCA for ; Wed, 26 Nov 2003 16:57:19 +0100 (MET) Received: from muc8lx02.viaginterkom.de (unknown [10.120.4.37]) by mailserver1.viaginterkom.de (Postfix) with ESMTP id 914C942B12 for ; Wed, 26 Nov 2003 16:57:19 +0100 (MET) To: users@cocoon.apache.org Subject: Precompilation of XSP-files via CLI - flag precompile-only broken MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.10 March 22, 2002 Message-ID: From: Jonas.Kilian@o2.com Date: Wed, 26 Nov 2003 16:57:17 +0100 X-MIMETrack: Serialize by Router on MUC8LX02/SPOKE/o2-Germany(Release 5.0.11 |July 24, 2002) at 11/26/2003 16:57:19, Serialize complete at 11/26/2003 16:57:19 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, has anybody managed to precompile XSP-files during the ANT build-process? I'm able to execute a pipeline using cocoon 2.1.1 command line interface: If I set precompile-only="false" in my custom cli.xconf, cocoon then generates *_xsp.java and *_xsp.class files into its work directory. Fine, but my pipeline is also executed, which I DO NOT want! If I specify precompile-only="true", no xsp file gets precompiled, instead cocoon produces the following error: java.lang.NullPointerException at org.apache.cocoon.environment.AbstractEnvironment.initComponents(AbstractEnvironment.java:532) at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:511) at org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnvironment.java:500) at org.apache.cocoon.Cocoon.precompile(Cocoon.java:735) at org.apache.cocoon.bean.CocoonBean.processXSP(CocoonBean.java:930) at org.apache.cocoon.bean.CocoonBean.process(CocoonBean.java:636) at org.apache.cocoon.Main.main(Main.java:375) This happens, because no CocoonComponentManager is instantiated, the call this.manager = CocoonComponentManager.getSitemapComponentManager(); in line 531 obviously returns null, which leads to the above NPE when looking up the component org.apache.excalibur.source.SourceResolver. Seems like a bug to me, can anyone provide further details? Thanks a lot, Jonas ---------------------------------------------------------------------------------------------------- This electronic message contains information from the mmo2 plc Group which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org