cancel
Showing results for 
Search instead for 
Did you mean: 

Records Managmenet module

tmassa
Champ in-the-making
Champ in-the-making
I have downloaded Alfresco 2.1 from one of the nightly builds and i am trying to install the records management module. I downloaded the file into the amps directory and the readme file there states that to install i can use a script called apply_amps.sh, which i can't find anywhere. I also tried using the install method mentioned in the wiki, but i get an error message (see below)

wicat:/opt/alfresco/bin root# java -jar alfresco-mmt.jar install /opt/alfresco/amps/alfresco-recordsmanagement.amp /opt/alfresco/tomcat/webapps/alfresco.war
Exception in thread "main" java.util.zip.ZipException: No such file or directory
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:203)
        at java.util.jar.JarFile.<init>(JarFile.java:132)
        at java.util.jar.JarFile.<init>(JarFile.java:70)
        at com.simontuffs.onejar.Boot.run(Boot.java:179)
        at com.simontuffs.onejar.Boot.main(Boot.java:105)

Any help is much appreciated.
Thanks
7 REPLIES 7

sdavis
Champ in-the-making
Champ in-the-making
What OS are you on?  I'm seeing the exact same error message using the latest release from SVN on Macosx (10.4.10) with Java 1.5.0.

tmassa
Champ in-the-making
Champ in-the-making
I am running OS X Server. I downloaded Alfresco 2.1 not RC1 from the nightly builds and they seem to have included a folder for the amps with a script to install them, but the script is nowhere to be found.

sdavis
Champ in-the-making
Champ in-the-making
#!/bin/sh
# ——-
# Script for apply AMPs to installed WAR
# ——-

export CATALINA_HOME=tomcat

echo "This script will apply all the AMPs in %ALF_HOME%amps to the alfresco.war
file in %CATALINA_HOME%\webapps"
echo "Press control-c to stop this script . . ."
read -p "Press any other key to continue . . ."
java -jar bin/alfresco-mmt.jar install ./amps %CATALINA_HOME%/webapps/alfresco.w
ar -directory

sh ./bin/clean_tomcat.sh

sdavis
Champ in-the-making
Champ in-the-making
Posted above… it's part of the SVN distro.  As you can see, nothing special occurring really as far as the call to mmt.  Suspect the issue is something deeper.

sdavis
Champ in-the-making
Champ in-the-making
Found a similar problem that points to the underlying one-jar package being used.  Created a ticket for this at

http://issues.alfresco.com/browse/AR-1620

tmassa
Champ in-the-making
Champ in-the-making
I get the following error

wicat:/opt/alfresco root# ./apply_amps.sh
This script will apply all the AMPs in %ALF_HOME%amps to the alfresco.war file in %CATALINA_HOME%\webapps
Press control-c to stop this script . . .
Press any other key to continue . . .
./mmt.sh: line 6: uezip.jar:./tomcat/webapps/alfresco/WEB-INF/lib/log4j-1.2.8.jar:./tomcat/webapps/alfresco/WEB-INF/lib/spring.jar:./tomcat/webapps/alfresco/WEB-INF/lib/commons-logging.jar: No such file or directory
java.lang.NoClassDefFoundError: de/schlichtherle/io/FileInputStream
: command not found "main" ./bin/clean_tomcat.sh: line 5:
Cleaning temporary Alfresco files from Tomcat…

I even tried modifying the script because commons-logging.jar and spring.jar have version numbers appended to them in my Alfresco install and that still didn't work.

HELP!!!

tmassa
Champ in-the-making
Champ in-the-making
I tried it again with the correct file names, still no luck.

Here is the output and the script.

SCRIPT

#!/bin/sh
# Install an AMP file into an Alfresco WAR
# set the LIB_DIR value to point to the Alfresco lib directory
export LIB_DIR='./tomcat/webapps/alfresco/WEB-INF/lib'
export TEMP_CLASS_PATH=$LIB_DIR/alfresco-repository.jar:$LIB_DIR/alfresco-core.jar:$LIB_DIR/tr
uezip.jar:$LIB_DIR/log4j-1.2.8.jar:$LIB_DIR/spring-2.0.2.jar:$LIB_DIR/commons-logging-1.0.4.jar
java -cp "$TEMP_CLASS_PATH" org.alfresco.repo.module.tool.ModuleManagementTool $1 $2 $3 $4 $5
$6 $7

OUTPUT

wicat:/opt/alfresco root# ./apply_amps.sh
This script will apply all the AMPs in %ALF_HOME%amps to the alfresco.war file in %CATALINA_HOME%\webapps
Press control-c to stop this script . . .
Press any other key to continue . . .
./mmt.sh: line 6: uezip.jar:./tomcat/webapps/alfresco/WEB-INF/lib/log4j-1.2.8.jar:./tomcat/webapps/alfresco/WEB-INF/lib/spring-2.0.2.jar:./tomcat/webapps/alfresco/WEB-INF/lib/commons-logging-1.0.4.jar: No such file or directory
java.lang.NoClassDefFoundError: de/schlichtherle/io/FileInputStream
: command not found "main" ./bin/clean_tomcat.sh: line 5:
Cleaning temporary Alfresco files from Tomcat…