• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Hibernate tool problem.

 
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 do some of my very best work in water. Like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic