Discussion:
[java code coverage] Jacoco Agent running with Dockerd/Tomcat: Error opening zip file or JAR manifest missing
Michael Furmaniuk
2017-01-19 16:42:23 UTC
Permalink
I have downloaded the 0.7.8 build from the Jacoco
page: http://www.jacoco.org/jacoco/

In trying to set up my local Tomcat build, I would like to run the Jacoco
Agent to get my test reports, I place the following configuration:

"JAVA_OPTS=-javaagent:/data/shared/jacoco/lib/jacocoagent.jar=includes=*,output=file,destfile=/data/shared/tests/jacoco/jacoco.exec"


When starting Tomcat I get the following in the Tomcat Log:


Jan 19 16:28:14 sandbox dockerd[1450]: Error opening zip file or JAR
manifest missing : /data/shared/jacoco/lib/jacocoagent.jar

Jan 19 16:28:14 sandbox dockerd[1450]: Error occurred during initialization
of VM

Jan 19 16:28:14 sandbox dockerd[1450]: agent library failed to init:
instrument


Is there some other configuration I need to put in place? Libraries are in
the right location, I downloaded the Jacoco.0.7.8.zip archive and placed
the files in the location noted. Checking their JAR files I do see a
Manifest file. The Tomcat does run in a docker container, if that would
make a difference.


java version "1.8.0_102"

Java(TM) SE Runtime Environment (build 1.8.0_102-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)


I am running this on OSX Yosemite
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/f59dca52-2e2b-4a05-8a97-6fedaa31d78d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Evgeny Mandrikov
2017-01-21 14:22:44 UTC
Permalink
Hi,
Post by Michael Furmaniuk
Jan 19 16:28:14 sandbox dockerd[1450]: Error opening zip file or JAR
manifest missing : /data/shared/jacoco/lib/jacocoagent.jar
Jan 19 16:28:14 sandbox dockerd[1450]: Error occurred during
initialization of VM
instrument
Please check that file "/data/shared/jacoco/lib/jacocoagent.jar" exists
inside of Docker container.
Post by Michael Furmaniuk
The Tomcat does run in a docker container, if that would make a
difference.
Please verify by yourself, whether problem caused by Docker or not - by
doing without Docker.
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/3c38db7b-fcf5-46f7-986e-9b0e192f67bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...