TeamCity 2.1.1(build 4261)

I'm running TeamCity 2.1.1 on mac os X. I'm encountering the following issue with junit4.1, ant 1.7 and team city:
Could you help ?

Build errors

: test (4s)
: junit (4s)
: Using loader AntClassLoader[/Applications/Dev/apache-ant-1.7.0/lib/ant-launcher.jar:/Applications/Dev/apache-ant-1.7.0/lib/ant.jar:/Applications/Dev/apache-ant-1.7.0/lib/ant-junit.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/actionEngine.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/antlr-2.7.6.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/asm.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/atomikos-util.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/cglib-2.1.3.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/commons-cli-1.0.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/commons-collections-3.1.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/commons-logging-1.0.4.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/dom4j-1.6.1.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/freemarker-2.3.8.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/hibernate-tools.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/hibernate3.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/jaxen-1.1-beta-7.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/jta.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/junit-4.1.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/log4j-1.2.11.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/mysql-connector-java-5.0.6-bin.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/ojdbc14.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/transactions-api.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/transactions-hibernate3.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/transactions-jta.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/lib/transactions.jar:/Users/emmanuel/Projects/pia/actionEngineLib/java/tags/papyrus_pilote/dist/conf:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/junit-4.1.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/src/properties:/Applications/buildAgent/work/Server/papyrus_(oracle)/build/webapp/classes:/Applications/buildAgent/work/Server/papyrus_(oracle)/tmp/generated/java/test:/Applications/buildAgent/work/Server/papyrus_(oracle)/src/java/test/sfr/mail/util/configuration:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/FlexAntTasks.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/activation.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/antlr-3.0ea8.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/commons-jci-core-1.0-406301.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/commons-jci-eclipse-3.2.0.666.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/commons-jci-janino-2.4.3.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/commons-lang-2.1.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/core-3.2.0.666.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/drools-compiler-3.0.5.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/drools-core-3.0.5.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/mail.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/quartz-all-1.6.0.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/spring-mock.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/spring.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/stringtemplate-2.3b6.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/testng-5.4-jdk15.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/libs/java/xstream-1.1.3.jar:/Applications/buildAgent/work/Server/papyrus_(oracle)/tmp/properties:/Applications/buildAgent/lib/buildServerRuntimeUtil.jar:/Applications/buildAgent/plugins/antPlugin/lib/buildServerAntRuntime.jar] on class jetbrains.buildServer.agent.ant.AgentJUnitFormatter: java.lang.NoClassDefFoundError: junit/framework/TestListener

1 comment

Hello,

Looks strange. Please try using embedded ant instead of custom one (clear ant home field in runner parameters). If you really need using custom ant, try to put junit-3.8.1.jar to ant's lib directory (Ant will use junit 4.1 if you specify it in junit task classpath).

Hope this helps,
KIR

0

Please sign in to leave a comment.