Missing libs in 3.0.0-RC2 Build

Downloaded the 3.0.0-RC2 zip distro and tried to generate an initial changelog from an existing database.  Processes error’ed out: java.lang.ClassNotFoundException: org.yaml.snakeyaml.representer.Representer 

Checked the liquibase.jar to see if maybe you guys had included the YAML library directly but didn’t see it.  Neither the RC1 nor the RC2 bundle contain a lib directory as looked for by the liquibase.sh script.

Thanks, I’ll make sure it gets included in the .zip


Nathan

Still missing from the 3.0.0. release in Maven repo. :frowning:

What repo are you pointing at? 


I see it at http://mvnrepository.com/artifact/org.liquibase/liquibase-core and http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.liquibase%22


Nathan

Sorry, wrong thread.


The maven repo just has the liquibase jar files and lists snakeyaml as a dependency. If you are using maven or ivy, it should automatically pull down snakeyaml as well.


If you aren’t using maven or ivy, you can either download the zip distribution from liquibase.org/download which has the snakeyaml jar in the “lib” directory, or you can download snakeyaml yourself and add it to your classpath however you need.


Nathan

Calling java -jar doesn’t include the lib/snakeyaml-1.12.jar file that is needed. You’ll have to run:


Nathan

i have try .tar.gz and .zip version 3.0.5 but still same error 



[adilramdan@localhost liquibase-3.0.5-bin]$ java -jar liquibase.jar generateChangelog

DEBUG 10/4/13 3:18 PM:liquibase: null: null: Unable to load/access Apache Derby driver class to check version

DEBUG 10/4/13 3:18 PM:liquibase: null: null: Connected to root@localhost@jdbc:mysql://localhost:3306/matrial

DEBUG 10/4/13 3:18 PM:liquibase: null: null: Setting auto commit to false from true

Liquibase generateChangelog Failed: org/yaml/snakeyaml/representer/Representer

SEVERE 10/4/13 3:18 PM:liquibase: null: null: org/yaml/snakeyaml/representer/Representer

java.lang.NoClassDefFoundError: org/yaml/snakeyaml/representer/Representer

        at java.lang.Class.getDeclaredConstructors0(Native Method)

        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)

        at java.lang.Class.getConstructor0(Class.java:2793)

        at java.lang.Class.getConstructor(Class.java:1708)

        at liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocator.java:205)

        at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.java:173)

        at liquibase.serializer.ChangeLogSerializerFactory.(ChangeLogSerializerFactory.java:32)

        at liquibase.serializer.ChangeLogSerializerFactory.getInstance(ChangeLogSerializerFactory.java:23)

        at liquibase.diff.output.changelog.DiffToChangeLog.print(DiffToChangeLog.java:48)

        at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:172)

        at liquibase.integration.commandline.Main.doMigration(Main.java:783)

        at liquibase.integration.commandline.Main.main(Main.java:138)

Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.representer.Representer

        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

        … 12 more