SHA256 errors in JON agent when trying to deploy a bundle

Solution Verified - Updated -

Issue

  • We have created a bundle to deploy a set of WAR files, JAR files and some configuration files.
  • The ANT recipe file for this is setup in the following format:
<project name="sample-ant-bundle-deployment"
         default="main"
         xmlns:rhq="antlib:org.rhq.bundle">
<rhq:bundle name="HelloWorld_JBoss5" version="1.0" description="contains version 5 of the same war">
        <rhq:deployment-unit name="war">
        <rhq:file name="ojdbc6.jar" destinationFile="/ecomm/Jboss/servers/jboss2/lib/ojdbc6.jar" replace="true"/>
        <rhq:file name="app.properties" destinationFile="/ecomm/Jboss/servers/jboss2/conf/app.properties" replace="true"/>
        <rhq:archive name="MyProject.war" exploded="false">                  </rhq:archive>
        </rhq:deployment-unit>

    </rhq:bundle>

    <target name="main">

    </target>
</project>
  • This seems to fail when deploying the configuration file:
app.properties;
Downloaded bundle file [PackageVersion[package=Package[name=app.properties,packageType=PackageType[id=10911,name=HelloWorld_JBoss5,resourceType=Ant Bundle Handler]],version=1.0,architecture=Architecture: name=[noarch]]] but its size was [9] when it was expected to be [0].

Deployment failed: java.lang.Exception:Package version [PackageVersion[package=Package[name=app.properties,packageType=PackageType[id=10911,name=HelloWorld_JBoss5,resourceType=Ant Bundle Handler]],version=1.0,architecture=Architecture: name=[noarch]]] failed SHA256 check. expected=[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855], actual=[4f093fbd66cffe80c6d282519982d4e3d1d5e7fda7e5d043cd0d23c8e6f78006]

Environment

  • JBoss Operations Network (JON) 3.0, 3.1.x, 3.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content