Unable to deploy Mule application in CloudHub

917 views Asked by At

Exported a Mule application as a deployable jar from Studio and trying to deploy it in CloudHub. However, deployment is failing with below error.

*"Error: Failed to deploy from URI: file:/tmp/mule-received-artifact-13949491667031238/<app-name>.jar. ArtifactDescriptorCreateException: Artifact descriptor does not exists: /opt/mule/mule-4.4.0/apps/<appname>/META-INF/mule-artifact/mule-artifact.json".*

Am I missing something here?

1

There are 1 answers

5
aled On

You probably exported the application project as one of the Java jar options. That would not work because a Java jar will miss the right format and Mule metadata. A Mule project is not a Java project.

If that is the issue then you must export it as a Mule Deployable file. While it respects the jar format and extension, it adds additional files and metadata to be deployable in a Mule Runtime.

Looking at the current version of Studio the export option is "Anypoint Studio Project to Mule Deployable Archive (includes Studio Metadata)". Ensure the export option is that or similar.