Configuring the SSH framework to start the Tomcat Server report exception Unable to create requested service [Org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Source: Internet
Author: User
Tags tomcat server

When you configure JDBC in spring, the Dbcp.jar package is referenced, and in the Db.properties configuration file, the user name of the previous properties profile is used username(mysql user name)

The following exceptions are reported in the boot server:

1. 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]

2. caused By:org.hibernate.service.spi.ServiceException:Unable to create requested service [ Org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

3, caused By:org.hibernate.HibernateException:Access to dialectresolutioninfo cannot is null when ' Hibernate.dialect ' no T set

Applicationcontext.xml configuration file

Db.properties.xml configuration file

Later, the check found that the load read configuration file in the label

<context:property-placeholder location= "Classpath:dataSource.properties"/> One less attribute system-properties-mode= " FALLBACK ",

The system defaults to system-properties-mode= "environment" means to read from the system environment, the computer name as myslq user name, modified to run successfully.

Configuring the SSH framework to start the Tomcat Server report exception Unable to create requested service [Org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.