Problem
I was running ATG runAssembler script and got the following error
C:\ATGDEV\ATG\ATG10.0.2\home\bin>runAssembler DCSSampleCatalog.ear -m DCSSampleCatalog;DafEar.Admin
The system cannot find the path specified.
The system cannot find the path specified.
Solution
I opened up the runAssembler batch file, switched echo on and then reran the runAssembler command above. Figured out that the issue was with the path of the java exe, it was pointing to a wrong path. Actually I uninstalled JDK and reinstalled it onto some other path after I installed ATG and that was the cause of the issue. I had to open the dasEnv.bat inside ATG_HOME\localconfig folder and update the ATGJRE environment variable to point to the new java.exe path. Reran the runAssembler command it worked fine.
C:\ATGDEV\ATG\ATG10.0.2\home\bin>runAssembler DCSSampleCatalog.ear -m DCSSampleCatalog;DafEar.Admin
Assembly started.
Target application is C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear.
Creating exploded ear file C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear.
Initializing...
Before make meta-inf file.
Making meta-inf file C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\META-INF
Creating application.xml...
Creating Ear file MANIFEST...
Importing classes...
Importing classes for module DafEar
Importing classes for module DafEar.Admin
Importing classes for module DafEar.base
Importing classes for module DCSSampleCatalog
Importing classes for module DCS
Importing classes for module DSS
Importing classes for module DPS
Importing classes for module DAS-UI
Importing classes for module DAS
Ignoring classpath entry lib/servlet.jar from module DAS
Ignoring classpath entry lib/jsp-api.jar from module DAS
Importing classes for module manuals
Importing J2EE module atg-admin.war declared in DafEar.Admin
Parsing C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\atg_admin.war\WEB-INF\web.xml
Importing J2EE module atg-bootstrap.war declared in DafEar.base
Parsing C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\atg_bootstrap.war\WEB-INF\web.xml
Importing J2EE module atg-bootstrap-ejb.jar declared in DafEar.base
Importing J2EE module sampleCatalog.war declared in DCSSampleCatalog
Parsing C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\sampleCatalog.war\WEB-INF\web.xml
Assembly took 2.72 seconds.
Assembly started.
Target application is C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear.
Creating exploded ear file C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear.
Initializing...
Before make meta-inf file.
Making meta-inf file C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\META-INF
Creating application.xml...
Creating Ear file MANIFEST...
Importing classes...
Importing classes for module DafEar
Importing classes for module DafEar.Admin
Importing classes for module DafEar.base
Importing classes for module DCSSampleCatalog
Importing classes for module DCS
Importing classes for module DSS
Importing classes for module DPS
Importing classes for module DAS-UI
Importing classes for module DAS
Ignoring classpath entry lib/servlet.jar from module DAS
Ignoring classpath entry lib/jsp-api.jar from module DAS
Importing classes for module manuals
Importing J2EE module atg-admin.war declared in DafEar.Admin
Parsing C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\atg_admin.war\WEB-INF\web.xml
Importing J2EE module atg-bootstrap.war declared in DafEar.base
Parsing C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\atg_bootstrap.war\WEB-INF\web.xml
Importing J2EE module atg-bootstrap-ejb.jar declared in DafEar.base
Importing J2EE module sampleCatalog.war declared in DCSSampleCatalog
Parsing C:\ATGDEV\ATG\ATG10.0.2\home\bin\DCSSampleCatalog.ear\sampleCatalog.war\WEB-INF\web.xml
Assembly took 2.72 seconds.
Hi Naga,
ReplyDeleteIs there is any option available to change the temp location /var/tmp to custom dir on solaris. These way I can build two different estore ears at a time.
[exec] Assembly started.
[exec] Target application is /u/estore/estore.ear.
[exec] Creating exploded ear file /var/tmp/estore.ear3706185806186667194stage.
Did you try giving the complete path to the new directory wherever you want the EAR to be created, like
ReplyDeleterunAssembler /Users/Naga/myEAR.ear -m DCSSampleCatalog;DafEar.Admin
Yes, that is the destination path where final ear should be placed. But before packing the ear, it creates the exploded ear under /var/tmp to import j2ee components like atg-bootstrap.war,etc.. So I am trying to change that temp location from /var/tmp to custom dir. But my values are overridden.
ReplyDeleteIn windows its picking the custom dir but not in unix.
ReplyDeleteHow did you change it in Windows??? What did you try on Unix ?
ReplyDeleteOn windows open runAssembler.bat
ReplyDeleteand add this :
-Djava.io.tmpdir=/your-tmp-dir
in this line:
set EXTRA_JAVA_ARGS= ...
Thanks it worked...
ReplyDeleteyou should have to change JRE path in this bat file...
ReplyDeleteATG_HOME\localconfig\dasEnv.bat
Thanks Naga.
Thanks it worked.....
ReplyDelete