max wrote:
I am quite sure that "build/classes/hibernate/CACModelReverseEngineeringStrategy" is NOT a real *classname*, but a relative file name.
hibernate.CACModelReverseEngineeringStrategy looks more like a real classname.
Hi, again max. We have updated the line:
Quote:
<jdbcconfiguration
packagename="${hibernateGenerated.package}"
configurationfile="${hibernate-src.dir}/hibernate.cfg.xml"
revengfile="${hibernate-src.dir}/hibernate.reveng.xml"
reversestrategy="hibernate.CACModelReverseEngineeringStrategy"/>
... in our ant task.
In fact it was our first thought. But the output we got was exactly the same than the one we posted yesterday, of course the las paragraph is as follows:
Quote:
...
...
...
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.reveng.OverrideRepository addFile
[hibernate_tool] INFO: Override file: D:\WORKSPACE_CAC_ECLIPSE_05012006\model\src\hibernate\hibernate.reveng.xml
BUILD FAILED
D:\WORKSPACE_CAC_ECLIPSE_05012006\model\src\build_hibernate.xml:64: Could not create or find hibernate.CACModelReverseEn
gineeringStrategy with one argument delegate constructor
Total time: 5 seconds
Because of that we thought that hibernate was looking for the binary (.class) in spite of the source, so we decided to try pointing to the folder where we place the binaries. (and it seems we were wrong)
I'm going to "paste" the full output (updated) again for you:
Quote:
Buildfile: D:\WORKSPACE_CAC_ECLIPSE_05012006\model\src\build_hibernate.xml
compile:
[javac] Compiling 1 source file to D:\WORKSPACE_CAC_ECLIPSE_05012006\model\build\classes
prepare-mapping:
generacionHibernate:
[hibernate_tool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernate_tool] 1. task: hbm2hbmxml (Generates a set of hbm.xml files)
[hibernate_tool] 17-ene-2006 8:59:50 org.hibernate.cfg.Environment <clinit>
[hibernate_tool] INFO: Hibernate 3.1
[hibernate_tool] 17-ene-2006 8:59:50 org.hibernate.cfg.Environment <clinit>
[hibernate_tool] INFO: hibernate.properties not found
[hibernate_tool] 17-ene-2006 8:59:50 org.hibernate.cfg.Environment <clinit>
[hibernate_tool] INFO: using CGLIB reflection optimizer
[hibernate_tool] 17-ene-2006 8:59:50 org.hibernate.cfg.Environment <clinit>
[hibernate_tool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.cfg.Configuration configure
[hibernate_tool] INFO: configuring from file: hibernate.cfg.xml
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.cfg.Configuration doConfigure
[hibernate_tool] INFO: Configured SessionFactory: null
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate_tool] INFO: Using Hibernate built-in connection pool (not for production use!)
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate_tool] INFO: Hibernate connection pool size: 20
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate_tool] INFO: autocommit mode: false
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate_tool] INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@atlante:1521:proydev
[hibernate_tool] 17-ene-2006 8:59:51 org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernate_tool] INFO: connection properties: {user=us_cac, password=****}
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: RDBMS: Oracle, version: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
[hibernate_tool] With the Partitioning, OLAP and Oracle Data Mining options
[hibernate_tool] JServer Release 9.2.0.6.0 - Production
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: JDBC driver: Oracle JDBC driver, version: 9.2.0.5.0
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.dialect.Dialect <init>
[hibernate_tool] INFO: Using dialect: org.hibernate.dialect.Oracle9Dialect
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
[hibernate_tool] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLook
up
[hibernate_tool] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional se
cond-level cache is not recommended)
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Automatic flush during beforeCompletion(): disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Automatic session close at end of transaction: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: JDBC batch size: 15
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: JDBC batch updates for versioned data: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Scrollable result sets: enabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: JDBC3 getGeneratedKeys(): disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Connection release mode: auto
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Default schema: US_CAC
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Default batch fetch size: 1
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Generate SQL with comments: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Order SQL updates by primary key: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
[hibernate_tool] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
[hibernate_tool] INFO: Using ASTQueryTranslatorFactory
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Query language substitutions: {}
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Second-level cache: enabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Query cache: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory createCacheProvider
[hibernate_tool] INFO: Cache provider: org.hibernate.cache.EhCacheProvider
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Optimize cache for minimal puts: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Structured second-level cache entries: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Statistics: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.SettingsFactory buildSettings
[hibernate_tool] INFO: Default entity-mode: pojo
[hibernate_tool] 17-ene-2006 8:59:52 org.hibernate.cfg.reveng.OverrideRepository addFile
[hibernate_tool] INFO: Override file: D:\WORKSPACE_CAC_ECLIPSE_05012006\model\src\hibernate\hibernate.reveng.xml
BUILD FAILED
D:\WORKSPACE_CAC_ECLIPSE_05012006\model\src\build_hibernate.xml:64: Could not create or find hibernate.CACModelReverseEn
gineeringStrategy with one argument delegate constructor
Total time: 5 seconds
And of course the resource "CACModelReverseEngineeringStrategy.java" exists in the package "hibernate" which is placed under "src" folder from our "model" project.
Any more ideas? Is there anyone following the thread who has something to add?
Thanks in every way, max