Skip to content

Running Grails Wrapper results in an error #573

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

Open
matrei opened this issue May 9, 2025 · 5 comments · May be fixed by #574
Open

Running Grails Wrapper results in an error #573

matrei opened this issue May 9, 2025 · 5 comments · May be fixed by #574
Assignees

Comments

@matrei
Copy link
Contributor

matrei commented May 9, 2025

Expected Behavior

./grailsw should run without error.

Actual Behaviour

~/Downloads/wrapper-demo$ ./grailsw --stacktrace
| Resolving Dependencies. Please wait...

[Incubating] Problems report is available at: file:///home/mattias/Downloads/wrapper-demo/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

CONFIGURE SUCCESSFUL in 10s
| Error Error occurred running Grails CLI: No profile found for name [web]. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.IllegalStateException: No profile found for name [web].
        at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:519)
        at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:307)
        at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:270)
        at org.grails.cli.GrailsCli.main(GrailsCli.groovy:160)
        at grails.init.RunCommand.main(RunCommand.groovy:55)
        at grails.init.Start.main(Start.java:117)
| Error Error occurred running Grails CLI: No profile found for name [web].

Steps To Reproduce

Download and extract a 7.0.0-SNAPSHOT project from Grails Forge.
cd into the extracted project folder and execute ./grailsw --stacktrace.

Environment Information

OS: Linux
Java: 17

Example Application

No response

Version

7.0.0-SNAPSHOT

@jdaugherty
Copy link
Contributor

Did you define your grails home , clear your build cache, and ensure sdkman didn't have an older version? All three of these have caused this issue.

@matrei
Copy link
Contributor Author

matrei commented May 9, 2025

@jdaugherty No, I did not do any of these. It was my understanding that Grails Wrapper (similar to Gradle Wrapper) should not be influenced by these outside factors.

@jdaugherty
Copy link
Contributor

@jamesfredley can give more background here, but it tries to cache so thats why it is. I think we should change the wrapper to download to a local .grails folder; then it wouldn't be

@jamesfredley
Copy link
Contributor

@jdaugherty @matrei The issue here is the wrapper in forge needs to be updated. It currently has grails-wrapper.jar committed prior to the recent changes.

@jamesfredley jamesfredley transferred this issue from apache/grails-core May 9, 2025
@jamesfredley
Copy link
Contributor

#572

@jamesfredley jamesfredley linked a pull request May 9, 2025 that will close this issue
@jamesfredley jamesfredley added this to the grails:7.0.0-M4 milestone May 9, 2025
@jamesfredley jamesfredley self-assigned this May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants