Code not getting instrumented

I could get my WebAppplication (with JBoss on Eclipse) running using Run As and Run With Clover As but the code is not getting instrumented. I see no errors while jboss is coming up. So what configuration should i use. I successfully integrated Clover, i enabled clover for my project, my code is colored in pink, my classes have been rebuilt, i can see all the 4 clover stats tabs. But when i start using my web application its not hitting the code nor the stats are getting updated. Help is appreciated as im stuck here and support just taking too much time, cheers

1 answer

0 vote

There are two potential problems:

1) Clover database (clover.db) is not accessible from JBoss

2) Clover runtime (clover.jar) is not present in class path

ad 1) Make sure that clover.db is available. If you deploy an application to the JBoss installed on your PC, then you can use an absolute path for initstring (Project Properties > Clover > Instrumentation > Initstring > use "custom value" and disable "relative to project dir"). Alternatively you can use relative initstring and provide -Dclover.initstring.basedir property for JBoss.

ad 2) You can copy the Clover JAR (e.g. from <eclipse_dir>\plugins\com.cenqua.clover.runtime_3.1.11.v20130325000000\clover-runtime.jar) to <jboss_dir>/lib directory.

Or you can add Clover JAR to the application's /lib directory (and package it into EAR/WAR).

Or you can add -Xbootclasspath/a:/your/path/to/clover-runtime.jar as VM argument in the Run Configuration.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Trello

Get inspired with Trello & earn free Gold

A blank Trello board can be both a beautiful and intimidating thing. How many lists should I have? Is creating 10 labels overkill? How can I best track my progress? Is there a way...

31 views 0 3
Read article

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