Hi Guys, I'm new to this forum, so sorry 4 mistakes,
I'm currently try to develop a Spring-Hibernate Apps. I got a problem when trying to launch my Application.
I use hibernate.cfg.xml to configure my hibernate properties, which is called from HibernateUtil class. I put these on my code
System.out.println("enter configure");
configuration.configure("/hibernate.cfg.xml");
System.out.println("finish configure");
and the "finish configure" appear after 1 minute. I only put this on my configuration:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:db01</property>
<property name="connection.username">x</property>
<property name="connection.password">x</property>
<property name="connection.pool_size">1</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="current_session_context_class">thread</property>
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">create</property>
<mapping resource="/User.hbm.xml"/>
</session-factory>
</hibernate-configuration>
I use Weblogic server as my web apps.
Any1 got solution?
~thx4AnyReply
~sorry4BadEnglish
|