5 Replies Latest reply on Jun 6, 2007 2:03 PM by gavin.king

    java.lang.NoClassDefFoundError: net/sf/ehcache/CacheExceptio


      I'm using the CVS version of seam currently at 1.3.0.ALPHA, and I'm using seam-gen to reverse engineers cruds from the database. I'm sure that the setup is proper since I'm pretty familiar with it and generated a number of applications since version 1.0

      Now the thing is that I'm getting the following exception when I'm reversing the code from the database:

      $ ./seam.bat generate-entities
      Buildfile: d:\workspace\src\java\jboss\jboss-seam-1.3.0.ALPHA\seam-gen\build.xml
      [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
      [hibernate] 1. task: hbm2java (Generates a set of .java files)
      [hibernate] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
      [hibernate] log4j:WARN Please initialize the log4j system properly.
      java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
      Total time: 2 seconds
      fady.matar@grouch /cygdrive/d/workspace/src/java/jboss/jboss-seam-1.3.0.ALPHA

      Any hint on how to solve this? Is it the ehcache.jar that's missing?