Hi Claudianus,
It sounds like you may have hit
https://bugzilla.redhat.com/show_bug.cgi?id=840649. Can
you try setting the name and type fields prior to uploading your script?
- John
On Nov 6, 2012, at 1:46 PM, Claudianus A <claudianus(a)gmail.com> wrote:
Hello list -
I am new to the list and have a question regarding CLI script import.
I have a JON 3.1.1 running with EAP plugin pack.
I need to import a server side CLI script, a Javascript based script into the content
repository in JON.
I went to the Administration tab and created the repository and then went down the page
to import the package.
I selected the a type of "Server-side CLI Script" and clicked on the UPLOAD
FILE button to upload the javascript file. I then clicked on the Add button on the popped
up dialog to select and upload the script from my hard drive. After the upload, I made
sure the Type is still Server-side CLI Script and clicked on the CREATE PACKAGE button.
The tool tried to upload the script but then displayed the following error "Failed
to create package [deploy-bundle-on-alert.js] in repository. Cause:
javax.ejb.EJBException:org.rhq.enterprise.server.plugin.pc.content.PackageDetailsValidationException:
The version part of
'[sha256=b97c9b78f3f06aae4bbeeeea28bd63e597b9894ea5098bfe468652195080a715]'
isn't an OSGi version string. ->
org.rhq.enterprise.server.plugin.pc.content.PackageDetailsValidationException:The version
part of
'[sha256=b97c9b78f3f06aae4bbeeeea28bd63e597b9894ea5098bfe468652195080a715]'
isn't an OSGi version string. "
I tried this several times with several new repositories with no success.
My question is: was I supposed to have version included in the script or a manifest file
associated with the script before loading it?
If not how is this import supposed to work? I followed the steps described in 3.4
Uploading Packages in the Deploying Applications and Content guide located at
https://access.redhat.com/knowledge/docs/en-US/JBoss_Operations_Network/3....
Any help is greatly appreciated.
I can send the script if that will help.
--
Claudianus
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/rhq-users