Bug 780097 (SOA-2466)

Summary: ER3 error in the log - Plugin "Platforms" could not be loaded
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Aleksandar Kostadinov <akostadinov>
Component: Monitoring and Management, JONAssignee: Martin Vecera <mvecera>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER3CC: akostadinov
Target Milestone: ---   
Target Release: 5.1.0 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2466
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-12 13:17:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
manifest.jar none

Description Aleksandar Kostadinov 2010-10-24 19:08:31 UTC
project_key: SOA

Starting server default and opening admin console results in the following error in server's stdout:

14:59:49,017 INFO  [BootstrapAction] Initializing Administration Console v1.3.4.SP1...
14:59:52,480 ERROR [PluginManager] Plugin [Platforms] at [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar] could not be loaded and will therefore not be deployed.
org.rhq.core.clientapi.descriptor.PluginTransformException: No version is defined for plugin jar [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar]. A version must be defined either via the MANIFEST.MF 'Implementation-Version' attribute or via the plugin descriptor 'version' attribute.

Comment 1 Anne-Louise Tangring 2010-10-28 16:07:39 UTC
Investigate for SOA 5.1.0

Comment 2 Kevin Conner 2010-11-26 15:14:56 UTC
Just tried this on ER4 and could not reproduce the issue, can you try again and upload your logs?

I see the following output

15:12:05,096 INFO  [BootstrapAction] Initializing Administration Console v1.3.4.SP1...
15:12:10,621 INFO  [PluginContainerResourceManager] Discovering Resources...

The plugin does not appear to have changed since ER3.

Comment 4 Aleksandar Kostadinov 2010-11-26 19:02:31 UTC
Please let me investigate a little bit more. Will update you later.

Comment 5 Kevin Conner 2010-11-26 19:19:33 UTC
The issue is the plugin jar files included in that server, however I don't know where they come from.  They do not match the version in the released zips and are not of the right format.  Are these being processed in any way?

The versions I know about are

http://jawa05.englab.brq.redhat.com/candidate/SOA-5.1-ER4/signed/soa-5.1.0.ER4.zip
http://jawa05.englab.brq.redhat.com/candidate/SOA-5.1-ER4/unsigned/soa-5.1.0.ER4.zip

sha1sums for one of the plugins

de5a50e5765750ea13e26a7cde79bf5ad3866649  jboss-soa-p-5/jboss-as/server/default/deploy/admin-console.war/plugins/rhq-platform-plugin.jar
50d3ecfbce50a96f4d5ac6bb997f3a6c68891fcc  unsigned/jboss-soa-p-5/jboss-as/server/default/deploy/admin-console.war/plugins/rhq-platform-plugin.jar


Comment 6 Kevin Conner 2010-11-29 09:58:38 UTC
The issue may be the QE tool that strips out the signed information from the jar files, as it may not repackage the jar correctly.

The jar file structure assumes that the manifest is the first file in the archive or is only preceded by the META-INF directory entry, as such the plugins in the QE build are invalid.

The rhq-platform-plugin.jar contains the following entries

META-INF/
META-INF/maven/
META-INF/maven/org.rhq/
META-INF/maven/org.rhq/rhq-platform-plugin/
org/
org/rhq/
org/rhq/plugins/
org/rhq/plugins/platform/
org/rhq/plugins/platform/content/
org/rhq/plugins/platform/content/yum/
org/rhq/plugins/platform/win/
META-INF/MANIFEST.MF
.....

Whereas the correct structure should start with the manifest, such as the following from one of the original rhq-platform-plugin.jar files

META-INF/MANIFEST.MF
META-INF/JBOSSCOD.SF
META-INF/JBOSSCOD.RSA
META-INF/
META-INF/rhq-plugin.xml


Comment 7 Kevin Conner 2010-11-29 10:31:52 UTC
java -jar manifest.jar <filenames> to test

Comment 8 Kevin Conner 2010-11-29 10:31:52 UTC
Attachment: Added: manifest.jar


Comment 9 Martin Vecera 2010-11-30 17:29:43 UTC
Yes, this seems to be my fault. I'll fix the tool tomorrow.

Comment 10 Martin Vecera 2010-12-01 09:54:53 UTC
The tool has been fixed. For the changes to take effect, soa-5.1 job must be rerun. I suggest to postpone that for the next ER if there is no urgent need. The tool can ale be used locally on a workstation.

Comment 11 Aleksandar Kostadinov 2010-12-01 12:45:17 UTC
Cool, thanks. No need to rebuild. I just saw the message and reported it. It doesn't get in my way.

Comment 13 Aleksandar Kostadinov 2011-01-04 07:07:22 UTC
No need to include this one in release notes. It was a problem with a test build.

Comment 14 Dana Mison 2011-01-05 00:14:38 UTC
Writer: Added: dlesage


Comment 15 Len DiMaggio 2011-02-07 16:54:13 UTC
Verified during testing of ER9.

Comment 16 David Le Sage 2011-02-11 00:00:32 UTC
Temporarily reopening to update release note info.

Comment 17 David Le Sage 2011-02-11 00:03:32 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Release Notes Text: Added: https://issues.jboss.org/browse/SOA-2466

An error would appear in the stdout if the Administration Console was run under the default deployment.  The message stated that the "Plugin [Platyform] at  [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar] could not be loaded and will therefore not be deployed." This was caused by the plug-in tool stripping out data.  The tool has been changed and, as a result, the user will no longer see this error.  


Comment 18 David Le Sage 2011-02-11 00:04:40 UTC
Release Notes Text: Removed: https://issues.jboss.org/browse/SOA-2466

An error would appear in the stdout if the Administration Console was run under the default deployment.  The message stated that the "Plugin [Platyform] at  [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar] could not be loaded and will therefore not be deployed." This was caused by the plug-in tool stripping out data.  The tool has been changed and, as a result, the user will no longer see this error.   Added: https://issues.jboss.org/browse/SOA-2466

An error would appear in the stdout if the Administration Console was run under the default deployment.  The message stated that the "Plugin [Platyform] at  [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar] could not be loaded and will therefore not be deployed." This was caused by a QE tool stripped out the signing information from JAR files.  The tool has been changed and, as a result, the user will no longer see this error.  


Comment 19 Laura Bailey 2011-02-12 13:12:56 UTC
Reopening to modify release note text; will set back to Closed -> Done momentarily.

Comment 20 Laura Bailey 2011-02-12 13:17:35 UTC
Setting to Closed -> Done, having modified the release notes text.

Comment 21 Laura Bailey 2011-02-12 13:17:35 UTC
Release Notes Text: Removed: https://issues.jboss.org/browse/SOA-2466

An error would appear in the stdout if the Administration Console was run under the default deployment.  The message stated that the "Plugin [Platyform] at  [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar] could not be loaded and will therefore not be deployed." This was caused by a QE tool stripped out the signing information from JAR files.  The tool has been changed and, as a result, the user will no longer see this error.   Added: https://issues.jboss.org/browse/SOA-2466

An error appeared in stdout if the Administration Console was run under the default deployment. The message stated that the "Plugin [Platyform] at  [jndi:/localhost/admin-console/plugins/rhq-platform-plugin.jar] could not be loaded and will therefore not be deployed." This occurred because the JAR file did not contain signing information. The JAR file has been modified appropriately, and the error no longer appears in the log.