tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 52323] Cobertura test code coverage support for build.xml and build.properties.default
Date Mon, 04 Nov 2013 20:57:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52323

Konstantin Kolinko <knst.kolinko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #7 from Konstantin Kolinko <knst.kolinko@gmail.com> ---
1. It needs some documentation in BUILDING.txt
E.g. at "(7.3) Other configuration options".


Testing current trunk, with JDK 7u45. Ant 1.9.2
Cobertura is NOT enabled.
Running only NIO tests.
execute.test.nio=true

ant test 1>ant_test.log 2>&1

I see two problems:


2. Cobertura is downloaded even though I have not enabled it.

Apparently the "download-cobertura" target needs if="${test.cobertura}".


3. I see a lot of error messages in the test logs, though the tests themselves
do not fail.

E.g. in 
TEST-org.apache.catalina.core.TestStandardContextResources.NIO.txt

05-Nov-2013 00:35:52.555 SEVERE [localhost-startStop-1]
org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to
process Jar entry [com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class] from
Jar [jar:file:/(...)/libraries/tomcat8/cobertura-2.0.3/lib/icu4j-2.6.1.jar!/]
for annotations
 org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag
in constant pool: 60
    at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:124)
    at
org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
    at
org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:167)
    at
org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:91)
    at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2027)
    at
org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1958)
    at
org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1926)
    at
org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1877)
    at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1147)
    at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
    at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5166)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1390)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1380)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message