0

i m new for hibernate and trying to run first application but getting this error:


"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>  

    <session-factory>  
        <property name="hbm2ddl.auto">update</property>  
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>  
        <property name="connection.url">jdbc:mysql://localhost:3306/test</property>  
        <property name="connection.username">root</property>  
        <property name="connection.password">prashant</property>  
        <property name="connection.driver_class"> com.mysql.jdbc.Driver</property>  
    <mapping resource="employee.hbm.xml"/>  
    </session-factory>  

</hibernate-configuration>  
2
  • paste your hibernate.cfg to the question.. Commented Apr 26, 2017 at 7:42
  • this is cfg file Commented Apr 26, 2017 at 9:10

1 Answer 1

1

Looks like you have some invalid xml in your hibernate.cfg.xml since it cannot parse.

Try to post the content in the file here so we can take a look at it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.