Estou configurando hibernate mas esta com o seguinte erro:
Hibernate Commons Annotations 3.2.0.Final
Hibernate 3.6.7.Final
hibernate.properties not found
Bytecode provider name : javassist
using JDK 1.4 java.sql.Timestamp handling
configuring from resource: hibernate.cfg.xml
Configuration resource: hibernate.cfg.xml
recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
Exception in thread “main” org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246)
at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)
at com.green.dao.AssinaturaDAO.createSession(AssinaturaDAO.java:15)
at com.green.dao.AssinaturaDAO.main(AssinaturaDAO.java:37)
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)
… 3 more
Meu hibernate.cfg.xml: (tem um alerta : The file cannot be validated as there was a connection problem.)
Check Nullability in Core (should be disabled when Bean Validation is on): enabled
building session factory
Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@1fddc31
Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@1835282
Type registration [blob] overrides previous : org.hibernate.type.BlobType@9df354
Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@9df354
Type registration [clob] overrides previous : org.hibernate.type.ClobType@1d225a7
Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@1d225a7
Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@1a62c31
Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@9f5011
Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@141b571
Not binding factory to JNDI, no JNDI name configured
Running hbm2ddl schema export
exporting generated schema to database
schema export complete
Exception in thread “main” org.hibernate.MappingException: Unknown entity: com.green.entidade.Assinatura
at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:693)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1485)
Reading mappings from resource : org/hibernate/test/cache/jbc/functional/Assinatura.hbm.xml
Exception in thread "main" org.hibernate.MappingNotFoundException: resource: org/hibernate/test/cache/jbc/functional/Assinatura.hbm.xml not found
O cfg e o hbm se encontram no pacote com/green/resources