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.