51Testing软件测试论坛

标题: cobertura命令行方式怎么用? [打印本页]

作者: endales    时间: 2010-2-4 17:10
标题: cobertura命令行方式怎么用?
用cobertura-instrument.bat之后,将cobertura.jar和生成的cobertura.ser放到tomcat的bin目录下,启动tomcat,报错:
10:40:09,102? ERROR ContextLoader:206 - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name 'kqDataSource' defined in ServletContext resource [/WEB-INF/bean
sconf/system/utils/beans-datasource.xml]: Unsatisfied dependency expressed throu
gh bean property 'logWriter': Error loading class [net.jite.kaoqing.usermanager.
service.UserManagerServiceCacheableProxy] for bean with name 'umService' defined
in ServletContext resource [/WEB-INF/beansconf/system/usermanager/beans-userman
ager-service.xml]: problem with class file or dependent class; nested exception
is java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/HasBee
nInstrumented
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireByType(AbstractAutowireCapableBeanFactory.java:1119)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1014)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory$1.run(AbstractAutowireCapableBeanFactory.java:485)
        at java.security.AccessController.doPrivileged(Native Method)
不知如何解决,郁闷中:(




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2