Deployment of provisioning bundles from JON corrupts binary files when template token substitution is performed

Solution Unverified - Updated -

Issue

  • jon-server corrupts JAR files when pushing out JAR files
  • Bug with jon-server pushing out a JAR file to a remote JBoss Application Server (AS) instance corrupts it
  • Deployed JAR file increased in file size
  • Deployed file from bundle is different then original file in bundle
  • Execution of template token replacement on a binary file results in a corrupt binary file

Environment

  • JBoss Operations Network (JON) 3.0
  • Deployment of Provisioning Bundle
  • Specifying the replace attribute with the value of true on the rhq:file bundle task for the affected file

    <rhq:file name="affected-file.jar" destinationFile="subdir/affected-file.jar" replace="true"/>
    
  • Specifying the rhq:replace bundle task with the affected file as a child element or part of a rhq:fileset task

    ...
    <rhq:replace>
        <rhq:fileset>
            <include name="**/*"/>
        </rhq:fileset>
    </rhq:replace>
    ...
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.