Error while building an EAR

Error while building an EAR

book

Article ID: KB0082960

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) -

Description

Getting below error while building ear using the buildiear command line utility:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Archive Administration must have at least one service archive
java.lang.IllegalArgumentException: Archive Administration must have at least one service archive
    at com.tibco.archive.impl.ApplicationArchiveImpl.save(ApplicationArchiveImpl.java:137)
    at com.tibco.ae.tools.palettes.archivebuilderpalette.EnterpriseArchiveBuilderResource.buildArchive(EnterpriseArchiveBuilderResource.java:650)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
you may also face the below error in the error log: 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Exception in DesignerResourceStore.loadResourceFrom() uri:Common/Local Logger.process using unknown file type resource.
Exception in DesignerResourceStore.loadResourceFrom() uri:Common/Local Exception Handler.process using unknown file type resource.
Exception in DesignerResourceStore.loadResourceFrom() uri:Common/TransactionDataRendering/Logic/TransformToRenderableHTML.process using unknown file type resource.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Issue/Introduction

"must have at least one service archive" error while building an ear using command

Resolution

The above error indicates that buildear is not able locate BW palettes which are required for building the ear file. 

This is a classpath issue. The buildear.tra depends on designer.tra so check the tibco.env.CUSTOM_CP_EXT contains the path to BW palettes. 

If you have another setup where Buildear utility is working fine, then you can compare the designer.tra / buildear.tra from working and non-working setup.