cancel
Showing results for 
Search instead for 
Did you mean: 

Records Management in Alfresco 2.0 final

evdgeest
Champ in-the-making
Champ in-the-making
I installed the alfresco community edition 2.0 on a windows 2003 server, I want to use the Records Management module.

I read a couple of threads in this forum but still not managed to activate/install the Records Management module. I also read the Records Management User Guide on the Wiki, but that did not tell how to install the module.

So can someone help me how to activate/install the Records Management module.

Many thanks.

Best regards
Edwin
21 REPLIES 21

kevinr
Star Contributor
Star Contributor
The 2.0 Records Management AMP (Alfresco Module Package) file will be uploaded to SourceForge today Smiley Happy

Thanks,

Kevin

evdgeest
Champ in-the-making
Champ in-the-making
Thank you very much!

Can you tell me if the following line from the example on http://wiki.alfresco.com/wiki/Module_Management_Tool will work?

ModuleManager.bat /module/recordsManagement.amp /install/Alfresco.war -verbose -preview

That would be great! :lol:

Thanks in advance,
Edwin

aborba
Champ in-the-making
Champ in-the-making
The 2.0 Records Management AMP (Alfresco Module Package) file will be uploaded to SourceForge today Smiley Happy

Thanks,

Kevin

Hi, the module uploaded to SourceForge is the "recordsManagement-1.0.amp". Assuming this is the good one, i still have problems adding it to alfresco.war with "ModuleManager.sh":
* "ModuleManager.sh" seems to be a windows script.
* After rewriting it and verifying all paths exist, still the following error:
"Exception in thread "main" java.lang.NoClassDefFoundError: org/alfresco/repo/module/tool/ModuleManagementTool"

Appreciate any help on this matter. António

evdgeest
Champ in-the-making
Champ in-the-making
I used the ModuleManager.bat in the command prompt, using the following command:
C:\Alfresco\extras\Module-Management>ModuleManager.bat install recordsManagement.amp alfresco.war

I get the following message:
log4j:WARN No appenders could be found for logger (org.alfresco.repo.extension.ModuleManagementTool).
log4j:WARN Please initialize the log4j system properly.

I copied the alfresco.war to the webapps directory, after that I started alfresco. But in the web client I don't see any changes, not a space, not a template. So I used the command:
C:\Alfresco\extras\Module-Management>ModuleManager.bat list alfresco.war

But the response to that was a message of the available commands.
Can someone tell me how if the recordsManagement.amp is correct installed and why the list command doesn't work.

The Module management tool also made an alfresco-*.bak in the same directory, what am I supposed to do with that?

Thanks in advance.

Edwin

aborba
Champ in-the-making
Champ in-the-making
Well, for now it seems I managed to add "recordsManagement-1.0.amp" to "alfresco.war" on a Linux Fedora instalation. Anyway, it doesn't seem to show up in the web interface.

I rewrote the "ModuleManager.sh" to look like this:

#=====================================
#!/bin/sh
# Install an AMP file into an Alfresco WAR

# set the ALFRESCO value to point to the Alfresco directory
ALFRESCO="/opt/Alfresco"

# Path to JAVA
JAVA="$ALFRESCO/java/bin/java"

# set the LIB_DIR value to point to the Alfresco lib directory
LIB_DIR="$ALFRESCO/tomcat/webapps/alfresco/WEB-INF/lib"
TEMP_CLASS_PATH="$LIB_DIR/repository.jar:$LIB_DIR/core.jar:$LIB_DIR/truezip.jar:$LIB_DIR/log4j-1.2.8.jar:$LIB_DIR/spring.jar:$LIB_DIR/commons-logging.jar"

$JAVA -cp $TEMP_CLASS_PATH org.alfresco.repo.module.tool.ModuleManagementTool $1 $2 $3 $4 $5 $6 $7
#=====================================

Then, i shutdown Alfresco:
# /opt/Alfresco/alf_stop.sh

Next, i ran the command:
# sh ModuleManager.sh install recordsManagement-1.0.amp /opt/Alfresco/tomcat/webapps/alfresco.war -verbose -preview

Everything seems smooth so, i installed it:
# sh ModuleManager.sh install recordsManagement-1.0.amp /opt/Alfresco/tomcat/webapps/alfresco.war -verbose

Then i listed alfresco.war to check is was installed:
# sh ModuleManager.sh list /opt/Alfresco/tomcat/webapps/alfresco.war

It shows the following:
Module 'recordsManagement' installed in '/opt/Alfresco/tomcat/webapps/alfresco.war'
log4j:WARN No appenders could be found for logger (org.alfresco.repo.extension.ModuleManagementTool).
log4j:WARN Please initialize the log4j system properly.
   - Title: Records Management
   - Version: 1.0
   - Install Date: Wed Feb 28 12:49:23 WET 2007
   - Desription: Alfresco Record Management Extension

Then, i started Alfresco:
# /opt/Alfresco/alf_start.sh

The behaviour of Alfresco didn't change. It behaves as if Records Management were not installed. i.e. no file plan or RM aspects can be added to file.

Thanks for help. António

kbpair
Champ in-the-making
Champ in-the-making
I made changes to the paths and syntax in the shell file but i am now getting the error below. I am still evaluating Alfresco and would like to know if all Alfresco development is done on Windows. I can start the process of getting a windows machine to run this on and maybe that would reduce the number of issues (I need CIFS functionality as well).


Failed to load Main-Class manifest attribute from
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/core.jar
Usage: nzip COMMAND …

