[seam-dev] seam-gen

Info info at zuonics.com
Fri Aug 28 19:34:51 EDT 2009


Hi

I am using Dan Allens book ( Seam in Action) and have been following the 
instructions to get seam-gen going. I have hit an error in 'seam 
generate' related to Hibernate and I am unsure of how to troubleshoot 
it. If anyone has any ideas I would appreciate it. Find below the output:


C:\Documents and Settings\paulmeehan\My 
Documents\Development\jboss-seam-2.2.0.GA>seam generate
SEAM_HOME: C:\Documents and Settings\paulmeehan\My 
Documents\Development\jboss-seam-2.2.0.GA
Using seam-gen sources from: C:\Documents and Settings\paulmeehan\My 
Documents\Development\jboss-seam-2.2.0.GA\seam-gen
Buildfile: C:\Documents and Settings\paulmeehan\My 
Documents\Development\jboss-seam-2.2.0.GA\seam-gen\build.xml

init:

init-properties:
     [echo] C:/Documents and Settings/paulmeehan/My 
Documents/Development/jboss-4.2.2.GA

validate-workspace:

validate-project:

init-generate:

generate-model:
     [echo] Reverse engineering database using JDBC driver C:Documents 
and SettingspaulmeehanMy DocumentsDevelopmentseaminactionli
ar
     [echo] project=c:/Documents and Settings/paulmeehan/My 
Documents/Development/open18
     [echo] model=com.mydomain.open18.model
[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.
[hibernate] An exception occurred while running exporter #2:hbm2java 
(Generates a set of .java files)
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] org.hibernate.HibernateException: JDBC Driver class not 
found: org.h2.Driver
[hibernate] java.lang.ClassNotFoundException: org.h2.Driver
[hibernate] A class were not found in the classpath of the Ant task.
[hibernate] Ensure that the classpath contains the classes needed for 
Hibernate and your code are in the classpath.

BUILD FAILED
C:\Documents and Settings\paulmeehan\My 
Documents\Development\jboss-seam-2.2.0.GA\seam-gen\build.xml:1564: 
org.hibernate.Hibernate
tion: JDBC Driver class not found: org.h2.Driver




thanks
Paul Meehan
-- 

========================
Zuonics Ltd

The makers of 'ZoeOS'

info at zuonics.com

http://www.zuonics.com
========================



More information about the seam-dev mailing list