cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Rosman" <>
Subject Re: Cocoon 2.2 Without Tears
Date Wed, 30 Jul 2008 23:43:23 GMT
> This article describes how to start with the webapp archetype and
> end up with a configuration that behaves like Cocoon 2.1.x:
> You can modify sitemaps, flowscript, and other content without
> restarting the servlet. All content files can be edited in place on
> the server.

Interesting article.  That would have been *really* useful about a month ago :-)

You mention in your article that you couldn't get the system to read
your properties from the tomcat servlet context - neither could I.

I tried adding a ServletContextPropertyPlaceholder to the application
but my Spring knowledge is pretty poor so I don't know if I was doing
it right. Cocoon stopped working (can't remember the error).

In the end I wrote a trivial bean that copied the servlet
initialisation parameters from the context and provided them to cocoon
by implementing the spring interface ServletContextAware and the
cocoon interface PropertyProvider.

Even that took a while to get going since I hadn't set the bean id to
the PropertyPlaceholder.ROLE as specified in the interface

Stephen Rosman

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

View raw message