title: JaCoCo Functional Test Coverage on SONAR
body: <p>I am working on to get Functional Test Coverage using JaCoCo and SONAR for a java based application.</p>
  
  <p>My Requirement:</p>
  
  <ol>
  <li>Get Functional Test Coverage.</li>
  <li>Publish the Functional Test Coverage results to SONAR(pass on the jacoco.exec file to SONAR)</li>
  </ol>
  
  <p>Below is the set up I did:</p>
  
  <ol>
  <li>Set up instances on my DVL(development box) and make the system up and running.</li>
  <li><p>In the /bin directory of the instances, I am including jacoco agent in the CATALINA_OPTS variable with below configuration:
  vim catalina.sh
  export CATALINA_OPTS="$CATALINA_OPTS -javaagent:${XYZ_ROOT}/WEB-INF/lib/org.jacoco.agent-0.5.8.201206210517.jar=includes=com.xyz.xx.*,excludes=com.xyz.xx.webclient.command.<em>UIBean</em>,output=tcpclient,address=lxdm379m7.xyz.com,port=9000"</p>
  
  <p>(lxdm379m7.xyz.com is my sonar server and 9000 is the port number)</p></li>
  <li>Now restarted the server, And the server is up.</li>
  <li>I do manual testing on my AUT which is on my DVL. Hit pages back and forth.</li>
  </ol>
  
  <p>My Issue:
  Not able to generate the jacoco.exec file.</p>
  
  <p>Help I need:</p>
  
  <ol>
  <li>Why is the jacoco.exec file not generated.</li>
  <li>If it is generated, where can I find it? and how to pass it on to SONAR ?</li>
  </ol>
  
  <p>Any help or clue on this is appreciated.</p>