Hibernate

2 respostas
G
ta dando esse erro na universidade e em casa ta perfeito o que e isso??

2007-04-12 14:35:44,312 INFO  hibernate.cfg.Environment  -> Hibernate 3.2.2

2007-04-12 14:35:44,328 INFO  hibernate.cfg.Environment  -> hibernate.properties not found

2007-04-12 14:35:44,328 INFO  hibernate.cfg.Environment  -> Bytecode provider name : cglib

2007-04-12 14:35:44,343 INFO  hibernate.cfg.Environment  -> using JDK 1.4 java.sql.Timestamp handling

2007-04-12 14:35:44,421 INFO  hibernate.cfg.Configuration  -> configuring from resource: hibernate.cfg.xml

2007-04-12 14:35:44,421 INFO  hibernate.cfg.Configuration  -> Configuration resource: hibernate.cfg.xml

2007-04-12 14:35:44,750 DEBUG hibernate.util.DTDEntityResolver  -> trying to resolve system-id [<a href="http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd</a>]

2007-04-12 14:35:44,750 DEBUG hibernate.util.DTDEntityResolver  -> recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/

2007-04-12 14:35:44,750 DEBUG hibernate.util.DTDEntityResolver  -> located [<a href="http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd</a>] in classpath

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> hibernate.connection.url=jdbc:mysql://localhost:3306/agendaaps

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> hibernate.connection.driver_class=com.mysql.jdbc.Driver

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> hibernate.connection.username=root

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> hibernate.connection.password=1234

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> dialect=org.hibernate.dialect.MySQLDialect

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> show_sql=false

2007-04-12 14:35:44,812 DEBUG hibernate.cfg.Configuration  -> null<-org.dom4j.tree.DefaultAttribute@9ced8e [Attribute: name resource value Amigo.hbm.xml]

2007-04-12 14:35:44,812 INFO  hibernate.cfg.Configuration  -> Reading mappings from resource : Amigo.hbm.xml

2007-04-12 14:35:44,812 DEBUG hibernate.util.DTDEntityResolver  -> trying to resolve system-id [<a href="http://hibernate.sourceforge.net/hibernate-mapping.dtd">http://hibernate.sourceforge.net/hibernate-mapping.dtd</a>]

2007-04-12 14:35:44,812 DEBUG hibernate.util.DTDEntityResolver  -> recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/

2007-04-12 14:35:44,812 DEBUG hibernate.util.DTDEntityResolver  -> unable to locate [<a href="http://hibernate.sourceforge.net/hibernate-mapping.dtd">http://hibernate.sourceforge.net/hibernate-mapping.dtd</a>] on classpath

org.hibernate.InvalidMappingException: Could not parse mapping document from resource Amigo.hbm.xml

at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)

at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)

at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)

at AmigoDAO.(AmigoDAO.java:18)

at TesteAmigo.main(TesteAmigo.java:14)

Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)

at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)

 7 more

Caused by: org.dom4j.DocumentException: <a href="http://hibernate.sourceforge.net">hibernate.sourceforge.net</a> Nested exception: <a href="http://hibernate.sourceforge.net">hibernate.sourceforge.net</a>

at org.dom4j.io.SAXReader.read(SAXReader.java:484)

at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)

 8 more

2 Respostas

T

ué? e dai???

dlrodrigues

Cara nao sei qual tua duvida certo, mas pelo q notei, de inicio poderia ter 2 possibilidades:

  1. o teu mapeamento de DB pode ta certo pra um mas errado pra outro;

ou

  1. como na tua casa funciona, e na facul nao, pode ser que a porta q tu ta acessando na facul, pode ficar bloqueada pelo proxy de la, dai noa tem como acessar mesmo.

De inicio acho que eh isso, qualquer coisa chama, espero ter ajudado, flw

Criado 12 de abril de 2007
Ultima resposta 12 de abr. de 2007
Respostas 2
Participantes 3