Daisy upgrade

Eens kijken of het echt zo eenvoudig is als de reclame zegt.

Stap één: nieuwe versie downloaden.

# wget http://svn.cocoondev.org/dist/daisy/daisy-1_1_0.tgz

Stap twee: uitpakken.

# tar -xvzf daisy-1_1_0.tgz

Stap drie: repository backuppen.

#
mysqldump daisyrepository -uuser -ppassword >
daisyrepo.sql

Stap vier: (mijn stomme schuld, ik had de eerste versie in een directory daisy-1_0_0 gestoken in plaats van het meer logische daisy) $DAISY_HOME aanpassen in /etc/profile.

Stap vijf: database schema updaten.

# mysql -Ddaisyrepository -udaisy -p
mysql> \. daisy-1_0-to-1_1_update.sql

Stap zes: bestanden (configuratie- en andere) overcopiëren van de oude versie naar de nieuwe:

# cp daisy-1_0_0/openjms/config/openjms.xml $DAISY_HOME/openjms/config/openjms.xml
# cp -r daisy-1_0_0/daisywiki/webapp/daisy/sites/* $DAISY_HOME/daisywiki/webapp/daisy/sites

Stap zes-B: in $DAISY_HOME/daisywiki/webapp/WEB-INF/cocoon.xconf het wachtwoord voro de internal user juist zetten in <cacheUser login="internal" password="defaultpwd"/>.

Stap zes-C: in $DAISY_HOME/openjms/bin/setenv.sh de juiste MySQL-driver in het CLASSPATH smijten (t.t.z. $DAISY_HOME/lib/mysql/jars/mysql-connector-java-3.0.15-ga-bin.jar).

Euh, en dat zou het moeten zijn.

# cd $DAISY_HOME/install
# ./daisy-wiki-init

Aaannnddd…

A user with Administrator role is needed.
Enter login:
mvuijlst
Enter password:
*****
Address where daisy repository is listening [default = http://localhost:9263] :

--------------------------------------------------------------------------
Creating guest user and role.
--------------------------------------------------------------------------
Existing guest role found, id = 101
Existing guest user found, id = 101

--------------------------------------------------------------------------
ACL initialisation
--------------------------------------------------------------------------

ACL is not empty -- will not touch it.

--------------------------------------------------------------------------
Schema creation
--------------------------------------------------------------------------

Part Type NavigationDescription already exists, will update it if necessary.
Document Type Navigation already exists, will update it if necessary.
Part Type SimpleDocumentContent already exists, will update it if necessary.
Document Type SimpleDocument already exists, will update it if necessary.
Part Type ImageData already exists, will update it if necessary.
Document Type Image already exists, will update it if necessary.
Part Type AttachmentData already exists, will update it if necessary.
Document Type Attachment already exists, will update it if necessary.

Finished.

Sieht gut aus.

# $DAISY_HOME/daisywiki/bin/daisi-wiki

…en nu eens gaan kijken naar de site op http://192.168.111.5:8888/daisy/gclc.

Ah crap:

org.apache.cocoon.ProcessingException: Unable to get transformer
handler for
file:/usr/share/daisy/daisywiki/webapp/daisy/resources/skins/gclc/xslt/document-to-html.xsl:
org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in
creating Transform Handler

Tiens, ik dacht nochtans dat ik al die sites meegecopieerd had in stap zes? Ah nee, juist alleen de sites gecopieerd, niet de skins mee. Hang on…

If you developed a custom skin, then you’ll have to update it to work with
the new version. There’s no easy or quick way to do this.

Allez ju, ze zijn tenminste eerlijk 😀

Eens kijken wat en hoe…

Naiefgawijs cp -r /usr/share/daisy-1_0_0/daisywiki/webapp/daisy/resources/skins/gclc/ $DAISY_HOME/daisywiki/webapp/daisy/resources/skins/… Wat doet dat?

Eh. Alles lijkt weer te werken. Zeer vreemd. ‘t Zal wel zijn omdat ik nog geen enkele ingewikkelde zaak doe in mijn skin zeker?