2013年12月15日星期日

SSH broken network can not access the database , Could not open Hibernate Session for transaction;

Ask a question , ah, that I used Struts2.2.1 + Hibernate3.3.2 + Spring3.0 configuration items do later to publish to the server, but the server is not connected to external networks . Now projects are being given all the connections to the database . . .
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: xsi = "http://www.w3.org/2001/XMLSchema-instance"
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 ->
destroy-method = "close">
hibernate in *. hbm.xml configuration


"- / / Hibernate / Hibernate Mapping DTD 3.0 / / EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

why. . . .




------ Solution ------------------------------------ --------
top
------ For reference only ------------------------- --------------
issue has been resolved
------ For reference only ------------------ ---------------------
not see how ah ?
------ For reference only -------------------------------------- -
trash Oh, you have a problem you want to solve other people eh ,
you solve without stickers.

------ For reference only ---------------------------------- -----
garbage ah
------ For reference only -------------------------- -------------
I also encountered a similar problem some time ago , probably because hiberante when parsing configuration files and mapping files need to download from the Internet *. dtd, and later on in advance of the * . dtd downloads down, http://blog.csdn.net/snarlfuture/article/details/17309279

没有评论:

发表评论