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
[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
Post a Comment