Red Hat Bugzilla – Bug 1019673
unable to create new bundle via uploading receipe file
Last modified: 2015-09-02 20:02:15 EDT
Description of problem:
unable to create new bundle
Version-Release number of selected component (if applicable):
jon 3.2 er3
Steps to Reproduce:
1. navigate to bundles -> click "new" button
2. upload recipe file (attached examples)
3. click "next" button
the following exception thrown:
java.lang.Exception:Failed to parse the bundle Ant script. -> org.rhq.bundle.ant.InvalidBuildFileException:The deployment unit must specifically declare compliance mode of the destination directory
screen-shot -> http://d.pr/i/Zz1f
recipe uploaded, bundle creation/installation is possible
example bundles attached
Created attachment 812827 [details]
Created attachment 812828 [details]
Created attachment 812832 [details]
attached WorkingBundle - having recipe without ant script (target tags in xml)
"compliance This is a new required attribute (as of RHQ 4.9.0)"
Any new bundles you create in the new JON/RHQ must have this required attribute - if not, the bundle will be rejected.
Apparently the zipped bundles and the recipe upload use different error messages. The attachment shows how this looks for the zipped-bundle for me.
Created attachment 813015 [details]
this bug is not a bug. the error message is fine and shows in the UI.
I created another BZ that is related but different - if you upload the bundle in a .zip format, you get a shorter error that is less descriptive
see bug #1019917
but if you are uploading a recipe, there is no bug. hence, this BZ will be closed.