ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kasim ahmed <mail2ka...@googlemail.com>
Subject ant:Log4j:java.lang.NoClassDefFoundError
Date Tue, 14 Jun 2011 15:49:41 GMT
I am getting following error when i run junit target from ant script.

    java.lang.NoClassDefFoundError
    at org.apache.log4j.Logger.getLogger(Logger.java:118)
    at
com.bgc.ordering.wizard.back.services.onthology.service.mock.OptionsRepository.<clinit>(OptionsRepository.java:25)
    at
com.bgc.ordering.wizard.back.services.onthology.service.mock.SellableItemsRepository.<init>(SellableItemsRepository.java:17)
    at
com.bgc.ordering.wizard.back.services.onthology.service.mock.OptionsRepositoryParser.parse(OptionsRepositoryParser.java:30)
    at
com.bgc.ordering.wizard.back.services.onthology.service.mock.BundleRepositoryParserTest.setUp(BundleRepositoryParserTest.java:52)

I have only one log4j ie log4j-1.2.15.jar and log4j.properties present at
the classpath.
when i comment logger calling api, then it is working fine.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message