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

Not working with Grails 3.3.x #75

Open
naeemghumman opened this issue Jan 1, 2021 · 1 comment
Open

Not working with Grails 3.3.x #75

naeemghumman opened this issue Jan 1, 2021 · 1 comment

Comments

@naeemghumman
Copy link

I am trying to integrate Swagger 2 with Grails 3.3.11 (Java 1.8) but getting below exception. Any workaround will be appreciated?

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2021-01-01 17:46:24.214 ERROR --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

An attempt was made to call the method grails.web.mapping.UrlMapping.getConstraints()[Lgrails/validation/ConstrainedProperty; but it does not exist. Its class, grails.web.mapping.UrlMapping, is available from the following locations:

jar:file:/C:/Users/Naeem/.gradle/caches/modules-2/files-2.1/org.grails/grails-web-url-mappings/3.3.11/7e22818ba02ee711adfdbde9dc122b927c0c0b2f/grails-web-url-mappings-3.3.11.jar!/grails/web/mapping/UrlMapping.class

It was loaded from the following location:

file:/C:/Users/Naeem/.gradle/caches/modules-2/files-2.1/org.grails/grails-web-url-mappings/3.3.11/7e22818ba02ee711adfdbde9dc122b927c0c0b2f/grails-web-url-mappings-3.3.11.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of grails.web.mapping.UrlMapping

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':bootRun'.

Process 'command 'C:\Program Files\Java\jdk1.8.0_261\bin\java.exe'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 38s
Error |
Failed to start server (Use --stacktrace to see the full trace)

@frafranco
Copy link

I got the same error, the error is inside springfox.documentation.grails.UrlMappings , mapping.getConstraints() do not compile with with version 3.3.11 of Grails (and therefore with grails-web-url-mappings-3.3.11.jar). Any suggestion ? Thanks

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