| Joined: Thu Jun 05, 2008 12:53 pm
 Posts: 5
 | 
				
					| Hi,
 When I tried to build a session I get the following error:
 org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
 at org.dom4j.io.SAXReader.read(SAXReader.java:358)
 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1490)
 
 I am using Hibernate 3 and the cfg file also points to the 3.0DTD.
 Please find the config  file:
 
 <?xml version="1.0"?>
 <!DOCTYPE hibernate-configuration PUBLIC
 "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
 "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
 
 
 
 <hibernate-configuration>
 
 <session-factory>
 
 <property name="connection.provider_class">com.service.data.OracleDataSourceProvider</property>
 
 <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
 <property name="show_sql">true</property>
 <property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JDBCTransactionFactory</property>
 <property name="hibernate.current_session_context_class">thread</property>
 <property name="cache.provider_class">net.sf.hibernate.cache.EhCacheProvider</property>
 <property name="cache.use_query_cache">true</property>
 
 <mapping resource="com/service/data/model/OrderItem.hbm.xml"/>
 
 
 </session-factory>
 
 </hibernate-configuration>.
 
 Any help in this regard is appreciated.
 Thanks.
 
 
 |  |