8 Nov 05:39
Backing up a .war version from the command line.
Dave Levy <david-levy <at> btconnect.com>
2006-11-08 04:39:52 GMT
2006-11-08 04:39:52 GMT
Mattias wrote to me advising me to upgrade to V1.0b3. A bit of digging around with a colleague showed that there were bugs in the xmlrpc jar in V1.0b2. I have upgraded and have different diagnostics, although they look better. Any ideas how to progress? Problem Statement I have installed snipsnap 1.03b uttoexeter .war running under tomcat V4.13 on a Cobalt Qube Linux 2.2.16C37_III. I have redirection working on my apache 1.3 web server. I am looking to use the utilities to automate the backup of the database which is mounted on files. The utilities .jar is still missing from the .war. I have copied it and mkoidb.jar to the tomcat ./lib directory. The error message is now ./backupSnipsnap.sh 1.0 ... starts ./backupSnipsnap.sh 1.0 /usr/local/tomcat/webapps/lennon/WEB-INF ./backupSnipsnap.sh 1.0 snipsnap host is http://192.168.1.99:8080/lennon ./backupSnipsnap.sh 1.0 backup file is mysnipsnapdump.xml SnipSnap AdminClient ($Revision: 1731 $) Copyright (c) 2000-2006 Fraunhofer Gesellschaft Fraunhofer Institute for Computer Architecture and Software Technology All Rights Reserved. See License Agreement for terms and conditions of use. Responsible Authors: Stephan J. Schmidt, Matthias L. Jugel. Contacting Remote Server ... AdminClient: error executing command: http://192.168.1.99:8080/RPC2 The script is #!/bin/sh Pname=$0 ; Pver=1.0 print() { echo $Pname $Pver $* } print ... starts # # Ver 1.0 - This version works from tomcat/wepapps/$instancename/WEB-INF # and does NOT either set or use the classpath statement print $(pwd) # Env export JAVA_HOME="/usr/java/j2sdk1.4.2_04" export PATH=${PATH}:${JAVA_HOME}/bin APP_HOME=/usr/local/tomcat/webapps/lennon APP_LIB=${APP_HOME}/WEB-INF/lib # Backup SnipsnapHost="http://192.168.1.99:8080/lennon"; print snipsnap host is ${SnipsnapHost} export BackUpFile=mysnipsnapdump.xml; print backup file is ${BackUpFile} java -jar lib/snipsnap-utils.jar \ -url ${SnipsnapHost} \ -user "boss" -password "realpassword" \ snipSnap.dumpXml > ${BackUpFile} I can't find any docs for RPC2 failure. Any Ideas -- -- -- Dave David Levy Private & Confidential: This e-mail is intended for the addressee only. If you are not an addressee, you have no rights to use the information contained in this letter. Please destroy and notify me that an error delivery has occurred.
RSS Feed