hi
Im newbie using hibernate , and i having a big problem. i searched all the forum but didn't found a solution. i hope somebody can help me :-)
Im using tomcat 7 and hibernate 3.2. the problem is when hibernate try to build the session i got the error
[Thread-53] INFO org.hibernate.impl.SessionFactoryImpl - building session factory [Thread-53] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
then when i try to do any sql transaction i got errors like this
ajp-apr-9155-exec-3] ERROR org.hibernate.connection.ProxoolConnectionProvider - Proxool Provider unable to load JAXP configurator file: ProxoolConf.xml org.logicalcobwebs.proxool.ProxoolException: Parsing failed.
or this
Caused by: org.xml.sax.SAXException: Attempt to register duplicate pool called 'javawindPool' org.logicalcobwebs.proxool.ProxoolException: Attempt to register duplicate pool called 'javawindPool'
my proxoolConf.xml
<?xml version="1.0" encoding="utf-8"?> <something-else-entirely> <proxool> <alias>javawindPool</alias> <driver-url>jdbc:mysql://localhost:3306/mydb?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8</driver-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <driver-properties> <property name="user" value="mydb"/> <property name="password" value="xxxxx"/> </driver-properties> <house-keeping-sleep-time>90000</house-keeping-sleep-time> <simultaneous-build-throttle>20</simultaneous-build-throttle> <prototype-count>5</prototype-count> <maximum-connection-count>100</maximum-connection-count> <minimum-connection-count>5</minimum-connection-count> </proxool> </something-else-entirely>
and my hibernate.cfg.xml
<!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="hibernate.proxool.pool_alias">javawindPool</property> <property name="hibernate.proxool.xml">ProxoolConf.xml</property> <property name="hibernate.connection.provider_class">org.hibernate.connection.ProxoolConnectionProvider</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.show_sql">false</property> <mapping resource="com/car/hibernate/Pic.hbm.xml"/> <mapping resource="com/car/hibernate/Insurance.hbm.xml"/> <mapping resource="com/car/hibernate/Maintain.hbm.xml"/> <mapping resource="com/car/hibernate/CCheck.hbm.xml"/> <mapping resource="com/car/hibernate/Fault.hbm.xml"/> <mapping resource="com/car/hibernate/Alarm.hbm.xml"/> <mapping resource="com/car/hibernate/CarAlarm.hbm.xml"/> <mapping resource="com/car/hibernate/CarStatus.hbm.xml"/> <mapping resource="com/car/hibernate/Driver.hbm.xml"/> <mapping resource="com/car/hibernate/ParkLog.hbm.xml"/> <mapping resource="com/car/hibernate/Download.hbm.xml"/> </session-factory> </hibernate-configuration>
thanks for your help!!!
|