ilovezhoujoe 发表于 2008-3-19 15:54:11

cactus2.0.8不支持junit4.2么?

使用MyEclipse执行cactus测试,建立一个Web Project项目,接下来按照
http://jakarta.apache.org/cactus/integration/howto_tomcat.html
介绍的一步一步建立工程文件,并在tomcat上发布,第一次使用的jar包有:
aspectjrt-1.2.1.jar,cactus-1.7.2.jar,commons-httpclient-2.0.2.jar,commons-logging-1.0.4.jar,servlet-api.jar,junit-3.8.1.jar
部署后访问网址
http: //localhost:8080/test/ServletTestRunner?suite=TestSampleServlet&xsl=cactus-report.xsl
抛出异常:java.lang.NoClassDefFoundError: junit/runner/TestSuiteLoader
后来将junit-3.8.1.jar更换为junit-4.2.jar,这次能正确显示出结果
百思不得其解,难道cactus1.7.2.jar不支持junit4.2么,是不是junit4.4也不支持呢

sky.pei 发表于 2008-3-29 13:06:29

myeclipse内建junite4.2的估计是你环境变量么设置对,所以他没有找到你3.8.1的jar包
页: [1]
查看完整版本: cactus2.0.8不支持junit4.2么?