org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
I guess Hibernate or Spring configuration. . .
This is applicationContext.xml
xmlns: aop = "http://www.springframework.org/schema/aop"
xmlns: tx = "http://www.springframework.org/schema/tx"
xsi: schemaLocation = "
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd ">
<-! configure hibernate DataSource ->
hibernate in *. hbm.xml configuration
"- / / Hibernate / Hibernate Mapping DTD 3.0 / / EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
why. . . .
------ Solution ------------------------------------ .! --------
generally only * hbm.xml topmost
------ For reference only ---- -----------------------------------
issue has been resolved
------ For reference only ---------------------------------------
hungry , then divided
------ For reference only -------------------------------------- -
I also encountered a similar problem some time ago , probably because hiberante when parsing configuration files and mapping files downloaded from the Internet needed * dtd, and later on in advance of the * dtd download , . http://blog.csdn.net/snarlfuture/article/details/17309279
没有评论:
发表评论