cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: Precompilation of XSP-files via CLI - flag precompile-only broken
Date Wed, 26 Nov 2003 16:01:13 GMT
Precompilation of XSPs was fixed by Carsten shortly before 2.1.3 was 
released. I'd therefore suggest you consider upgrading.

If you're running from an Ant build process, you'll find a new, as yet 
largely untested Ant task in 2.1.3 too at org.apache.cocoon.CocoonTask. 
It'll do everything the CLI can do, except that you can embed the 
configuration (cli.xconf) into your Ant script rather than having to 
refer to another file. If you want to try it, let me know and I'll send 
you a sample build file. I'd be very pleased if you tried it, as I'm 
curious to see if other people can get it to work.

With best wishes,

Upayavira wrote:

>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 * 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:
>    at 
>    at 
>    at 
>    at org.apache.cocoon.Cocoon.precompile(
>    at org.apache.cocoon.bean.CocoonBean.processXSP(
>    at org.apache.cocoon.bean.CocoonBean.process(
>    at org.apache.cocoon.Main.main(
>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,
>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 
>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:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message