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 votes

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
Community showcase
Posted Dec 10, 2018 in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

196 views 5 7
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