I am trying to generate an instrumented driver for our product that is embedded in WebSphere Application Server. I have been able to get it working for "regular" code, but now I have a problem with our OSGi bundles. The OSGi activators can not be loaded because they are referring to the Clover CoverageRecorder class, which is not in the classpath. We have put the clover jar (and license file) in the WebSphere App Server's lib/ext directory, which was good enough for all other code, but it's evidently not good enough for our code in OSGi bundles.
The only way we've been able to find around this is to directly include the clover JAR and license file in every one of our OSGi bundles. That is obviously not a long-term solution. Is there something we can to do get the clover JAR added to the base OSGi bundle classpath?
Please try to add the following argument to JVM args for WebSphere:
-Xbootclasspath/a:/your/path/to/clover-xxx.jar
Depending on which tool you're using for instrumentation, this JAR can be found in:
Regards
Marek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.