Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings when application is packaged as a Spring Boot executable war #1512

Closed
ptahchiev opened this issue Jan 27, 2017 · 0 comments
Closed

Warnings when application is packaged as a Spring Boot executable war #1512

ptahchiev opened this issue Jan 27, 2017 · 0 comments
Labels
Milestone

Comments

@ptahchiev
Copy link

@ptahchiev ptahchiev commented Jan 27, 2017

What version of Flyway are you using?

Flyway version 4.0.3

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)

Java API

What database are you using (type & version)?

MySQL

What operating system are you using?

Windows 8

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)

I have a spring-boot application which I need to start with java -jar mywar.war because when I try to start it with mvn spring-boot:run the windows tells me that File-path is too long.

What did you expect to see?

I was expecting to work nice and smooth.

What did you see instead?

However I see millions of the folling warnings:

2017-01-27 15:00:14,160 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-2] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,176 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-2] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,191 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-2] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,207 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-2] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,425 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,445 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,461 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,479 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:14,504 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:18,362 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:18,380 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:18,396 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:18,411 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)
2017-01-27 15:00:18,427 org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner [defaultTaskScheduler-3] WARN : Unable to scan location: C:\workspace\nemesis-archetype\file:\C:\wo
rkspace\nemesis-archetype\target\samplestore.war*\WEB-INF\classes\db\migration\mysql (unsupported protocol: war)

The application works fine, however the warnings are really a lot and my command line is bloated and I can't find whatever is relevant.

@axelfontaine axelfontaine added this to the Flyway 4.1 milestone Jan 27, 2017
@axelfontaine axelfontaine changed the title Millions of warnings under windows when application is started with java -jar. Warnings when application is packaged as a Spring Boot executable war Jan 31, 2017
axelfontaine added a commit to flyway/flywaydb.org that referenced this issue Jan 31, 2017
pradheeps pushed a commit to pradheeps/flyway that referenced this issue Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.