Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate tool problem.

 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm new in hibernate and (of course, like it could be different case) I have a problem during database schema exportation (using ant schemaexport command). I'm learning from Manning's Java persistence with Hibernate, and when I perform mentioned command I got an error. I have a doubts about placing hibernate-tools.jar file. Either if put it in the Ant classpath or my work folder lib subfolder, I get an exception NoClassDefFoundError: org\slf4j\LoggerFactory, at org.hibernate.tool.hbm2dll.SchemaExport. I extracted this jar, and there is no hbm2dll folder in package structure.
The file hibernate-tools.jar I DIDN'T find on hibernate site as a separate downlaod, but I've pull it out from some sample application.
What is the problem???
Thanks...
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have also test a sample aplication "Helloworld samples' downloaded from Hibernate site, and I get the same Exception. The "schemaexport" target wont work. This is the ant target schema from book:
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have an idea? I have skimmed, I believe, entire internet and nothing I cannot move further until I resolve this issue...
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I get an exception NoClassDefFoundError: org\slf4j\LoggerFactory

This is slf4j. Is that also on your classpath?
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is the content of HibernateProject/lib directorium:
antlr-2.7.6.jar
asm.jar
asm-attrs.jar
c3p0-0.9.1.jar
cglib-2.1.3.jar
commons-collections-3.1.jar
commons-logging-1.0.4.jar
dom4j-1.6.1.jar
hibernate3.jar
hibernate-tools.jar
hsqldb.jar
slf4j-log4j12-1.5.3.jar
jta-1.1.jar
log4j-1.2.13.jar
slf4j-api-1.5.2.jar

I have replace hibernate-tools.jar with newer version, and now I get an exception org/dom4j/DocumentException...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic