>
>
>
> Hi Nathan,
>
> Yes, the hibernate3.jar is in the current directory.
>
> D:\liquibase-1.7.0>dir hibernate*.*
>
> Directory of D:\liquibase-1.7.0
>
> 08/07/2008 11:44 AM 5,550 hibernate.cfg.xml
> 06/02/2008 09:31 PM 2,274,768 hibernate3.jar
> 2 File(s) 2,280,318 bytes
> 0 Dir(s) 42,993,709,056 bytes free
>
>
> I tried changing / to \ also using the java -cp option.
>
> D:\liquibase-1.7.0>java -cp .\hibernate3.jar -jar liquibase-1.7.0.jar
> --classpath=.\lib\sqljdbc.jar;
> --defaultsFile=.\tirf_prod\liquibase.tirfprod.properties diffChangeLog
> -baseUrl=hibernate:hibernate.cfg.xml
>
> However, I'm still getting the following error:
>
> Migration Failed: Migration failed:
> Reason: Class org/hibernate/cfg/Configuration not found. Make sure all
> req
> uired Hibernate and JDBC libraries are in your classpath. For more
> information,
> use the --logLevel flag)
> 9/07/2008 13:57:37 liquibase.commandline.Main main
> SEVERE: Migration failed:
> Reason: Class org/hibernate/cfg/Configuration not found. Make sure all
> req
> uired Hibernate and JDBC libraries are in your classpath
> liquibase.exception.JDBCException:
> liquibase.exception.MigrationFailedException:
> Migration failed:
> Reason: Class org/hibernate/cfg/Configuration not found. Make sure all
> req
> uired Hibernate and JDBC libraries are in your classpath
> at
> liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLi
> neUtils.java:94)
> at
> liquibase.commandline.Main.createDatabaseFromCommandParams(Main.java:
> 735)
> at liquibase.commandline.Main.doMigration(Main.java:568)
> at liquibase.commandline.Main.main(Main.java:89)
> Caused by: liquibase.exception.MigrationFailedException: Migration failed:
> Reason: Class org/hibernate/cfg/Configuration not found. Make sure all
> req
> uired Hibernate and JDBC libraries are in your classpath
> at
> liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLi
> neUtils.java:54)
> ... 3 more
>
> Thanks.
>
>
>
> Voxland, Nathan wrote:
>
>> It seems like it should work. You could try using \ as directory
>> separators on windows. The hibernate3.jar is actually in the current
>> directory, I assume.
>>
>> You could try moving the hibernate3.jar to a -cp arguement on the java
>> command (java -cp ./hibernate3.jar -jar liquibase.jar .....)
>>
>> Let me know if you still have troubles
>>
>> Nathan
>>
>> ________________________________
>>
>> From:
liquibase-user-bounces@... on behalf of qwerty3
>> Sent: Tue 7/8/2008 9:32 PM
>> To:
liquibase-user@...
>> Subject: [Liquibase-user] Class org/hibernate/cfg/Configuration not found
>>
>>
>>
>>
>> I'm trying to get liquibase to do a comparsion of my hibernate mapping
>> file
>> with my database. However, I am getting an error saying that the migration
>> failed since the following hibernate class org/hibernate/cfg/Configuration
>> not found. The hibernate3.jar is in the classpath. Can you offer any other
>> suggestions?
>>
>> Thanks.
>>
>> D:\liquibase-1.7.0>java -jar liquibase-1.7.0.jar
>> --classpath=./hibernate3.jar;./
>> lib/sqljdbc.jar --defaultsFile=./tirf_prod/liquibase.tirfprod.properties
>> diffCha
>> ngeLog --baseUrl=hibernate:HIBERNATE.CFG.XML
>>
>> Migration Failed: Migration failed:
>> Reason: Class org/hibernate/cfg/Configuration not found. Make sure
>> all
>> req
>> uired Hibernate and JDBC libraries are in your classpath. For more
>> information,
>> use the --logLevel flag)
>> 9/07/2008 12:18:10 liquibase.commandline.Main main
>> SEVERE: Migration failed:
>> Reason: Class org/hibernate/cfg/Configuration not found. Make sure
>> all
>> req
>> uired Hibernate and JDBC libraries are in your classpath
>> liquibase.exception.JDBCException:
>> liquibase.exception.MigrationFailedException:
>> Migration failed:
>> Reason: Class org/hibernate/cfg/Configuration not found. Make sure
>> all
>> req
>> uired Hibernate and JDBC libraries are in your classpath
>> at
>> liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLi
>> neUtils.java:94)
>> at
>> liquibase.commandline.Main.createDatabaseFromCommandParams(Main.java:
>> 735)
>> at liquibase.commandline.Main.doMigration(Main.java:568)
>> at liquibase.commandline.Main.main(Main.java:89)
>> Caused by: liquibase.exception.MigrationFailedException: Migration failed:
>> Reason: Class org/hibernate/cfg/Configuration not found. Make sure
>> all
>> req
>> uired Hibernate and JDBC libraries are in your classpath
>> at
>> liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLi
>> neUtils.java:54)
>> ... 3 more
>>
>> D:\liquibase-1.7.0>
>> --
>> View this message in context:
>>
http://www.nabble.com/Class-org-hibernate-cfg-Configuration-not-found-tp18353212p18353212.html>> Sent from the LiquiBase - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>> Studies have shown that voting for your favorite open source project,
>> along with a healthy diet, reduces your potential for chronic lameness
>> and boredom. Vote Now at
http://www.sourceforge.net/community/cca08>> _______________________________________________
>> Liquibase-user mailing list
>>
Liquibase-user@...
>>
https://lists.sourceforge.net/lists/listinfo/liquibase-user>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
>> Studies have shown that voting for your favorite open source project,
>> along with a healthy diet, reduces your potential for chronic lameness
>> and boredom. Vote Now at
http://www.sourceforge.net/community/cca08>> _______________________________________________
>> Liquibase-user mailing list
>>
Liquibase-user@...
>>
https://lists.sourceforge.net/lists/listinfo/liquibase-user>>
>>
>>
>
> --
> View this message in context:
http://www.nabble.com/Class-org-hibernate-cfg-Configuration-not-found-tp18353212p18354056.html> Sent from the LiquiBase - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at
http://www.sourceforge.net/community/cca08> _______________________________________________
> Liquibase-user mailing list
>
Liquibase-user@...
>
https://lists.sourceforge.net/lists/listinfo/liquibase-user>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at
http://www.sourceforge.net/community/cca08> ------------------------------------------------------------------------
>
> _______________________________________________
> Liquibase-user mailing list
>
Liquibase-user@...
>
https://lists.sourceforge.net/lists/listinfo/liquibase-user>
and boredom. Vote Now at