Rough Installation instructions =============================== First install and start the Daisy server as described in ../../README.txt 1. Start merlin as described in ../../README.txt (hint: this in itself requires that openjms and mysql are running) 2. Go to the daisy/install subdir and execute: daisy-wiki-init-dev (linux: sh daisy-wiki-init-dev if not executable) NOTE THE -dev ON THE END OF THE NAME OF THE SCRIPT! First you will be asked for a user, enter "testuser", password "testuser". Next you're asked for the address of the repository server, just press enter. Later on you're asked for a password for the 'registrar' user. It will suggest a random generated password, but for a development environment it is easiest to enter here 'defaultpwd' (without the quotes) (otherwise you'll need to ajdust the password in the cocoon.xconf file after each clean build). The install program continues its work and finishes. 3. Still in daisy/install, execute: daisy-wiki-add-site-dev Use again testuser/testuser to login, and enter when asked for the address of the repository server. Then you're asked for the name of the site to create. Choose something, for example "testsite". When asked for the "sites directory location", the proposed default should be ok, so just press enter. 4. Check out a snapshot of Cocoon 2.1.X SVN. This can be done with the following command: svn co http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X cocoon Note 1: due to some restructering of the cocoon.xconf file in Cocoon 2.2, Daisy currently does not work with the 2.2 branch of Cocoon. Note 2: Daisy does not work with the Cocoon 2.1.6 release 3. Go to daisy/applications/daisywiki/xmlschema-bindings subdir and execute: maven jar:install 4. Go to the daisy/applications/daisywiki/frontend subdir Edit/create the file build.properties and specify a property called cocoon.dist.home pointing to your Cocoon source tree. When using windows, you have to specify this path using double backslashes (e.g. c:\\applications\\mycocoon2.1) or otherwise the build will fail. Then execute: maven cocoon.get This will build a Cocoon. Can take a while. Once this is done, execute: maven This will build Java code and deploy/build the webapp. To run it, execute: maven cocoon.run You can view the app by surfing to: http://localhost:8888/daisy/ (hint: you still need to have merlin, and thus also openjms and mysql running) To view your created site, go to: http://localhost:8888/daisy/testsite/ By default, you're guest user, so you won't be able to edit or create anything unless you change the login. You can login with testuser/testuser. After doing this for the first time, you can start Cocoon by directly executing the script target/cocoon/runc2.sh, which will avoid the maven overhead.