-
Notifications
You must be signed in to change notification settings - Fork 115
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
Migration not working with Grails 6 on Tomcat 9 #353
Comments
I am having a very similar issue. I get the following error when I try to run the war. I get the same error if I put in an erroneous filename for updateOnStartFileName. I am completely stuck please help! Caused by: java.util.NoSuchElementException: Cannot access first() element from an empty Iterable |
When we migrated to Grails 6 we encountered and issue, as for grails 6.1.2 + they removed 'grails-shell' still it is required by DB plugin of 4.2.1. |
We've been wrestling with this same issue after upgrading several of our apps to Grails 5; the solution @Lastone17 suggested worked perfectly (thanks, Lastone17!), without the issue they ran into when running under Tomcat:
Our environment is similar to theirs, except that we have:
To assist others searching for a solution to this problem, here's our full stacktrace:
|
Steps to Reproduce
Actual Behaviour
I am aware of the issue with the plugin, so I added:
implementation ('org.grails.plugins:database-migration:4.2.1') { exclude module: 'spring-boot-cli' }
implementation 'org.liquibase:liquibase-core:4.19.0'
Also using this liquibase-core. If i run it locally in intellij everything is fine but on Tomcat i get:
liquibase.exception.ChangeLogParseException: liquibase.exception.SetupException: Non-existent directory: C:\Program%20Files\Tomcat\apache-tomcat-9.0.86\webapps\<appname>\WEB-INF\classes
Environment Information
The text was updated successfully, but these errors were encountered: