Using clover with OSGi on WebSphere

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?

1 answer

0 vote

Please try to add the following argument to JVM args for WebSphere:


Depending on which tool you're using for instrumentation, this JAR can be found in:

  • Clover-for-Eclipse - <eclipse_dir>\plugins\com.cenqua.clover.runtime_3.X.X.vYYYYMMDD000000\clover-runtime.jar
  • Clover-for-IDEA - <idea_config_dir>\config\plugins\clover-idea.jar
  • Clover-for-Ant - <clover_ant>\lib\clover.jar


Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

281 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot