Skip to main content

DYNAMO_HOME variable is empty during runAssembler

If you ever run into a problem like this during the build, where the build runs fine for your modules but when the assembler starts suddenly the DYNAMO_HOME env variable is empty:

     [echo] runAssembler path is /opt/ATG/ATG10.2/home/bin/
     [echo]
     [exec] Error:   -Djava.security.policy=lib/java.policy -Datg.dynamo.home=. -Datg.dynamo.root=./.. -Datg.dynamo.display=:0 -Djava.protocol.handler.pkgs=atg.net.www.protocol -Djava.naming.factory.url.pkgs=atg.jndi.url  -Datg.dynamo.modulepath=./.. -Xms512m -Xmx1024m -XX:MaxPermSize=128m -XX:MaxNewSize=128m -Datg.dynamo.server.home= -Datg.dynamo.modules=DAS -Datg.dynamo.layers= -Datg.dynamo.root=./.. -Datg.cygwin=false atg.applauncher.dynamo.DynamoServerLauncher -environment /tmp/dynamoEnv2907.sh DAS -classPathModules DAS  failed
     [exec] CLASSPATH was ./locallib/:./lib/launcher.jar:/opt/jboss/jboss-5.1.0.GA/common/lib/jsp-api.jar:/opt/jboss/jboss-5.1.0.GA/lib/jboss-javaee.jar:/opt/jboss/jboss-5.1.0.GA/common/lib/servlet-api.jar
     [exec] DYNAMO_HOME was .
     [exec] DYNAMO_MODULES was DAS
     [exec] /opt/ATG/ATG10.2/home/bin/runAssembler: 347: ./bin/dynamoEnv.sh: -Djava.security.policy=lib/java.policy: not found
     [exec] /opt/ATG/ATG10.2/home/bin/runAssembler: 33: /opt/ATG/ATG10.2/home/bin/runAssembler: -Xms96m: Permission denied

BUILD FAILED
/opt/code/myProject/modules/build.xml:80: The following error occurred while executing this line:
/opt/code/myProject/modules/build.xml:177: The following error occurred while executing this line:
/opt/code/myProject/modules/build.xml:184: The following error occurred while executing this line:
/opt/code/myProject/buildtools/deploy-jboss.xml:301: The following error occurred while executing this line:
/opt/code/myProject/buildtools/deploy-jboss.xml:409: exec returned: 127

It happens because ATG is not correctly updating $DYNAMO_HOME/localconfig/dasEnv.sh/bat, so feel free to open and update it as your machine is set up, for example:

ATGJRE=/opt/java/jdk1.6.0_25/bin/java;export ATGJRE

JBOSS_HOME=/opt/jboss-5.1.0.GA;export JBOSS_HOME

JBOSS_VERSION=5.1.0.GA;export JBOSS_VERSION

I know...

Comments

Popular posts from this blog

Configure LDAP SSO for BCC and Endeca Workbench

If you want to setup your BCC with a SSO server along with LDAP validation you can follow the next steps, this is all for OOTB configs: LDAP In Memory Server Feel free to clone and build:  https://github.com/kwart/ldap-server Then you can start it with:  java -jar ldap-server.jar -b 127.0.0.1 -p 10389 ldap_test.ldif Lastly, you can validate connectivity with this command:  ldapsearch -h localhost -p 10389 -x -D "uid=admin,ou=system" -w secret Just make sure that you defined user and organization appropriately. CIM Setup SSO Run <ATG_ROOT>/home/bin/cim.sh Select options as follows: Platform-Guided Search Integration [8] Content Administration Choose Commerce AddOns: [4] Single Sign On (SSO) [D] Done [1] Commerce Only SSO Authentication [1] LDAP Server Authentication [1] Non-Switching Datasource Don't include demo application [2] Index by Product [A] Select Application Server [2] Weblogic Enter Weblogic home path: /your/weblogic/wlserver/path Enter domain path: /your/...

Fix broken sequence on parent-child relationship tables for PUB schema

Whenever you find an error like this (for category-product relationship for example) ERROR [nucleusNamespace.atg.commerce.catalog.ProductCatalog-ver]  Error reading list or array index from the database. Expected: "0", got "1". The following property was not read: " {fixedChildProducts,pType=List,IDesc=[ItemDesc: category],table=dcs_cat_chldprd,cols=child_prd_id   ,pBI=atg.beans.MergedDynamicBeanInfo@5409e0ad,pIDesc=null   ,cType=interface atg.repository.RepositoryItem,cBI=[ItemDesc: product],cIDesc=[ItemDesc: product],colHandle=null}", for item id: "2350:36". This means the data base table holding this property does not have sequential integers starting with 0 in its multi-column. This should only happen if the database table was modifie d directly (outside of Dynamo).: java.lang.Exception It means sequence_num column doesn't contain a consecutive sequence number for the category on all of its products, this is, if category has ...

ATG - Clean up CORE and PUB schemas

In case you want to clean up your environments a little bit you can make use of the following scripts: DEFINE CORE_SCHEMA = '<atg_core_name>'; DEFINE PUB_SCHEMA = '<atg_pub_name>'; -- Delete server host names DELETE FROM &CORE_SCHEMA..rout_instance; DELETE FROM &CORE_SCHEMA..das_sds; DELETE FROM &PUB_SCHEMA..das_sds; DELETE FROM &CORE_SCHEMA..rout_host_inf; commit;  -- Delete projects not checked in DELETE FROM &pub_schema..epub_pr_history WHERE project_id IN (SELECT project_id FROM &pub_schema..epub_project WHERE checked_in = 0); DELETE FROM &pub_schema..epub_proc_history WHERE process_id IN (SELECT process_id FROM &pub_schema..epub_process WHERE PROJECT IN (SELECT project_id FROM &pub_schema..epub_project WHERE checked_in = 0)); DELETE FROM &pub_schema..epub_proc_taskinfo WHERE ID IN (SELECT process_id FROM &pub_schema..epub_process WHERE PROJECT IN (SELECT project_id FROM &pub_schema..epub_pro...