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] [Commented] (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:comment-tabpanel&focusedCommentId=15990144#comment-15990144 ]
Jean-Baptiste Onofré commented on SM-3296:
------------------------------------------
https://git-wip-us.apache.org/repos/asf?p=servicemix-bundles.git;a=commitdiff;h=24e9084c33792bb6eb7bf054da0d4be600afcc86
> 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)