分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

1、错误描述

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngineConfiguration' defined in class path resource [activiti.cfg.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSessionFactory at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfiguration(BeansConfigurationHelper.java:36) at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfigurationFromResource(BeansConfigurationHelper.java:48) at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromResource(ProcessEngineConfiguration.java:232) at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromResource(ProcessEngineConfiguration.java:228) at org.activiti.engine.impl.test.TestHelper.getProcessEngine(TestHelper.java:227) at org.activiti.engine.test.ActivitiRule.initializeProcessEngine(ActivitiRule.java:237) at org.activiti.engine.test.ActivitiRule.starting(ActivitiRule.java:205) at org.activiti.engine.test.ActivitiRule.startingQuietly(ActivitiRule.java:171) at org.activiti.engine.test.ActivitiRule.access$000(ActivitiRule.java:86) at org.activiti.engine.test.ActivitiRule$1.evaluate(ActivitiRule.java:124) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)Caused by: java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSessionFactory at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2688) at java.lang.Class.privateGetPublicMethods(Class.java:2814) at java.lang.Class.privateGetPublicMethods(Class.java:2830) at java.lang.Class.privateGetPublicMethods(Class.java:2830) at java.lang.Class.getMethods(Class.java:1602) at org.springframework.beans.ExtendedBeanInfoFactory.supports(ExtendedBeanInfoFactory.java:54) at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:46) at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:270) at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:189) at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:172) at org.springframework.beans.BeanWrapperImpl.getLocalPropertyHandler(BeanWrapperImpl.java:225) at org.springframework.beans.BeanWrapperImpl.getLocalPropertyHandler(BeanWrapperImpl.java:63) at org.springframework.beans.AbstractNestablePropertyAccessor.getPropertyHandler(AbstractNestablePropertyAccessor.java:725) at org.springframework.beans.AbstractNestablePropertyAccessor.isWritableProperty(AbstractNestablePropertyAccessor.java:557) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1483) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ... 31 morejava.lang.NullPointerException at org.activiti.designer.test.ProcessTestAudition.startProcess(ProcessTestAudition.java:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.activiti.engine.test.ActivitiRule$1.evaluate(ActivitiRule.java:126) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)org.activiti.engine.ActivitiException: Programmatic error: could not instantiate org.activiti.designer.test.ProcessTestAudition at org.activiti.engine.test.ActivitiRule.finished(ActivitiRule.java:268) at org.activiti.engine.test.ActivitiRule.finishedQuietly(ActivitiRule.java:179) at org.activiti.engine.test.ActivitiRule.access$400(ActivitiRule.java:86) at org.activiti.engine.test.ActivitiRule$1.evaluate(ActivitiRule.java:135) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)Caused by: java.lang.ClassNotFoundException: org/activiti/designer/test/ProcessTestAudition at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:259) at org.activiti.engine.test.ActivitiRule.finished(ActivitiRule.java:265) ... 19 more

2、错误原因

由错误提示可知,缺少ibatis有关的jar包

package org.apache.ibatis.session;import java.sql.Connection;public abstract interface SqlSessionFactory{  public abstract SqlSession openSession();    public abstract SqlSession openSession(boolean paramBoolean);    public abstract SqlSession openSession(Connection paramConnection);    public abstract SqlSession openSession(TransactionIsolationLevel paramTransactionIsolationLevel);    public abstract SqlSession openSession(ExecutorType paramExecutorType);    public abstract SqlSession openSession(ExecutorType paramExecutorType, boolean paramBoolean);    public abstract SqlSession openSession(ExecutorType paramExecutorType, TransactionIsolationLevel paramTransactionIsolationLevel);    public abstract SqlSession openSession(ExecutorType paramExecutorType, Connection paramConnection);    public abstract Configuration getConfiguration();}/* Location:           C:\Users\Administrator\Desktop\ibatis-core-3.0.jar * Qualified Name:     org.apache.ibatis.session.SqlSessionFactory * Java Class Version: 5 (49.0) * JD-Core Version:    0.7.0.1 */

3、解决办法

(1)将ibatis-core-3.0.jar复制到lib目录下

(2)在pom.xml中添加

<!-- https://mvnrepository.com/artifact/org.apache.ibatis/ibatis-core --><dependency>    <groupId>org.apache.ibatis</groupId>    <artifactId>ibatis-core</artifactId>    <version>3.0</version></dependency>

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

java lang NoClassDefFoundError org/apache/ibatis/session/Sq相关推荐

  1. 一次java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession异常解决

    一次整合框架时,出现找不到类的异常,如下图所示 java.lang.NoClassDefFoundError: org/apache/ibatis/session/SqlSession 详细报错信息如 ...

  2. java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession

    默默记录一个被自己蠢死的错误!!! 原本可以运行的项目突然报错了..!!然后自己很纳闷,因为什么都没有改,就排了两个jar冲突,百思不得其解..然后各种百度各种找问题,就是死活找不到..知道后来认认真 ...

  3. Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resources

    项目场景: 在学习mybatis框架的时候,刚刚学习如果查询数据库user表中的信息时 问题描述: 所有步骤都是按照教程上走的,但是运行后里面就出现了 Exception in thread &quo ...

  4. Mybatis笔记一:java.lang.NoClassDefFoundError: org/apache/ibatis/mapping/DatabaseIdProvider

    异常错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSess ...

  5. java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resources

    关于 idea 中 mybatis 项目 报错:NoClassDefFoundError 的问题: - 需要将需要的包导入到输出的文件夹中 - 但是idea 不会默认导进去 - 导致在部署项目的时候l ...

  6. HBase出现java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration问题

    问题:Hbase在集群上运行报错:NoClassDefFoundError:org/apache/hadoop/hbase/HBaseConfiguration 需求:HBase使用Java创建表,打 ...

  7. 求助--报错:Caused by: java.lang.ClassCastException: org.apache.ibatis.type.InstantTypeHandler cannot be

    这里写自定义目录标题 问题描述: 问题描述: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creat ...

  8. java.lang.NoClassDefFoundError: org/apache/poi/ss/usermodel/Workbook] with root cause

    一.问题描述 使用POI上传excel,本地可正常运行,开发服务器上报错. 二.异常信息如下: 2019-05-05 17:00:22,349 ERROR [http-nio-8080-exec-7] ...

  9. VSCrawler 爬虫 java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解决方案

    长长的报错信息如下: 13:39:15.345 [main] WARN c.v.vscrawler.core.event.EventLoop - 程序已停止 13:39:15.376 [main] I ...

最新文章

  1. 我作为Java后端,分享一下入门Spark编程的经历!
  2. 跟小静学CLR via C#(12)-委托Delegate
  3. linux上验证cudnn是否安装成功_非root用户安装cuda与cudnn
  4. InnerClass内部类
  5. JConsole连接远程linux服务器配置
  6. 【ES8(2017)】async / await
  7. 10 年前的我 VS 10 年后的我
  8. 阿里历年经典Java面试题汇总
  9. 6款字体转换工具网站,一键生成想要字体!
  10. 解决 could not initialize proxy [com.xxx.xxx.xxx.entity.xxxInfo#1] - no Session
  11. 笔记本设置路由实现内外网同时使用
  12. AMOS软件简介【SPSS 050期】
  13. 华硕afudos刷bios_ASUS主板刷BIOS详细图解方法 包含windows和DOS两种环境
  14. mysql的windows安装步骤_windows下mysql安装配置教程
  15. rest_framework--过滤器filters--搜索
  16. 什么是运动模糊(Motion Blur)
  17. Apple Open Source
  18. OV代码签名和EV代码签名证书区别
  19. java解析xml文件练习——通过应用包名获取应用图标即其他信息(基于魅族应用商店)...
  20. 内网穿透 —— 利用 ISS 和 ngrok 搭建可以让外网访问的个人网站

热门文章

  1. 使用Windows控制台清理U盘
  2. MiniFly四轴飞行器之部分系统及电源分析
  3. linux内核新书,关于Linux,你该读哪些书
  4. UltraEdit 激活方法
  5. CentOS 6.0 图形(图解)安装教程
  6. 玩转Django2.0---Django笔记建站基础十一(二)
  7. 可能是最适合体育迷的看球直播站
  8. 北交计算机学硕培养计划,北京交通大学_研究生培养计划表.doc
  9. 阿里园区竟然开了一家微笑就可以打折的店
  10. ThinkPHP5.0的think-swoole 开启WebSocket的SSL支持 使用wss连接