Hello,
I am unable to use the hbm2ddl Tool to generate my DDL. The error
Code:
Unable to load class declared as <mapping class="de.oc.shipment.entities.GuineaPig"/> in the configuration:
leads me to check my classpath in order to find the indicated class in compilation directory. Everything seems to be configured as it should be.
What can I do to solve this issue?
Oliver-Arne
Hibernate version: Hibernate-Core 3.1 beta 1, Hibernate-Annotations 3.1 beta 4, Hibernate-Tools 3.1 alpha 5
Full stack trace of any exception that occurs:Code:
[hibernatetoolAnnot] Executing Hibernate Tool with a Hibernate Annotation/EJB3 Configuration
[hibernatetoolAnnot] 1. task: hbm2ddl (Generates database schema)
[hibernatetoolAnnot] 13:49:18,237 INFO Environment:464 - Hibernate 3.1 beta 1
[hibernatetoolAnnot] 13:49:18,247 INFO Environment:482 - loaded properties from resource hibernate.properties: {hibernate.connection.username=cargo, hibernate.connection.password=****, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=org.hibernate.dialect.Oracle9Dialect, hibernate.connection.url=jdbc:oracle:thin:@laphh09:1521:ORCL, hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver}
[hibernatetoolAnnot] 13:49:18,257 INFO Environment:510 - using CGLIB reflection optimizer
[hibernatetoolAnnot] 13:49:18,267 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
[hibernatetoolAnnot] 13:49:18,408 INFO Configuration:1182 - configuring from file: hibernate.cfg.xml
[hibernatetoolAnnot] 13:49:18,498 DEBUG DTDEntityResolver:42 - trying to locate http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath under org/hibernate/
[hibernatetoolAnnot] 13:49:18,498 DEBUG DTDEntityResolver:53 - found http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath
[hibernatetoolAnnot] 13:49:18,598 DEBUG Configuration:1100 - show_sql=true
[hibernatetoolAnnot] 13:49:18,608 DEBUG Configuration:1100 - hibernate.format_sql=true
[hibernatetoolAnnot] 13:49:18,608 DEBUG Configuration:1100 - hibernate.max_fetch_depth=1
[hibernatetoolAnnot] 13:49:18,608 DEBUG Configuration:1100 - hibernate.default_batch_fetch_size=8
[hibernatetoolAnnot] 13:49:18,608 DEBUG Configuration:1100 - hibernate.default_schema=CARGO
[hibernatetoolAnnot] 13:49:18,618 DEBUG Configuration:1100 - hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
[hibernatetoolAnnot] 13:49:18,618 DEBUG Configuration:1100 - hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
[hibernatetoolAnnot] 13:49:18,618 DEBUG Configuration:1100 - hibernate.connection.username=cargo
[hibernatetoolAnnot] 13:49:18,628 DEBUG Configuration:1100 - hibernate.connection.password=cargo
[hibernatetoolAnnot] 13:49:18,628 DEBUG Configuration:1100 - hibernate.connection.url=jdbc:oracle:thin:@laphh09:1521:ORCL
[hibernatetoolAnnot] 13:49:18,628 DEBUG AnnotationConfiguration:319 - null<-org.dom4j.tree.DefaultAttribute@513d61 [Attribute: name class value "de.oc.shipment.entities.GuineaPig"]
BUILD FAILED
C:\Dokumente und Einstellungen\oah\workspace\Cargo-Shipment\build.xml:88: org.hibernate.MappingException: Unable to load class declared as <mapping class="de.oc.shipment.entities.GuineaPig"/> in the configuration:
Name and version of the database you are using:Oracle 10g R1
[/code]