[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1149) When working from pure hbm.xml the Ant Tasks for hbm2java and hbm2ddl fail complaining about not finding the class
Thomas Polliard (JIRA)
noreply at atlassian.com
Sat Oct 17 04:48:41 EDT 2009
When working from pure hbm.xml the Ant Tasks for hbm2java and hbm2ddl fail complaining about not finding the class
------------------------------------------------------------------------------------------------------------------
Key: HBX-1149
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1149
Project: Hibernate Tools
Issue Type: Bug
Components: ant
Affects Versions: 3.2.4 Beta1
Environment: HibernateTools-3.2.4.GA-R200905070146-H18
Hibernate-3.3.2GA
HSQLDB
Ant 1.6 and Ant 1.7
Reporter: Thomas Polliard
Attachments: TestCase.tar.gz
Simple Test Case is included.
This is the output from the ant build
[polliard at iron iCloud] ant pojoexport
Buildfile: build.xml
pojoexport:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
[hibernatetool] log4j:WARN Please initialize the log4j system properly.
[hibernatetool] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] Failed in building configuration when adding /Users/polliard/Workspace/iCloud/src/com/polliard/icloud/Author.hbm.xml
[hibernatetool] org.hibernate.InvalidMappingException: Could not parse mapping document from file /Users/polliard/Workspace/iCloud/src/com/polliard/icloud/Author.hbm.xml
[hibernatetool] org.hibernate.MappingException: class com.polliard.icloud.Author not found while looking for property: authorID
[hibernatetool] java.lang.ClassNotFoundException: com.polliard.icloud.Author
[hibernatetool] A class were not found in the classpath of the Ant task.
[hibernatetool] Ensure that the classpath contains the classes needed for Hibernate and your code are in the classpath.
BUILD FAILED
/Users/polliard/Workspace/iCloud/build.xml:30: Failed in building configuration when adding /Users/polliard/Workspace/iCloud/src/com/polliard/icloud/Author.hbm.xml
Total time: 0 seconds
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list