TIBCO Streaming unable to deploy application, fragments are invalid
book
Article ID: KB0078123
calendar_today
Updated On:
Description
The command
epadmin install node
fails with error (example):
Unable to deploy application Application-0.0.1-SNAPSHOT-ep-application.zip: Error: TIBCO-EP-DTM-00244: the following fragments in archive /home/tibco/node/A.Cluster/application/deploy/Application-0.0.1-SNAPSHOT-ep-application.zip are invalid: dependent fragments "com.company.project.Adapters", "com.company.project.Utilities", "com.company.project.Schemas" in node type "Application_Node"
Resolution
This deployment error is most often due to the Application archive including transitive fragment dependencies (dependencies on fragments which are not themselves runnable).
Application archives should only depend on or refer to fragments which will become an engine and not to fragments which only supply additional code. Typically this is configured only using the Application project's
pom.xml maven dependency on the main Fragment of the application. The main Fragment may itself depend on other fragments, but those should not become direct dependencies of the Application project.
Another way Application archives may include more than one engine fragment is by using the configuration
type = "com.tibco.ep.dtm.configuration.application" which includes section:
configuration = {
ApplicationDefinition = {
execution {
nodeTypes {
"App_Node" =
{
description="Main processing node"
fragments =
[
"com.company.project.Main"
"com.company.project.Tables"
"com.company.project.PreProcessor"
]
...where these identify three separate fragments which will run side-by-side in the node each in their own engine. These may depend on other fragments which should not appear in this list.
Correct this error by removing as dependencies or from the "fragments" list the fragments identified in the error message. Then rebuild the Application archive.
Issue/Introduction
Application archive configuration should not have transitive dependencies
Feedback
thumb_up
Yes
thumb_down
No