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

    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"
    "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 advance
    Last edited by Matang; 04-04-2011 at 05:17 PM.

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

    Smile Log4j

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

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

    Smile thanks..

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

Similar Threads

  1. JVM configuration, -xmx over 4 gb
    By tolja in forum Advanced Java
    Replies: 3
    Last Post: 06-30-2010, 01:09 PM
  2. How to parse this value
    By Ajitha in forum New To Java
    Replies: 2
    Last Post: 06-03-2010, 08: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, 04: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
  •