java - Junit tests are bringing weird errors on server startup (logger.DEBUG) -


we have tomcat spring web app. have lots of junit tests.

when set logger value "debug" tons of following errors:

06 mar 2014 12:16:39 trace classpathscanningcandidatecomponentprovider - scanning file   [d:\workspaceng\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\ng\web-  inf\classes\com\xxx\testing\baserollbacktest.class] 06 mar 2014 12:16:39 debug annotationattributesreadingvisitor - failed classload type while reading annotation metadata. non-fatal error, annotation metadata may unavailable. java.lang.classnotfoundexception: org.junit.after @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1702) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1547) @ org.springframework.core.type.classreading.recursiveannotationattributesvisitor.visitend(annotationattributesreadingvisitor.java:171) @ org.springframework.asm.classreader.a(unknown source) @ org.springframework.asm.classreader.accept(unknown source) @ org.springframework.asm.classreader.accept(unknown source) @ org.springframework.core.type.classreading.simplemetadatareader.<init>(simplemetadatareader.java:64) @ org.springframework.core.type.classreading.simplemetadatareaderfactory.getmetadatareader(simplemetadatareaderfactory.java:80) @ org.springframework.core.type.classreading.cachingmetadatareaderfactory.getmetadatareader(cachingmetadatareaderfactory.java:102) @ org.springframework.context.annotation.classpathscanningcandidatecomponentprovider.findcandidatecomponents(classpathscanningcandidatecomponentprovider.java:266) @ org.springframework.data.repository.config.repositorybeandefinitionbuilder.detectcustomimplementation(repositorybeandefinitionbuilder.java:154) @ org.springframework.data.repository.config.repositorybeandefinitionbuilder.registercustomimplementation(repositorybeandefinitionbuilder.java:116) @ org.springframework.data.repository.config.repositorybeandefinitionbuilder.build(repositorybeandefinitionbuilder.java:97) @ org.springframework.data.repository.config.repositorybeandefinitionparser.registergenericrepositoryfactorybean(repositorybeandefinitionparser.java:101) @ org.springframework.data.repository.config.repositorybeandefinitionparser.parse(repositorybeandefinitionparser.java:71) @ org.springframework.beans.factory.xml.namespacehandlersupport.parse(namespacehandlersupport.java:73) @ org.springframework.beans.factory.xml.beandefinitionparserdelegate.parsecustomelement(beandefinitionparserdelegate.java:1438) @ org.springframework.beans.factory.xml.beandefinitionparserdelegate.parsecustomelement(beandefinitionparserdelegate.java:1428) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.parsebeandefinitions(defaultbeandefinitiondocumentreader.java:195) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.doregisterbeandefinitions(defaultbeandefinitiondocumentreader.java:139) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.registerbeandefinitions(defaultbeandefinitiondocumentreader.java:108) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.registerbeandefinitions(xmlbeandefinitionreader.java:493) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:390) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.importbeandefinitionresource(defaultbeandefinitiondocumentreader.java:266) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.parsedefaultelement(defaultbeandefinitiondocumentreader.java:207) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.parsebeandefinitions(defaultbeandefinitiondocumentreader.java:192) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.doregisterbeandefinitions(defaultbeandefinitiondocumentreader.java:139) @ org.springframework.beans.factory.xml.defaultbeandefinitiondocumentreader.registerbeandefinitions(defaultbeandefinitiondocumentreader.java:108) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.registerbeandefinitions(xmlbeandefinitionreader.java:493) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.doloadbeandefinitions(xmlbeandefinitionreader.java:390) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:334) @ org.springframework.beans.factory.xml.xmlbeandefinitionreader.loadbeandefinitions(xmlbeandefinitionreader.java:302) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:174) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:209) @ org.springframework.beans.factory.support.abstractbeandefinitionreader.loadbeandefinitions(abstractbeandefinitionreader.java:180) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:125) @ org.springframework.web.context.support.xmlwebapplicationcontext.loadbeandefinitions(xmlwebapplicationcontext.java:94) @ org.springframework.context.support.abstractrefreshableapplicationcontext.refreshbeanfactory(abstractrefreshableapplicationcontext.java:130) @ org.springframework.context.support.abstractapplicationcontext.obtainfreshbeanfactory(abstractapplicationcontext.java:537) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:451) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:389) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:294) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:112) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4939) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5434) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) 

any ideas why?

it happened me.

in case swithching testng junit (alas) project test classes

i had kept java testng files when migrating them, 1 one under junit did not compile more (i had deleted maven dependency).

(annotationattributesreadingvisitor.java:184).visitend() - failed class-load type while    reading annotation metadata. etc java.lang.classnotfoundexception: beforeclass 

after removing last testng files , clean under eclipse "maven" -> "update project... disappeared.

though not explain case, scenario bring light !

you have stale test classes using junit somewhere missing right junit jar compile ...


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -