Results 1 to 3 of 3
- 04-04-2011, 04:09 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Power
- 0
Could not parse configuration: /hibernate.cfg.xml
hi ..i had problem when i run my code of hibernate ..
it shows "
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Could not parse configuration: /hibernate.cfg.xml"
here is my hibernate.cfg.xml fiel..the hibernate-config-3.0 dtd fiel is downloaded and placed besides the xml fiel....!
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">
jdbc:mysql://localhost/hibnet</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="contact.hbm.xml"/>
</session-factory>
</hibernate-configuration>
thanks in advanceLast edited by Matang; 04-04-2011 at 04:17 PM.
- 04-07-2011, 07:28 PM #2
Member
- Join Date
- Apr 2011
- Posts
- 2
- Rep Power
- 0
Log4j
Place Log4j in your class path . It should solve the problem .. ..
- 04-10-2011, 02:28 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
JVM configuration, -xmx over 4 gb
By tolja in forum Advanced JavaReplies: 3Last Post: 06-30-2010, 12:09 PM -
How to parse this value
By Ajitha in forum New To JavaReplies: 2Last Post: 06-03-2010, 07:26 AM -
using parse
By mustachMan in forum New To JavaReplies: 2Last Post: 01-15-2010, 01:32 AM -
SAX Parse
By bluefloyd8 in forum New To JavaReplies: 1Last Post: 01-25-2008, 03:57 PM -
org.hibernate.ejb.Version <clinit> INFO: Hibernate EntityManager 3.2.0.CR1
By Heather in forum JDBCReplies: 2Last Post: 06-30-2007, 03:01 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks