| Author |
Message |
|
|
Post subject: ERROR in METHOD INITIALIZE("configuration hibernate fil
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 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 ??  |
|
|
| |
|
|
|
 |
|
|
Post subject: NEWBIE ON HIBERNATE
Posted: 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:9
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:8
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 |
|
|
| |
|
|
|
 |
|
|
| |