You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicemix.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2017/04/30 06:10:04 UTC
[jira] [Resolved] (SM-3296) spring-instrument JARs are stripping
Premain-Class attributes
[ https://issues.apache.org/jira/browse/SM-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved SM-3296.
--------------------------------------
Resolution: Fixed
Fix Version/s: bundles-2017.04
> spring-instrument JARs are stripping Premain-Class attributes
> -------------------------------------------------------------
>
> Key: SM-3296
> URL: https://issues.apache.org/jira/browse/SM-3296
> Project: ServiceMix
> Issue Type: Bug
> Components: bundles
> Reporter: Seth Leger
> Assignee: Jean-Baptiste Onofré
> Fix For: bundles-2017.04
>
>
> The org.apache.servicemix.bundles.spring-instrument bundles do not include MANIFEST.MF attributes that are present in the original Spring JARs. spring-instrument add several params for -javaagent support:
> https://github.com/spring-projects/spring-framework/blob/v4.3.7.RELEASE/build.gradle#L447
> {code}
> jar {
> manifest.attributes["Premain-Class"] = "org.springframework.instrument.InstrumentationSavingAgent"
> manifest.attributes["Agent-Class"] = "org.springframework.instrument.InstrumentationSavingAgent"
> manifest.attributes["Can-Redefine-Classes"] = "true"
> manifest.attributes["Can-Retransform-Classes"] = "true"
> manifest.attributes["Can-Set-Native-Method-Prefix"] = "false"
> }
> {code}
> This affects all versions of the org.apache.servicemix.bundles.spring-instrument bundles.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)