Results 1 to 3 of 3
  1. #1
    Matang is offline Member
    Join Date
    Mar 2011
    Rep Power

    Exclamation 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"

    <property name="hibernate.connection.driver_class">

    <property name="hibernate.connection.url">

    <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="">update</property>
    <!-- Mapping files -->
    <mapping resource="contact.hbm.xml"/>

    thanks in advance
    Last edited by Matang; 04-04-2011 at 04:17 PM.

  2. #2
    rshekher is offline Member
    Join Date
    Apr 2011
    Rep Power

    Smile Log4j

    Place Log4j in your class path . It should solve the problem .. ..

  3. #3
    Matang is offline Member
    Join Date
    Mar 2011
    Rep Power

    Smile thanks..

    Hi thanks for help ..i hv removed the wornings..!
    Last edited by Matang; 04-10-2011 at 02:42 PM.

Similar Threads

  1. JVM configuration, -xmx over 4 gb
    By tolja in forum Advanced Java
    Replies: 3
    Last Post: 06-30-2010, 12:09 PM
  2. How to parse this value
    By Ajitha in forum New To Java
    Replies: 2
    Last Post: 06-03-2010, 07:26 AM
  3. using parse
    By mustachMan in forum New To Java
    Replies: 2
    Last Post: 01-15-2010, 02:32 AM
  4. SAX Parse
    By bluefloyd8 in forum New To Java
    Replies: 1
    Last Post: 01-25-2008, 04:57 PM
  5. Replies: 2
    Last Post: 06-30-2007, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts