run:
20/04/2011 01:11:52 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.5
20/04/2011 01:11:52 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
20/04/2011 01:11:52 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
20/04/2011 01:11:52 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
20/04/2011 01:11:52 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: hibernate.cfg.xml
20/04/2011 01:11:52 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: hibernate.cfg.xml
20/04/2011 01:11:52 org.hibernate.util.XMLHelper$ErrorLogger error
GRAVE: Error parsing XML: hibernate.cfg.xml(12) Document is invalid: no grammar found.
20/04/2011 01:11:52 org.hibernate.util.XMLHelper$ErrorLogger error
GRAVE: Error parsing XML: hibernate.cfg.xml(12) Document root element "hibernate-configuration", must match DOCTYPE root "null".
o arquivo cfg em questão é esse:
<!DOCTYPE hibernate-mapping public "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-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/javahibernate
</property>
<property name="hibernate.connection.username">
root
</property>
<property name="hibernate.connection.password">
root
</property>
<property name="hibernate.connection.dialect">
org.hibernate.dialect.MySQLDialect
</property>
<mapping resource="aluno.hbm.xml"/>
</session-factory>
</hibernate-configuration>
porém, ele está errado...
minha dúvida é com relação ao dialect...ele está certo?? fora isso, tem mais algum erro???
Valeu, gent!!!
Horácio