Hi,

When I do a diffChangeLog with a baseUrl of hibernate:hibernate.cfg.xml, it
only works if I add the hibernate jars and config file to the jvm classpath,
not if I specify them using the classpath property in liquibase.properties,
nor the --classpath option, nor via a classpathref in ant (although,
specifying them in the $CLASSPATH variable means that I can run the task
through ant).

It doesn't matter whether I set includeSystemClasspath to true or false;
either way it works if I give the full classpath to the jvm and fails if I
don't.  Besides avoiding parse errors, the value I set for the classpath
variable in liquibase.properties doesn't seem to have any effect.  That is,
I can set a null classpath in the liquibase classpath variable, set
includeSystemClasspath to false, and it will still work if I supply the
proper classpath to the JVM.

Am I doing something wrong here?  Any clues?

Thanks so much,

Dan Keshet

--------
Versions:

liquibase: 1.8.1
java: tried 1.5, 1.6, and Iced Tea.
---------
Stack trace:

Migration Failed: Migration failed:
     Reason: Class org/hibernate/cfg/Configuration not found.  Make sure all
required Hibernate and JDBC libraries are in your classpath.  For more
information, use the --logLevel flag)
Dec 23, 2008 6:02:24 PM liquibase.commandline.Main main
SEVERE: Migration failed:
     Reason: Class org/hibernate/cfg/Configuration not found.  Make sure all
required 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
required Hibernate and JDBC libraries are in your classpath
        at
liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:94)
        at
liquibase.commandline.Main.createDatabaseFromCommandParams(Main.java:742)
        at liquibase.commandline.Main.doMigration(Main.java:575)
        at liquibase.commandline.Main.main(Main.java:90)
Caused by: liquibase.exception.MigrationFailedException: Migration failed:
     Reason: Class org/hibernate/cfg/Configuration not found.  Make sure all
required Hibernate and JDBC libraries are in your classpath
        at
liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:54)
        ... 3 more
------------------------------------------------------------------------------
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user

Reply via email to