As a continuation from the (Unofficial) D7.1 Developer Edition, now let’s install D2 (hopefully 3rd part will be installing xCP 2.1, when EMC publishes it)
As I did with the first part, I’ve used Ingo Zitzmann’s (Unofficial) D2 Developer Edition *Draft* as reference to this guide.
Also, before installing, you may want to check the following threads:
D2 causing ClassCastException in Logger class in JMS
Error during executing D2LifecycleChangeStateMethod
Environment
- VM created in (Unofficial) D7.1 Developer Edition
Required software
- emc-dfs-sdk-7.1.tar.gz
- D2_Premium_4.2.0.zip
D2 Installation
Installation
- Stop Tomcat, JMS, Content Server and docbroker
- Unzip DFS package
[dmadmin@vm-dctm71 D2]$ tar xzvf emc-dfs-sdk-7.1.tar.gz</p>
- Move DFS SDK to $DOCUMENTUM
[dmadmin@vm-dctm71 D2]$ mv emc-dfs-sdk-7.1 $DOCUMENTUM
- Modify dfc.properties to use the existing content server dfc.properties file
[dmadmin@vm-dctm71 D2]$ vi /opt/documentum/emc-dfs-sdk-7.1/etc/dfc.properties #include /opt/documentum/config/dfc.properties
- Unzip sample app (just to have something to check D2 it’s working)
[dmadmin@vm-dctm71 D2]$ unzip HR\ Config\ D2\ 4.2\ -\ Export-Config.zip -d HRConfig
- Unzip D2 installer
[dmadmin@vm-dctm71 D2]$ unzip D2_Premium_4.2.0.zip
- And let’s install D2
[dmadmin@vm-dctm71 D2_Premium_4.2.0]$ /opt/documentum/java64/1.7.0_17/bin/java -jar D2-Installer-4.2.0.jar
Although the screenshot shows I selected BPM module, I deleted it afterwards (waiting for xCP 2.1…) so I won’t be configuring that module
It seems they’ve fixed the JMS paths in this installer…
PostInstall Configuration
- Change windows paths in dfc.properties (they haven’t fixed this one):
vi /usr/share/tomcat7/webapps/D2/WEB-INF/classes/dfc.properties #include /opt/documentum/config/dfc.properties
Update the following log configuration files removing the windows paths (this one hasn’t been fixed either):
[dmadmin@vm-dctm71 classes]$ vi /usr/share/tomcat7/webapps/D2/WEB-INF/classes/logback.xml <file>/usr/share/tomcat7/logs/D2.log</file> <fileNamePattern>/usr/share/tomcat7/logs/D2-%d{yyyy-MM-dd}.log.zip</fileNamePattern> [dmadmin@vm-dctm71 classes]$ vi /usr/share/tomcat7/webapps/D2-Config/WEB-INF/classes/logback.xml <file>/usr/share/tomcat7/logs/D2-Config.log</file> <fileNamePattern>/usr/share/tomcat7/logs/D2-Config-%d{yyyy-MM-dd}.log.zip</fileNamePattern>
- Set environment variables:
D2=$DOCUMENTUM/D2 export D2 D2_LOCKBOX=$D2/Lockbox export D2_LOCKBOX CLASSPATH=$D2/D2.jar:$D2/LB.jar:$D2/LBJNI.jar export CLASSPATH LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$DM_HOME/bin:$DM_HOME/bin/FIPS:/lib:$DOCUMENTUM/java64/1.7.0_17/jre/lib/amd64/server:$D2_LOCKBOX/linux_gcc34_x64 export LD_LIBRARY_PATH PATH=$ORACLE_HOME/bin:$DM_HOME/bin:$D2_LOCKBOX/linux_gcc64_ia64:$PATH export PATH
- Create lockbox file:
[dmadmin@vm-dctm71 D2]$ java com.emc.common.java.crypto.SetLockboxProperty $D2 D2Method.passphrase D0c.umentum JVM : 1.7.0_17 (64bits)</p> '/opt/documentum/D2/D2.lockbox' file created 'D2Method.passphrase' property created
- Copy D2.lockbox to the JMS:
[dmadmin@vm-dctm71 D2]$ cp D2.lockbox /opt/documentum/jboss7.1.1/server/DctmServer_MethodServer/deployments/ServerApps.ear/APP-INF/classes/
- Create the following path:
[dmadmin@vm-dctm71 D2]$ mkdir -p /opt/documentum/jboss7.1.1/modules/emc/d2/lockbox/main</p>
- Copy LB.jar y LBJNI.jar to that folder:
[dmadmin@vm-dctm71 D2]$ cp LB* /opt/documentum/jboss7.1.1/modules/emc/d2/lockbox/main/
- Create a module.xml file with the following content:
[dmadmin@vm-dctm71 D2]$ vi /opt/documentum/jboss7.1.1/modules/emc/d2/lockbox/main/module.xml <module xmlns="urn:jboss:module:1.1" name="emc.d2.lockbox"> <resources> <resource-root path="LB.jar" /> <resource-root path="LBJNI.jar" /> </resources> </module>
- Edit jboss-deployment-structure.xml and add the following section inside the deployments node:
[dmadmin@vm-dctm71 D2]$ vi /opt/documentum/jboss7.1.1//server/DctmServer_MethodServer/deployments/ServerApps.ear/META-INF/jboss-deployment-structure.xml <dependencies> <module name="emc.d2.lockbox"/> </dependencies>
- Start docbroker, Content, JMS and (hopefully) everything should start fine (check JMS’ log as we’ve been messing with its configuration and anything out of place will cause it to fail)
Dar Installation
Install the following DARs:
- D2-DAR.dar
[dmadmin@vm-dctm71 D2]$ java -Ddar=$D2/D2-DAR.dar -Dlogpath=$D2/D2-DAR.log -Ddocbase=dm_sec_test -Duser=dmadmin -Ddomain= -Dpassword=dmadmin -cp $DM_HOME/install/composer/ComposerHeadless/startup.jar org.eclipse.core.launcher.Main -data $DM_HOME/install/composer/workspace -application org.eclipse.ant.core.antRunner -buildfile $DM_HOME/install/composer/deploy.xml
- D2Widget-DAR.dar
[dmadmin@vm-dctm71 D2]$ java -Ddar=$D2/D2Widget-DAR.dar -Dlogpath=$D2/D2Widget-DAR.log -Ddocbase=dm_sec_test -Duser=dmadmin -Ddomain= -Dpassword=dmadmin -cp $DM_HOME/install/composer/ComposerHeadless/startup.jar org.eclipse.core.launcher.Main -data $DM_HOME/install/composer/workspace -application org.eclipse.ant.core.antRunner -buildfile $DM_HOME/install/composer/deploy.xml
- Collaboration_Services.dar
[dmadmin@vm-dctm71 D2]$ java -Ddar=$D2/Collaboration_services.dar -Dlogpath=$D2/Collaboration_Services.log -Ddocbase=dm_sec_test -Duser=dmadmin -Ddomain= -Dpassword=dmadmin -cp $DM_HOME/install/composer/ComposerHeadless/startup.jar org.eclipse.core.launcher.Main -data $DM_HOME/install/composer/workspace -application org.eclipse.ant.core.antRunner -buildfile $DM_HOME/install/composer/deploy.xml
Now start tomcat and everthing should be working just fine
PS: “Ideal” setup should use a different tomcat for D2 and configure it following the “Best Practices” section from the D2 Installation Guide. However, as I’ve installed D2 in the same tomcat instance where I previously deployed DA, Webtop and the web services I didn’t want to mess with the configuration.