Seth Leger created SM-3296:
------------------------------

             Summary: 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


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)

Reply via email to