51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3881|回复: 0
打印 上一主题 下一主题

[求助] cobertura命令行方式怎么用?

[复制链接]
  • TA的每日心情
    擦汗
    2015-8-18 16:22
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    跳转到指定楼层
    1#
    发表于 2010-2-4 17:10:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    用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)
    不知如何解决,郁闷中:(
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-4-28 12:42 , Processed in 0.065639 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表