Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Hibernate tool problem.

 
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...
 
Bartender
Posts: 10336
Hibernate Eclipse IDE 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...
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic