Hibernate "could not parse configuration"

Já procurei em uns 10 tópicos diferentes, mas nenhuma das soluções realmente funcionou pra mim. O erro parece ser um tanto quanto genérico…
Está dando esse erro no meu arquivo de configuração do Hibernate: "Could not parse configuration: utilitarios/hibernate.cfg.xml

O stacktrace:

Fev 02, 2012 5:55:27 PM org.hibernate.annotations.common.Version <clinit> INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} Fev 02, 2012 5:55:27 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {4.0.0.Final} Fev 02, 2012 5:55:27 PM org.hibernate.cfg.Environment <clinit> INFO: HHH000206: hibernate.properties not found Fev 02, 2012 5:55:27 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: HHH000021: Bytecode provider name : javassist Fev 02, 2012 5:55:27 PM org.hibernate.cfg.Configuration configure INFO: HHH000043: Configuring from resource: utilitarios/hibernate.cfg.xml Fev 02, 2012 5:55:27 PM org.hibernate.cfg.Configuration getConfigurationInputStream INFO: HHH000040: Configuration resource: utilitarios/hibernate.cfg.xml Fev 02, 2012 5:55:27 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

O arquivo de configuração:

[code]<?xml version="1.0" encoding="UTF-8"?>

org.apache.derby.jdbc.EmbeddedDriver jdbc:derby:DietManager APP
</property>
<property name="hibernate.dialect">
        org.hibernate.dialect.DerbyDialect
</property>
<mapping resource="utilitarios/food.hbm.xml"/>
[/code]

O de mapeamento:

[code]<?xml version="1.0" encoding="UTF-8"?>

[/code]

A conexão:

Food alimento = new Food(); //vários getters SessionFactory fabrica = new Configuration().configure("utilitarios/hibernate.cfg.xml").buildSessionFactory(); Session sessao = fabrica.openSession(); Transaction xFood = sessao.beginTransaction(); sessao.save(alimento); xFood.commit(); sessao.clear();

Obrigado pela atenção

Ta dando erro no namespace.

Tenta assim :

[code]<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE hibernate-mapping PUBLIC “-//Hibernate/Hibernate Mapping DTD 3.0//EN” “http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd”>
<hibernate-mapping>
<class name=“Bean” table=“carro”>

&lt;/class&gt;

</hibernate-mapping>[/code]

t+

Eu mudei de 3.0 pra 3.6 porque dizia no stacktrace que o 3.0 estava obsoleto.
Mas trocando os 2 .xml pra 3.0 deu esse erro de “could not parse” no MAPEAMENTO ao invés das CONFIGURAÇÕES…

Fev 02, 2012 6:19:17 PM org.hibernate.annotations.common.Version <clinit> INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} Fev 02, 2012 6:19:17 PM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {4.0.0.Final} Fev 02, 2012 6:19:17 PM org.hibernate.cfg.Environment <clinit> INFO: HHH000206: hibernate.properties not found Fev 02, 2012 6:19:17 PM org.hibernate.cfg.Environment buildBytecodeProvider INFO: HHH000021: Bytecode provider name : javassist Fev 02, 2012 6:19:17 PM org.hibernate.cfg.Configuration configure INFO: HHH000043: Configuring from resource: utilitarios/hibernate.cfg.xml Fev 02, 2012 6:19:17 PM org.hibernate.cfg.Configuration getConfigurationInputStream INFO: HHH000040: Configuration resource: utilitarios/hibernate.cfg.xml Fev 02, 2012 6:19:17 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! Fev 02, 2012 6:19:17 PM org.hibernate.cfg.Configuration addResource INFO: HHH000221: Reading mappings from resource: utilitarios/food.hbm.xml Fev 02, 2012 6:19:17 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide! Fev 02, 2012 6:19:17 PM org.hibernate.cfg.Configuration doConfigure INFO: HHH000041: Configured SessionFactory: null

UP? Não consegui resolver ainda… Precisava arrumar isso logo. Alguém me ajuda por favor.