yakadoo 发表于 2013-11-7 09:28:49

很奇怪,项目启动的时候会报这个错

我用的tomcat6,在启动的时候会报出这个错,但是不影响系统运行
Root WebApplicationContext: initialization started
Refreshing Root WebApplicationContext: startup date ; root of context hierarchy
Loading XML bean definitions from file
Loading XML bean definitions from file
Loading XML bean definitions from file
Loading XML bean definitions from file
Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.
java.lang.ClassNotFoundException: org.testng.annotations.BeforeTest
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
        at org.springframework.core.type.classreading.RecursiveAnnotationAttributesVisitor.visitEnd(AnnotationAttributesReadingVisitor.java:167)
        at org.springframework.asm.ClassReader.a(Unknown Source)
        at org.springframework.asm.ClassReader.accept(Unknown Source)
        at org.springframework.asm.ClassReader.accept(Unknown Source)

主要是Failed to classload type while reading annotation metadata. This is a non-fatal error, but certain annotation metadata may be unavailable.java.lang.ClassNotFoundException: org.testng.annotations.BeforeTest,这句话的问题,我试着去下载了testng的包,但是包里还是没有这个类,有人解答下吗?

jueyue 发表于 2013-11-7 13:30:53

这个应该是测试环境吧.和junit一样

yakadoo 发表于 2013-11-7 16:37:59

jueyue 发表于 2013-11-7 13:30 static/image/common/back.gif
这个应该是测试环境吧.和junit一样

不清楚,可能和IDE有关,我用的myeclipse10.
页: [1]
查看完整版本: 很奇怪,项目启动的时候会报这个错