Products | Versions |
---|---|
TIBCO Runtime Agent (TRA) | - |
Not Applicable | - |
Resolution:
Description:
============
EAR file may not be created if the command option was not given properly. For instance, the following exception may appear if the "-ear" option was not specified properly.
<--------------
Starting up...
Initiating validation...
(0) errors and (16) warnings found
com.tibco.ae.designerapi.RootFolder cannot be cast to com.tibco.ae.tools.palettes.archivebuilderpalette.EnterpriseArchiveBuilderResource
java.lang.ClassCastException: com.tibco.ae.designerapi.RootFolder cannot be cast to com.tibco.ae.tools.palettes.archivebuilderpalette.EnterpriseArchiveBuilderResource
at com.tibco.ae.tools.palettes.archivebuilderpalette.ArchiveProject.getEarResource(ArchiveProject.java:298)
at com.tibco.ae.tools.palettes.archivebuilderpalette.ArchiveProject.execute(ArchiveProject.java:191)
at com.tibco.ae.tools.palettes.archivebuilderpalette.ArchiveProject.main(ArchiveProject.java:42)
--------->
This article gives the usage of buildear and a sample command.
Usage:
buildear [-h] [-v] [-s] [-a pathToAliases] -ear uri [-o outputEarFile] -p projectDir
Example command:
1) v\Validate the project and build the archive.
./buildear -v -x -ear /test.archive -o /tmp/testPrj.ear -p /home/frank/testPrj
buildear.exe -x -v -ear /dummyPrj.archive -o d:\tmp\testGV.ear -p d:\tmp\tibco\testPrjs\dummyPrj
2). To use Design Time Libraries (DTL) properties file.
-- sample DTL properties file (sample_dtl.properties)
------------------------
# DTL properties file sample_dtl.properties
helloLib.projlib C\:/tmp/helloLib.projlib
sharedLib.projlib C\:/tmp/sharedLib.projlib
testLib.projlib1 C\:/tmp/ testLib.projlib
-------------------------
buildear.exe -x -v -a d:\tmp\sample_dtl.properties -ear /dummyPrj.archive -o d:\tmp\testGV.ear -p d:\tmp\tibco\testPrjs\dummyPrj
Environment:
===========
TIBCO Runtime Agent 5.x.x
OS: all