where COMMAND is one of (case is ignored):

        ls [PATH] …                           Similar to GNU "ls"
        ll [PATH] …                           Similar to GNU "ls -l"
        llR [PATH] …                          Similar to GNU "ls -lR"
        cat FILE …                            Like GNU "cat"
        cp [-unzip|-cp437in|-utf8in|-cp437out|-utf8out] SRC … DST     Similar to GNU "cp -a"
        mv SRC … DST                          Like GNU "mv"
        touch PATH …                          Like GNU "touch"
        mkdir PATH …                          Like GNU "mkdir"
        mkdirs PATH …                         Similar to GNU "mkdir -p"
        rm PATH …                             Like GNU "rm"
        rmR PATH …                            Like GNU "rm -r"
        isFile PATH                             Tests if PATH is a file
        isDirectory PATH                        Tests if PATH is a directory
        exists PATH                             Tests if PATH exists

For more information please refer to the respective man pages (on Linux).

Options (case is ignored):

        -unzip          Treat any ZIP like pathnames in DST as plain
                        directories.
        -cp437(in|out)  Force any ZIP entry names in SRC/DST to be encoded in CP437.
        -utf8(in|out)   Force any ZIP entry names in SRC/DST to be encoded in UTF-8.

/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/log4j-1.2.8.jar: PK^C^D: not found
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/log4j-1.2.8.jar: \354^PT.: not found
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/log4j-1.2.8.jar: syntax error at line 7: `(' unexpected
Failed to load Main-Class manifest attribute from
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/spring.jar
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/commons-logging.jar: PK^C^D: not found
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/commons-logging.jar: \347D\207.: not found
/apps/jb-util/alfresco_tomcat/tomcat/webapps/alfresco/WEB-INF/lib/commons-logging.jar: syntax error at line 10: `)' unexpected
Exception in thread "main" java.lang.NoClassDefFoundError: de/schlichtherle/io/File

bagsied
Champ in-the-making
Champ in-the-making
Hi Kevin from Alfresco, the newly uploaded records management amp as of Feb 27, 2007 still not working.
I followed the instruction in the readme.txt but still encountered error message, the same message encountered by previous poster:
"Exception in thread "main" java.lang.NoClassDefFoundError: org/alfresco/repo/module/tool/ModuleManagementTool

Can you please tell us is there anything wrong in what we are doing or some bug in the amp?

Thanks in advance for your time to fix this problem. We are evaluating ECM products and the fix on this will help us proceed on the evaluation. I would like your company to be included in our RFP but I cannot justify until I can show them something.

thanks.

aborba
Champ in-the-making
Champ in-the-making
Hi Kevin from Alfresco, the newly uploaded records management amp as of Feb 27, 2007 still not working.
I followed the instruction in the readme.txt but still encountered error message, the same message encountered by previous poster:
"Exception in thread "main" java.lang.NoClassDefFoundError: org/alfresco/repo/module/tool/ModuleManagementTool

Can you please tell us is there anything wrong in what we are doing or some bug in the amp?

Thanks in advance for your time to fix this problem. We are evaluating ECM products and the fix on this will help us proceed on the evaluation. I would like your company to be included in our RFP but I cannot justify until I can show them something.

thanks.

The problem i found there is that the separator in CLASSPATH must be colon ":" instead of semicolon ";"

Anyway, after installation the RecordsManagement functionality still does notwork (you cannot set aspects for file plan, file plan doesn't show up in Space templates, etc.)

kbpair
Champ in-the-making
Champ in-the-making
I took the time to re-install everything on a windows server. After adjusting the hardcoded path in ModuleManager.bat it ran without error.

However, I see no change in the application, no file plan, etc…

Here is the output from the install:


Installing AMP '..\..\recordsManagement-1.0.amp' into WAR '..\..\tomcat\webapps\
alfresco.war'
log4j:WARN No appenders could be found for logger (org.alfresco.repo.extension.M
oduleManagementTool).
log4j:WARN Please initialize the log4j system properly.
WAR has been backed up to '..\..\tomcat\webapps\alfresco.war-1172782191685.bak'
Adding files relating to version '1.0' of module 'recordsManagement'
   - File '/WEB-INF/lib/rm.jar' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap/rm_javas
cripts.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap/rm_file_
plan.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap/rm_templ
ates.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap/rm_categ
ories.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap/rm_group
s.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap/records_
space.acp' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/bootstrap' ad
ded to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/action/disp
ositionAction_transfer.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/action/disp
ositionAction_accession.js' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/script/action
' added to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onRemoveAsp
ect_rmaHeld.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaRecord.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaCutoff.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onCreateChi
ldAssociation_rmaFilePlan_cmContains.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/ui/uiAction
_addRemoveAspect.js' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/script/ui' ad
ded to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onContentUp
date_rmaRecord.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/scheduled/s
cheduled_cutoff.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/scheduled/s
cheduled_removeHold.js' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/script/schedu
led' added to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaVitalRecord.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaObsolete.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaSuperseded.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaHeld.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onCreateNod
e_rmaFilePlan.js' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/script/onAddAspect
_rmaCutoffSchedule.js' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/script' added
to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/context/bootstrap-
context.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/context/behaviour-
context.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/context/script-con
text.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/context/action-con
text.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/context' adde
d to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/template/record_te
mplate.ftl' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/template/fileplan_
template.ftl' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/template' add
ed to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/model/recordsModel
.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/model' added
to war
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/module-context.xml
' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/recordsManagement/ui/web-client-cust
om.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement/ui' added to
war
   - Directory '/WEB-INF/classes/alfresco/module/recordsManagement' added to war