Plugins (1077)


Training and Consulting (43)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 539
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Javier-Martinez-Torres
Post subject: ERROR in METHOD INITIALIZE("configuration hibernate fil  PostPosted: Aug 10, 2006 - 05:09 AM



Joined: Aug 10, 2006
Posts: 1

There are some fails in the _BaseRootDAO.java in the method initialize when I use: _RootDAO.initialize("src/hbm/hibernate.cfg.xml");

However the program run without problems if I use:

_RootDAO.initialize();

Any ideas?

Thanks in advance.

Best Regards.

Javier
 
 View user's profile Send private message  
Reply with quote Back to top
kahwin.lee
Post subject:   PostPosted: Oct 13, 2007 - 02:01 AM



Joined: Oct 13, 2007
Posts: 2

public static void main(String[] args) {
_RootDAO .initialize();
CmgtCaseRegistrationDAO dao = new CmgtCaseRegistrationDAO();
dao.findAll();
}

found this result ...


Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at com.bean.base._BaseRootDAO.getNewConfiguration(_BaseRootDAO.java:192)
at com.bean.base._BaseRootDAO.initialize(_BaseRootDAO.java:90)
at com.bean.base._BaseRootDAO.initialize(_BaseRootDAO.java:79)
at Main.main(Main.java:20)



-.-" newbie as well, anyone can state out whats my problem ?? Embarassed
 
 View user's profile Send private message  
Reply with quote Back to top
kahwin.lee
Post subject: NEWBIE ON HIBERNATE  PostPosted: Oct 14, 2007 - 11:21 PM



Joined: Oct 13, 2007
Posts: 2

_RootDAO.initialize();
com.bean.base.iface.CmgtCaseRegistrationDAO dao = CmgtCaseRegistrationDAO.getInstance();
dao.findAll();

and the result as below :

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.hibernate.MappingException: could not instantiate id generator
at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:9Cool
at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:192)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at com.bean.base._BaseRootDAO.initialize(_BaseRootDAO.java:101)
at com.bean.base._BaseRootDAO.initialize(_BaseRootDAO.java:8Cool
at com.bean.base._BaseRootDAO.initialize(_BaseRootDAO.java:79)
at Main.main(Main.java:19)
Caused by: org.hibernate.MappingException: Dialect does not support sequences
at org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:596)
at org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:65)
at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:94)
... 7 more
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits