tomcat8 - Flyway unable to scan for sql migrations in class path after upgrade to tomcat 8 -


our application have been working fine flyway 3.0 , tomcat 7. using sql based migrations in class path.

recently trying upgrade our application use tomcat 8. after doing so, flyway unable find sql migrations in our class path. have been using war deployment unpackwar = false. information only, using unpackwar = true, problem no longer reproducible.

i have tried debug flyway code base , have been trying figure out differences prior upgrading tomcat 8 , after upgrading tomcat 8. 1 key difference found inside classpathscanner.getlocationurlsforpath(), used find location of war file prefixed file: protocol, tomcat 8, finding location of war file prefixed jar: protocol. doesn't seem problematic. however, leads code inside jarfileclasspathlocationscanner.findresourcenamesfromjarfile() being executed. inside method, jar elements entry names come out "web-inf/classes/our_path/schema/v1.0.sql", etc location specified our_path/schema/v1.0.sql. since there's condition,

if(entryname.startswith(location)) {

our schema migrations not being picked up.

any thoughts? sound bug?

this should work out of box. please file issue in issue tracker steps reproduce (or better small repro repo).


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -