错误记录5:

报错如下:Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

报这个错误在网上搜了一堆 都没解决  最后发现是ojdbc6那个jar包的问题,这个包之前jar包加的时候就有问题  当时是报红 以为不报红就没事了 ,

接下来记录一下解决这个问题的方法

1.因为ojdbc6是收费的,不能像别的jar包一样在pom里复制代码自动下载,所以需要我们手动加  首先 下载一个ojdbc6的jar包

下载地址:https://download.csdn.net/download/ting0712/12064893

放在你的maven仓库里

2.打开

这里选择的是 前面下的 那个jar包

点完ok点 Apply--->再Ok 就可以了

pom文件里的 关于ojdbc6的这段注释掉就可以了

<!-- https://mvnrepository.com/artifact/com.oracle.jdbc/ojdbc8 --><!--<dependency>--><!--<groupId>com.oracle</groupId>--><!--<artifactId>ojdbc6</artifactId>--><!--<version>11.2.0.2.0</version>--><!--</dependency>-->

我的这个错误是 这个jar包 加好了 就完事了

为报这个错的同僚 提供一个 解决办法 over

ojdbc6报红以及nested exception is org.hibernate.service.spi.ServiceException: 已解决相关推荐

  1. Internal Server Error“,“message“:“nested exception is org.apache.ibatis.exce【已解决】

    今天在使用ssm做一个简单的学生管理系统时,在登陆时遇到了以下问题 Internal Server Error","message":"nested excep ...

  2. 报错,could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exce

    问题: Hibernate: insert into vm_card_type (type_name) values (?) 2021-04-29 14:37:17.522  WARN 13112 - ...

  3. 报错,nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException??

    1. 问题: 2021-01-06 15:43:41.663 ERROR 10184 --- [io-13000-exec-2] c.y.a.c.v1.retcode.RetControlller   ...

  4. 报错,could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarExc

    1.问题 {     "timestamp": "2020-11-28 11:18:17",     "status": 404,     ...

  5. Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could n

    今天在写ssh的时候遇到了一个这样的问题,连登陆页面都进不去了 报错信息如下: 严重: Exception sending context initialized event to listener ...

  6. Unknown integral data type for ids : java.lang.String; nested exception is org.hibernate.id.Identifi

    1.发生的异常内容: org.springframework.orm.hibernate5.HibernateSystemException: Unknown integral data type f ...

  7. Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.Generi

    spring hiberate项目启动没有报错,访问服务时突然报错500:Could not open Hibernate Session for transaction; nested except ...

  8. Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.Gener

    今天整合ssh 项目遇到的错误: ERROR SqlExceptionHelper Cannot create PoolableConnectionFactory (Access denied for ...

  9. threw exception [Request processing failed; nested exception is org.hibernate.exception.SQLGrammarE

    在这里插入代码片> threw exception [Request processing failed; > nested exception is org.hibernate.exce ...

  10. could not locate named parameter [***]; nested exception is org.hibernate.QueryParameterException: c

    详细异常: could not locate named parameter [customerGroupName]; nested exception is org.hibernate.QueryP ...

最新文章

  1. 架构师已死(转自UML软件工程组织)
  2. bzoj 1179 抢掠计划atm (缩点+有向无环图DP)
  3. scala中object和class关键字的区别
  4. java责任链模式审批请假_Java使用责任链模式处理学生请假问题详解
  5. Windows下自动备份Oracle数据库
  6. ajax php 返回值 数组,ajax 返回数组怎么解决???
  7. python之路day4_【Python之路Day4】基础篇
  8. Newtonsoft 六个超简单又实用的特性,值得一试 !
  9. 2017高教杯数学建模B 题分析
  10. 非对称加密 DH算法
  11. LaTeX 中的花体字母
  12. 瞻博网络Contrail多云解决方案荣获最佳创新解决方案奖
  13. 2021年英国经济发展研究报告
  14. SND: 项目发布时Owning ClassInfo is null for property: private问题原因排查与解决
  15. 均值归一化_深度神经网络中的归一化技术
  16. Python -- Matplotlib:画一条水平线或竖直线
  17. CentOS上的硬盘分区
  18. 路由器redirect 配置_新页软件:如何设定双层以上路由器互联网模式
  19. Javascript基础*
  20. php懒惰模式,PHP正则贪婪/懒惰匹配模式

热门文章

  1. windows游戏编程 (一) 了解WinMain函数,创建一个信息框
  2. mysql数据库程序设计实例_mysql数据库编程精华案例347个(知此347个例子,便是高手矣)...
  3. 手动升级麦咖啡(McAfee)病毒库的步骤
  4. 金蝶KIS 13.0专业版破解方法破解安装流程 金蝶KIS 13.0专业版安装流程
  5. ZooKeeper 客户端: GUI+命令行两大类(史上最全,值得收藏)
  6. 视频教程-VBA从入门到精通(控件+类模块+ADO+SQL数据库)-Office/WPS
  7. 历史上的重大软件BUG启示录 第6篇---蠕虫“冲击波”
  8. opencv widthstep 理解
  9. 传诺基亚将和微软合作生产WP7手机
  10. java jxta_JXTA——JAVA P2P网络编程技术(入门篇) | 学步园