org.apache.servicemix.bundles.spring-instrument-4.0.5.RELEASE_1.jar MANIFEST doea not contain Premain-Class: org.springframework.instrument.InstrumentationSavingAgent

Description

The content of the jar:

MacBook-Pro-di-Antonio-Russo:tmp antonio$ jar xvf /opt/opennms/lib/org.apache.servicemix.bundles.spring-instrument-4.0.5.RELEASE_1.jar
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: META-INF/DEPENDENCIES
inflated: META-INF/LICENSE
inflated: META-INF/NOTICE
created: META-INF/maven/
created: META-INF/maven/org.apache.servicemix.bundles/
created: META-INF/maven/org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-instrument/
inflated: META-INF/maven/org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-instrument/pom.properties
inflated: META-INF/maven/org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-instrument/pom.xml
created: OSGI-INF/
inflated: OSGI-INF/bundle.info
created: org/
created: org/springframework/
created: org/springframework/instrument/
inflated: org/springframework/instrument/InstrumentationSavingAgent.class
MacBook-Pro-di-Antonio-Russo:tmp antonio$ more META-INF/MANIFEST.MF
Manifest-Version: 1.0
Bnd-LastModified: 1401893335343
Build-Jdk: 1.7.0_51
Built-By: jbonofre
Bundle-Description: This pom provides project information that is common
to all ServiceMix branches.
Bundle-DocURL: http://www.apache.org/
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion: 2
Bundle-Name: Apache ServiceMix :: Bundles :: spring-instrument
Bundle-SymbolicName: org.apache.servicemix.bundles.spring-instrument
Bundle-Vendor: The Apache Software Foundation
Bundle-Version: 4.0.5.RELEASE_1
Created-By: Apache Maven Bundle Plugin
Export-Package: org.springframework.instrument;version="4.0.5.RELEASE"
Tool: Bnd-1.50.0

Compared to the originan:

MacBook-Pro-di-Antonio-Russo:jars antonio$ jar xvf /opt/opennms/lib/spring-instrument-4.0.5.RELEASE.jar created: META-INF/
inflated: META-INF/MANIFEST.MF
created: org/
created: org/springframework/
created: org/springframework/instrument/
inflated: org/springframework/instrument/InstrumentationSavingAgent.class
inflated: META-INF/notice.txt
inflated: META-INF/license.txt
MacBook-Pro-di-Antonio-Russo:jars antonio$ more META-INF/MANIFEST.MF
Manifest-Version: 1.0
Created-By: 1.8.0_05 (Oracle Corporation)
Implementation-Title: spring-instrument
Implementation-Version: 4.0.5.RELEASE
Premain-Class: org.springframework.instrument.InstrumentationSavingAge
nt
Agent-Class: org.springframework.instrument.InstrumentationSavingAgent
Can-Redefine-Classes: true
Can-Retransform-Classes: true
Can-Set-Native-Method-Prefix: false

As you can see the:

Premain-Class: org.springframework.instrument.InstrumentationSavingAgent

is not loaded. this prevent opennms running with -javaagent in the case you have to enable weaving do to some customization.

I was able to run using the spring-instrument.jar. I do not know if there can be a side effect. spring-instrument is used only for javaagent run.

Acceptance / Success Criteria

None

depends on

Lucidchart Diagrams

Activity

Show:

Antonio Russo December 4, 2018 at 6:43 AM

I checked we now support <springVersion>4.2.9.RELEASE_1</springVersion>, very close

Seth Leger February 14, 2018 at 10:31 PM

It looks like this is resolved in the Spring 4.2.9.RELEASE_2 Servicemix bundle. However, Apache Karaf has not upgraded to this version yet so we still don't have the changes.

Seth Leger April 6, 2017 at 10:40 AM

Seth Leger March 29, 2016 at 12:53 PM

This is a problem inside the Spring bundles that are maintained by Apache ServiceMix. We should figure out how to open an issue against them for this.

Won't Fix

Details

Assignee

Reporter

Labels

HB Grooming Date

Affects versions

Priority

PagerDuty

Created February 25, 2016 at 2:46 AM
Updated October 19, 2021 at 5:43 PM
Resolved October 19, 2021 at 5:32 PM