[jboss-jira] [JBoss JIRA] (AS7-3822) Unable to deploy without Bundle-Manifest Version or with Bundle-ManifestVersion: 1
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Tue Mar 20 06:24:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677917#comment-12677917 ]
Thomas Diesler commented on AS7-3822:
-------------------------------------
I believe Bundle-ManifestVersion: 1 is invalid.
There is actually no way to specify a Bundle-ManifestVersion less than 2.
We use this code to determine the bundle manifest version
{code}
// At least one of these manifest headers must be there
// Note, in R3 and R4 there is no common mandatory header
String bundleName = getManifestHeaderInternal(manifest, Constants.BUNDLE_NAME);
String bundleSymbolicName = getManifestHeaderInternal(manifest, Constants.BUNDLE_SYMBOLICNAME);
String bundleVersion = getManifestHeaderInternal(manifest, Constants.BUNDLE_VERSION);
if (bundleName == null && bundleSymbolicName == null && bundleVersion == null)
return -1;
String manifestVersion = getManifestHeaderInternal(manifest, Constants.BUNDLE_MANIFESTVERSION);
return manifestVersion != null ? Integer.parseInt(manifestVersion) : 1;
{code}
> Unable to deploy without Bundle-Manifest Version or with Bundle-ManifestVersion: 1
> ----------------------------------------------------------------------------------
>
> Key: AS7-3822
> URL: https://issues.jboss.org/browse/AS7-3822
> Project: Application Server 7
> Issue Type: Bug
> Components: OSGi
> Affects Versions: 7.1.0.Final
> Reporter: Rico Neubauer
> Assignee: Thomas Diesler
> Fix For: 7.1.2.Final
>
> Attachments: server.log
>
>
> Affects version 1.1.5, included in JBoss 7.1.final.
> OSGI-specification r4.core.pdf chapter 3.5.7 holds the rules for legacy (version 1) bundles.
> According to that a bundle without Bundle-ManifestVersion must be handles as Bundle-ManifestVersion: 1.
> Neither a bundle having Bundle-ManifestVersion: 1, not without a Bundle-ManifestVersion does deploy at all. You can only see "Starting deployment of ..." in the log, nothing else happens.
> See attached log file for a test showing the deployment of a bundle without/with version-1/with versio-2 ManifestVersion.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list