-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Not binding factory to JNDI, no JNDI name configured
PostPosted: Mon May 18, 2015 1:26 pm 
Newbie

Joined: Mon May 18, 2015 12:57 pm
Posts: 2
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&amp;useUnicode=true&amp;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!!!


Top
 Profile  
 
 Post subject: Re: Not binding factory to JNDI, no JNDI name configured
PostPosted: Thu May 21, 2015 9:44 am 
Newbie

Joined: Mon May 18, 2015 12:57 pm
Posts: 2
no body?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.