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

Liquibase-3.3.0 -- not working with JBoss vfs

$
0
0
Hi

I have been using Liquibase 2.0.2 and it has been great! Thanks for the wonderful tool.

However, after upgrade to 3.3.0, liquibase start to fail on JBoss EAP 6, when trying to load osgi jar file. I think it is because JBoss use vfs to load file and so does the classpath:

vfs:/E:/JAVA/JBOSS/EAP-6.0.0.GA/jboss-eap-6.0/standalone/deployments/My.App.version.01.war/WEB-INF/lib/liquibase-osgi-3.3.0-SNAPSHOT.jar

So when org.liquibase.util.FileUtl tries to open the jar file

File tempDir = File.createTempFile("liquibase-unzip", ".dir");

tempDir.delete();

tempDir.mkdir();


JarFile jarFile = new JarFile(zipFile);


please note the zip file is "vfs:/E:/JAVA/JBOSS/EAP-6.0.0.GA/jboss-eap-6.0/standalone/deployments/My.App.version.01.war/WEB-INF/lib/liquibase-osgi-3.3.0-SNAPSHOT.jar"



then it throws an error:


vfs:/E:/JAVA/JBOSS/EAP-6.0.0.GA/jboss-eap-6.0/standalone/deployments/My.App.version.01.war/WEB-INF/lib/liquibase-osgi-3.3.0-SNAPSHOT.jar' for classes due to an IOException: vfs:\E:\JAVA\JBOSS\EAP-6.0.0.GA\jboss-eap-6.0\standalone\deployments\My.App.version.01.war\WEB-INF\lib\liquibase-osgi-3.3.0-SNAPSHOT.jar (The filename, directory name, or volume label syntax is incorrect)


I am sure the file exist in the classpath however either Jboss or liquibase failed to load the file.


please help thanks



Viewing all articles
Browse latest Browse all 2993

Trending Articles



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