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

it does not compile with springframework 5.0.x or up #81

Open
cliffwy opened this issue Aug 13, 2020 · 1 comment
Open

it does not compile with springframework 5.0.x or up #81

cliffwy opened this issue Aug 13, 2020 · 1 comment

Comments

@cliffwy
Copy link

cliffwy commented Aug 13, 2020

New springfrawework removed the class org.springframework.util.Log4jConfigurer. so the it failed when build the project.
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-maven-compile of goal org.grails:grails-maven-plugin:2.4.6:maven-compile failed: java.lang.ClassNotFoundEx ception: org.springframework.util.Log4jConfigurer
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.springframework.util.Log4jConfigurer
at org.grails.maven.plugin.tools.AbstractGrailsRuntime.createGrailsLauncher(AbstractGrailsRuntime.java:38)
at org.grails.maven.plugin.tools.DefaultGrailsRuntime.run(DefaultGrailsRuntime.java:17)
at org.grails.maven.plugin.AbstractGrailsMojo.runGrails(AbstractGrailsMojo.java:372)
at org.grails.maven.plugin.AbstractGrailsMojo.runGrails(AbstractGrailsMojo.java:334)
at org.grails.maven.plugin.MvnCompileMojo.execute(MvnCompileMojo.java:41)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.springframework.util.Log4jConfigurer
at org.grails.launcher.RootLoader.findClass(RootLoader.java:147)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.grails.launcher.RootLoader.loadClass(RootLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.grails.maven.plugin.tools.AbstractGrailsRuntime.addLoggingJarsToRootLoader(AbstractGrailsRuntime.java:71)
at org.grails.maven.plugin.tools.AbstractGrailsRuntime.createGrailsLauncher(AbstractGrailsRuntime.java:36)

@cliffwy cliffwy changed the title it's not compile with springframework 5.0.x or up it does not compile with springframework 5.0.x or up Aug 13, 2020
@jambus289
Copy link

jambus289 commented Jul 29, 2022

May i know what is the solution to fix the log4jconfigurer part of spring dependency upgrade in grails app

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

2 participants