Spring框架整合测试时出现错误
来源:互联网 发布:疯狂淘宝李涛微博 编辑:程序博客网 时间:2024/06/06 13:15
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.(SpringJUnit4ClassRunner.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.
at
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createUnfilteredTest(JUnit4TestLoader.
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at
at
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.
at
... 18 more
解决方法:缺少commons-logging.jar包
阅读全文
0 0
- Spring框架整合测试时出现错误
- 整合hibernate和spring框架测试事物出现的异常
- spring+hibernate整合时出现的错误
- spring整合mongodb时出现的错误
- spring测试控制器时出现404错误
- 测试DWR框架出现错误
- 有关Struts和Spring框架整合时出现的问题
- SSH框架:Spring和hibernate整合时出现的异常
- hibernate测试框架整合出现的问题
- ssh框架整合出现的错误
- ssh框架整合出现错误二
- spring+hibernate 整合出现的错误集合
- Spring 整合JDBC出现的错误
- Spring +MyBatis 整合访问数据库出现错误
- 初学Spring框架,测试时出现的小问题
- 测试Spring和Hibernate整合时,出现的一个问题记录
- spring mybatis整合框架时由于mybatis版本与mysql客户端不匹配出现的问题
- 在Spring Cloud框架整合微服务时出现的org.springframework.web.HttpMediaTypeNotSupportedException异常问题
- Linux crontab 用法分析
- LeetCode 617. Merge Two Binary Trees
- dav-loading 专辑
- 【HDU1222】 Wolf and Rabbit(GCD)
- 机器学习笔记(六) 决策树
- Spring框架整合测试时出现错误
- Dapper的基本使用
- 文件编程
- 【Android 控件架构】详解Android控件架构与常用坐标系
- 图像配准(Image Registration)简介
- so库又一次遇到 undefined symbol------ldd, nm, c++filt命令大显身手
- 跨域请求 JSONP & CORS
- JStorm与Storm源码分析(七)--BasicBoltExecutor与装饰模式
- jquery autoComplete 自定义回写样式