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

include required jars for use of azure-AD #138

Open
davidkarlsen opened this issue Feb 18, 2024 · 0 comments
Open

include required jars for use of azure-AD #138

davidkarlsen opened this issue Feb 18, 2024 · 0 comments

Comments

@davidkarlsen
Copy link

The image doesn't support use of Azure-AD as authentication mechanism.
See https://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=sql-server-ver16 for additional dependencies.

azure-identity should be added as well.

null_resource.flyway (local-exec): qzvu7upyk1ggzjbkyumavxzrs9w_ddl-image_1 exited with code 0
null_resource.flyway (local-exec): 
null_resource.flyway (local-exec): flyway_1     | Flyway OSS Edition 10.8.1 by Redgate
null_resource.flyway (local-exec): flyway_1     |
null_resource.flyway (local-exec): flyway_1     | See release notes here: https://rd.gt/416ObMi
null_resource.flyway (local-exec): flyway_1     | Exception in thread "main" java.lang.NoClassDefFoundError: com/azure/identity/DefaultAzureCredentialBuilder
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerSecurityUtility.getDefaultAzureCredAuthToken(SQLServerSecurityUtility.java:381)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.getFedAuthToken(SQLServerConnection.java:5791)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.onFedAuthInfo(SQLServerConnection.java:5618)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.processFedAuthInfo(SQLServerConnection.java:5463)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onFedAuthInfo(tdsparser.java:311)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:131)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:42)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:6490)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:5068)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:93)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:5002)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7685)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:4048)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:3487)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:3077)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:2919)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:1787)
null_resource.flyway (local-exec): flyway_1     | 	at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1229)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.core.internal.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:258)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.core.internal.jdbc.DriverDataSource.getConnection(DriverDataSource.java:223)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:48)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:72)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.core.FlywayExecutor.execute(FlywayExecutor.java:134)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.core.Flyway.migrate(Flyway.java:147)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.commandline.Main.executeOperation(Main.java:242)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.commandline.Main.executeFlyway(Main.java:176)
null_resource.flyway (local-exec): flyway_1     | 	at org.flywaydb.commandline.Main.main(Main.java:113)
null_resource.flyway (local-exec): flyway_1     | Caused by: java.lang.ClassNotFoundException: com.azure.identity.DefaultAzureCredentialBuilder
null_resource.flyway (local-exec): flyway_1     | 	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
null_resource.flyway (local-exec): flyway_1     | 	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
null_resource.flyway (local-exec): flyway_1     | 	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
null_resource.flyway (local-exec): flyway_1     | 	... 27 more
null_resource.flyway (local-exec): qzvu7upyk1ggzjbkyumavxzrs9w_flyway_1 exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant