Mapeamento - hibernate

APARECE ESTE ERRO, EU TO USANDO ODBC E ACCESS, ABAIXO ESTA O QUE ESTOU USANDO, SE ALGUEM PUDER ME AJUDAR EU AGRADEÇO, POIS ESTOU MEIO PERDIDO COM HIBERNATE POIS TO TENTANDO APRENDER NA UNHA.
ABRAÇOS A TODOS E ATE MAIS…

LOG

2006-07-27 14:00:49,698 INFO hibernate.cfg.Environment -> Hibernate 3.2 cr3 2006-07-27 14:00:49,729 INFO hibernate.cfg.Environment -> loaded properties from resource hibernate.properties: {hibernate.dialect=net.sf.hibernate.dialect.GenericDialect, hibernate.connection.url=jdbc:ODBC:amigos, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.driver_class=sun.jdbc.odbc.JdbcOdbcDriver} 2006-07-27 14:00:49,745 INFO hibernate.cfg.Environment -> Bytecode provider name : cglib 2006-07-27 14:00:49,792 INFO hibernate.cfg.Environment -> using JDK 1.4 java.sql.Timestamp handling 2006-07-27 14:00:50,229 INFO hibernate.cfg.Configuration -> Reading mappings from resource: classes/Amigo.hbm.xml 2006-07-27 14:00:55,369 DEBUG hibernate.util.DTDEntityResolver -> trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping.dtd] 2006-07-27 14:00:55,369 DEBUG hibernate.util.DTDEntityResolver -> recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/ 2006-07-27 14:00:55,385 DEBUG hibernate.util.DTDEntityResolver -> unable to locate [http://hibernate.sourceforge.net/hibernate-mapping.dtd] on classpath
ERRO

org.hibernate.MappingException: Could not read mappings from resource: classes/Amigo.hbm.xml at org.hibernate.cfg.Configuration.addClass(Configuration.java:544) at classes.AmigoDAO.<init>(AmigoDAO.java:12) at classes.TesteAmigo.main(TesteAmigo.java:15) Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:469) at org.hibernate.cfg.Configuration.addClass(Configuration.java:541) ... 2 more Caused by: org.dom4j.DocumentException: Connection reset by peer: connect Nested exception: Connection reset by peer: connect at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:460) ... 3 more
AMIGO.HBN.XML

<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping.dtd"> <hibernate-mapping> <class name="Amigos" table="amigos"> <id name="nome" column="nome" type="string"> <generator class="assigned"/> </id> <property name="endereco" type="string"/> <property name="telefone" type="string"/> <property name="celular" type="string"/> <property name="email" type="string"/> </class> </hibernate-mapping>
HIBERNATE.PROPERTIES

hibernate.dialect=net.sf.hibernate.dialect.GenericDialect hibernate.connection.driver_class = sun.jdbc.odbc.JdbcOdbcDriver hibernate.connection.url = jdbc:ODBC:amigos #hibernate.connection.username = root #hibernate.connection.password = root

<hibernate-mapping package=“PACOTE”>

no meu apareceu um problema parecido e isso resolveu. tenta ai