You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Eddy Fras <ef...@softeam.fr> on 2004/04/28 19:16:11 UTC
Blocks description
Hi,
I have to migrate a Cocoon 2.0.4 application to the 2.1.4 release.
The new Cocoon 2.1.4 comes with a lot of blocks I guess I don't need in my
application ; in order to minimize the size of the application, I would like
to select only the necessary blocks for my application at build time.
The problem is that I'm not able to find a description of each available
block, I don't know if I can exclude some of them and keep having my
application working.
So, the question is : is there somewhere a detailed description of all the
blocks and their dependences with the Cocoon core module ?
Thanks,
Eddy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ant static generation - class not found DOMError
Posted by Stefan Klein <kl...@web.de>.
Hi Upayavira,
thanks for helping.
> Does it work with the CLI instead of the ant task?
No, unfortunately that doesn't work, either. I used the sample xconfig
file from
http://cocoon.apache.org/2.1/userdocs/offline/configuration.html#Sample+xconf+File
with minor changes for my project. I can see the CLI loading all the
jars, but as soon as it starts executing, I get the error:
Main Class: org.apache.cocoon.Main
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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.NoClassDefFoundError: org/apache/commons/cli/Options
at org.apache.cocoon.Main.setOptions(Main.java:132)
at org.apache.cocoon.Main.main(Main.java:255)
... 7 more
Before, while loading the jars, it said however, that commons-cli-1.0.jar
was added and that one does contain org.apache.commons.cli.Options.
So, since CLI didn't work, I tried the ant task, but, as I said, not with
any more success.
> Are you using
> org.apache.cocoon.CocoonTask? (There's an older one in the scratchpad
> which I'll remove soon).
Yes, I am. I copied the sample ant task from
http://cocoon.apache.org/2.1/userdocs/offline/ant.html#Sample+Ant+Task
and made some minor modifications for my own project.
Thanks
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: ant static generation - class not found DOMError
Posted by Upayavira <uv...@upaya.co.uk>.
Stefan Klein wrote:
>Hi,
>
>I am trying to use the "cocoon" ant task to generate a static website.
>The error I am getting is:
>NoClassDefFound: org.w3c.dom.DOMError.
>Guessing that it should be in xml-apis.jar and checking, I found that the
>class, indeed, doesn't exist. Not in the lastest xml-apis.jar from CVS,
>either, though.
>What do I need to replace?
>
>
Does it work with the CLI instead of the ant task? Are you using
org.apache.cocoon.CocoonTask? (There's an older one in the scratchpad
which I'll remove soon).
Regards, Upayavira
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
ant static generation - class not found DOMError
Posted by Stefan Klein <kl...@web.de>.
Hi,
I am trying to use the "cocoon" ant task to generate a static website.
The error I am getting is:
NoClassDefFound: org.w3c.dom.DOMError.
Guessing that it should be in xml-apis.jar and checking, I found that the
class, indeed, doesn't exist. Not in the lastest xml-apis.jar from CVS,
either, though.
What do I need to replace?
Thanks a lot
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Blocks description
Posted by Tony Collen <co...@umn.edu>.
Eddy Fras wrote:
> Hi,
>
> I have to migrate a Cocoon 2.0.4 application to the 2.1.4 release.
> The new Cocoon 2.1.4 comes with a lot of blocks I guess I don't need in my
> application ; in order to minimize the size of the application, I would like
> to select only the necessary blocks for my application at build time.
> The problem is that I'm not able to find a description of each available
> block, I don't know if I can exclude some of them and keep having my
> application working.
> So, the question is : is there somewhere a detailed description of all the
> blocks and their dependences with the Cocoon core module ?
>
.. and the answer is yes, there is:
http://wiki.cocoondev.org/Wiki.jsp?page=BlockDescriptions
It might be a little out of date, but should get you started.
> Thanks,
>
> Eddy
Regards,
Tony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org