Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Liquibase.jar can't load own classes if it resides inside another jar.

$
0
0
OK - can you provide any more information.. Does not work for me...  Thanks for any information...  (FYI - it works fine when I run it in Eclipse - just not when bundled with one-jar.)

Maven Dependency

<groupId>org.dstovall</groupId>

<artifactId>onejar-maven-plugin</artifactId>

<version>1.4.4</version>


Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.simontuffs.onejar.Boot.run(Boot.java:340)
at com.simontuffs.onejar.Boot.main(Boot.java:166)
Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger
at liquibase.logging.LogFactory.getLogger(LogFactory.java:19)
at liquibase.logging.LogFactory.getLogger(LogFactory.java:30)
at liquibase.database.DatabaseFactory.findCorrectDatabaseImplementation(DatabaseFactory.java:71)

My one-jar expanded to show version information...

jar tf target/********-1.0.0-SNAPSHOT.one-jar.jar
META-INF/MANIFEST.MF
main/*********-1.0.0-SNAPSHOT.jar
lib/ojdbc14-10.2.0.3.jar
lib/liquibase-core-3.0.4.jar
lib/snakeyaml-1.12.jar
lib/liquibase-ext-1.0.0.1-SNAPSHOT.jar
lib/slf4j-api-1.7.2.jar
lib/jcl-over-slf4j-1.7.2.jar
lib/logback-classic-1.0.7.jar
lib/logback-core-1.0.7.jar
com/
com/simontuffs/
com/simontuffs/onejar/
.version
OneJar.class
com/simontuffs/onejar/Boot$1.class
.....


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>