cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <>
Subject Re: Modifying web.xml / loading a class when application starts
Date Mon, 17 Mar 2008 21:50:27 GMT
shai200 pisze:
> Hello,


> The following POM goal:
> mvn cocoon:rcl
> Implies that web.xml, applicationContext.xml, and the rest of the stuff in
> webapp/WEB-INF is automatically generated by maven... But how do I
> edit/modify them? Do I do it through the POM or is there some kind of way to
> tell maven to use my own file?

See here:

> My second question is - how do I define a particular class to load when the
> web server loads, when I use the Jetty webapp container example from the
> Cocoon2 getting started guides? Do I do this through web.xml or
> applicationContext.xml, or perhaps by editing the POM file?

Hmmm, if you want to just load it you should use the features mentioned here:

There you have instructions how to load HSQL driver, but this mechanism is general so you
can create 
properties file with name whatever you like and use format:

Where some_group_id is of your choice.

I hope this helps you a little bit.

Grzegorz Kossakowski

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

View raw message