It's hiding under:
backingContent.packageVersion.displayVersion
On 4/16/2013 3:21 PM, Matthew Rivet wrote:
1.
Problem:
2.
RHQ-Server(JON 3.1.2) is not displaying the war/ear version as
expected from the CLI.
3.
4.
Packages are being updated using
child.updateBackingContent(fileName, "2.2");
5.
In the RHQ-Server GUI under content tab interface the displayed
version is 2.2 as intended.
6.
7.
The problem is observed when:
8.
var ins = ProxyFactory.getResource(10222); (jboss server ID)
9.
var package = ins.children[0] (index of content updated with
version 2.2)
10.
availability: ?
11.
backingContent:
InstalledPackage[resource=nwna.war,packageVersion=nwna.war]
12.
children:
13.
contentTypes: {file=WAR File}
14.
contextRoot: nwna
15.
createdDate: Tue Apr 16 14:10:21 EDT 2013
16.
description: a standalone web application (WAR)
17.
exploded: no
18.
handler:
19.
id: 10341
20.
measurements: [Context Root, Exploded?, Path, Virtual Hosts,
Availability]
21.
modifiedDate: Tue Apr 16 14:10:21 EDT 2013
22.
name: nwna.war
23.
operations: [stop, restart, start]
24.
path: /srv/jboss/server/estoredev1/deploy/nwna.war
25.
pluginConfiguration:
26.
pluginConfigurationDefinition: ConfigurationDefinition[id=11449,
name=Web Application (WAR)]
27.
resourceType: Web Application (WAR)
28.
version:
29.
virtualHosts: localhost
30.
31.
Version is Null and when:
32.
package.backingContent
33.
34.
installationDate: 1366138303505
35.
packageVersion:
PackageVersion[package=Package[name=nwna.war,packageType=PackageType[id=10016,name=file,resourceType=Web
Application
(WAR)]],version=[sha256=69b650efc0422e6daf3bddd8cb3c6f3bc3ac243af37c97ddb6e12e4316a9ec63],architecture=Architecture:
name=[noarch]]
36.
resource: Resource[id=10341,
uuid=6e4c37b7-9fc8-4b89-b6f8-e544a7ebd027, type={JBossAS5}Web
Application (WAR), key={default}nwna.war, name=nwna.war]
37.
user:
38.
39.
The version supplied here is the SHA default, not what is
displayed in RHQ-Server GUI
--
Matthew Rivet
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/rhq-users