ngraff
10/20/2025, 8:46 PMuser
10/20/2025, 8:46 PMuser
10/20/2025, 8:46 PMuser
10/20/2025, 8:46 PMmailMessageContentRenderer and groovyPagesTemplateEngine failing to resolve `gspTagLibraryLookup`—is a known issue when upgrading to Grails 7 if you are using plugins that are not yet compatible with Grails 7. From the knowledge sources, similar errors have been reported when plugins such as grails-web-console or formfields are not updated for Grails 7 compatibility. The root cause is often that these plugins depend on internal APIs or beans (like GSP tag libraries or codec lookups) that have changed or moved in Grails 7, resulting in bean creation failures and NoSuchFieldError or IllegalArgumentException exceptions during application startup. For example, the formfields plugin and others have triggered nearly identical stacktraces when not updated for Grails 7, especially around GSP and codec beans[Github Issue: Grails 7 support](https://github.com/apache/grails-spring-security/issues/1156). grails-mail:5.0.2 is not listed among the plugins updated for Grails 7 in the official release notes. The Grails 7.0.0-M3 and M1 announcements list many plugins that have been updated, but grails-mail is not among them, suggesting that version 5.0.2 is not Grails 7 compatible at this time[Blog: Grails 7.0.0-M3 Release Announcement](https://grails.apache.org/blog/2025-03-05-grails-7-m3.html). What you can do: - Check if a Grails 7 compatible version of grails-mail has been released. If not, you may need to wait for an update or look for a maintained fork. - Remove or comment out the grails-mail dependency to confirm that the application starts without it, verifying that the incompatibility is isolated to this plugin. - Review all other plugins for Grails 7 compatibility, as any outdated plugin can cause similar bean creation issues. Summary: The error is due to grails-mail:5.0.2 not being compatible with Grails 7. You will need to wait for an updated version of the plugin or seek alternatives. All plugins must be Grails 7 compatible to avoid these bean creation errors[Github Issue: Grails 7 support](https://github.com/apache/grails-spring-security/issues/1156). If you need to proceed urgently, consider downgrading to a supported Grails version or removing the mail functionality until a compatible plugin is available.user
10/20/2025, 8:46 PMgrails-mail:5.0.2 in Grails 7.0.0 is to consider using dependency management to override conflicting dependencies or explore alternative email solutions. According to [Grails mail plugin issue](https://github.com/apache/grails-core/issues/15059), the recommended version for Grails 7 is org.grails.plugins:grails-mail:5.0.1. However, if you need to use grails-mail:5.0.2, you can try excluding conflicting dependencies or forcing specific versions of dependencies that align with Grails 7. For example, you can use Gradle's dependencyManagement block to ensure compatibility: groovy dependencyManagement { dependencies { dependency 'javax.mail:mail:1.6.2' } } Alternatively, you could consider using a different email solution altogether, such as Spring's JavaMailSender directly, which might provide more flexibility and avoid plugin-specific issues. This approach would require additional configuration but could be a more stable solution if plugin compatibility remains problematic. If you would like to explore these options further, let me know, and I can provide more detailed guidance. Sources: - [Grails mail plugin issue](https://github.com/apache/grails-core/issues/15059)lbwexler
10/21/2025, 6:10 PMlbwexler
10/21/2025, 6:12 PMngraff
10/22/2025, 1:38 PM