Classpath Exceptions When Turning on Code Coverage
My tests run fine, until I turn on the code coverage. I get an exception that the emma libraries can't be found while trying to create a spring bean. The bean is a BeanPostProcessor. The exception is below. Am I supposed to do some additional configuration besides checking the box to turn on the code coverage?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runtime.propertyPlaceholderConfigurer' defined in class path resource : Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.vladium.emma.rt.RT
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.vladium.emma.rt.RT
at com.foliofn.infra.app.LocalPropertyPlaceholderConfigurer.$VRi(LocalPropertyPlaceholderConfigurer.java)
Please sign in to leave a comment.
One more thing - I'm using build 3914
Could you please file a Jira request at http://www.jetbrains.net/jira/browse/TW and attach your build.xml file (junit task only) and teamcity.log file from buildAgent/log directory?
As a workaround please try adding emma.jar from buildAgent/plugins/coveragePlugin/lib/ directory to your test classpath.
Kind regards,
KIR
I just added TW-2131. I haven't had a chance to try the work-around yet, but will let you know how it goes.