cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugh Sparks" <h...@csparks.com>
Subject Cocoon22 - core.properties and modes with Tomcat
Date Tue, 24 Jun 2008 23:27:29 GMT
How do I specify the operating mode when running cocoon under Tomcat?

I have a webapp that I built and tested with jetty.
It has some changes to core.properties file in:

src\main\resources\META_INF\cocoon\properties\dev\core.properties

I set the mode to "dev" in the POM for the maven-jetty-plugin:

    <configuration>
     ...
    <systemProperties>
        <systemProperty>
            <name>org.apache.cocoon.mode</name>
            <value>dev</value>
        </systemProperty>
    </systemProperties>

This works ok.

When I take the war file and deploy it under Tomcat, the core.properties 
under
the dev directory are ignored, but they work if I move them to a "prod" 
subdirectory
instead. In the deployed instance, the path is:

    WEB-INF\classes\META-INF\cocoon\properties\prod\core.properties

So the mode has evidently become "prod" instead of "dev".
How can I set this when running with Tomcat rather than jetty?

Thanks to all,

-Hugh Sparks, hugh@csparks.com




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message