-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Problem in init Mix HB Ann 3.1 + HB 3.1 release, but rc2
PostPosted: Fri Dec 30, 2005 1:48 pm 
Beginner
Beginner

Joined: Fri Dec 26, 2003 3:21 pm
Posts: 23
Location: Jakarta
I got this error when I update the hibernate3.jar from hb3.1rc2 to hb3.1

I try to mix the hbm.xml with Hibernate Anonation (3.1b7)

this is my hibernate.cfg.xml
<mapping class="org.blueoxygen.cimande.components.entity.LovReligiousCode"/>
<mapping resource="org/blueoxygen/cimande/components/entity/Person.hbm.xml"/>

<mapping resource="org/blueoxygen/cimande/security/User"/>

this is my error in browser:

javax.servlet.ServletException: Servlet execution threw an exception
com.opensymphony.webwork.lifecycle.RequestLifecycleFilter.doFilter(RequestLifecycleFilter.java:67)

root cause

java.lang.ExceptionInInitializerError
org.blueoxygen.cimande.persistence.hibernate3.HibernateSessionFactoryImpl.init(HibernateSessionFactoryImpl.java:38)
com.opensymphony.xwork.interceptor.component.DefaultComponentManager.loadResource(DefaultComponentManager.java:211)
com.opensymphony.xwork.interceptor.component.DefaultComponentManager.setupAndOptionallyCreateResource(DefaultComponentManager.java:234)
com.opensymphony.xwork.interceptor.component.DefaultComponentManager.loadResource(DefaultComponentManager.java:196)

this is my error in tomcat console.

00:39:25,211 INFO Environment:479 - Hibernate 3.1
00:39:25,221 INFO Environment:509 - hibernate.properties not found
00:39:25,221 INFO Environment:525 - using CGLIB reflection optimizer
00:39:25,221 INFO Environment:555 - using JDK 1.4 java.sql.Timestamp handling
00:39:25,291 INFO Configuration:1286 - configuring from resource: /hibernate.cf
g.xml
00:39:25,301 INFO Configuration:1263 - Configuration resource: /hibernate.cfg.x
ml
00:39:25,461 INFO Configuration:468 - Reading mappings from resource: org/blueo
xygen/cimande/components/entity/Person.hbm.xml
00:39:25,461 ERROR DTDEntityResolver:51 - Don't use old DTDs, read the Hibernate
3.x Migration Guide!
00:39:25,481 ERROR HibernateSessionFactoryImpl:37 - Building SessionFactory fail
ed.
org.hibernate.MappingException: Could not read mappings from resource: org/blueo
xygen/cimande/components/entity/Person.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:484)
at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
ionConfiguration.java:364)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav

[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 3:22 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I'm afraid the answer is already in the question
Code:
00:39:25,461 ERROR DTDEntityResolver:51 - Don't use old DTDs, read the Hibernate
3.x Migration Guide!

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Found it
PostPosted: Sun Jan 01, 2006 4:09 am 
Beginner
Beginner

Joined: Fri Dec 26, 2003 3:21 pm
Posts: 23
Location: Jakarta
I got it, I forgot to change the ant build xdoclet generator to 3.0, i use 2.0

move to the unstable persistance manager now.



Frans

_________________
Frans Thamura
BlueOxygen Cimande Workspace
http://cimande.dev.java.net

Intercitra Prima Integrasi
Jakarta, Indonesia


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.