Coder Social home page Coder Social logo

Comments (16)

klausszilvas avatar klausszilvas commented on August 17, 2024 7

Have had the same Problem after working on the project for one year. Deleting the build/.dependencies file is the solution.

from grails-docker.

puwanatfx avatar puwanatfx commented on August 17, 2024 4

https://www.malcontentboffin.com/2016/12/Grails-Error-Error-occurred-running-Grails-CLI-No-profile-found-for-name-web-.html

Sometimes after upgrading the version of Intelli-J that I'm using for development, when I try to run the command-line grails program, I receive the following error message:

Error occurred running Grails CLI: No profile found for name [web].

After searching around the web, I found that this was due to a problem with the build/.dependencies file located within your Grails project root. If you delete or rename this file, then run grails again, the dependencies will be corrected and you can run your app.

from grails-docker.

slackboxster avatar slackboxster commented on August 17, 2024 2

Hey, @ortimanu, I just had the same issue trying to run this image locally with a grails application. It runs fine if I check out a clean instance of the repo for my grails app, but subsequent runs cause the issue. I fixed the issue by doing an rm -rf on the build directory in my grails repository.
I'm running the following command:
docker run -v /Users/ryan/build/complete-sso-api/:/app:rw -p 8080:8080 --name grails mozart/grails:3.1.0.RC2 run-app

from grails-docker.

erichmx avatar erichmx commented on August 17, 2024 2

@c256985 it is the default error you get when you run grails run-app in an empty (or non grails) folder.

Try sudo rm -R .gradle and sudo rm -R build

from grails-docker.

erichmx avatar erichmx commented on August 17, 2024 1

To improve the situation you can set the GRADLE_USER_HOME env var, with that you don't have to rm you build directory everytime you run docker, just before the first time, actually with deleting the build/.dependencies file does the trick

VOLUME ["/gradle"]
ENV GRADLE_USER_HOME /gradle

from grails-docker.

acrive82 avatar acrive82 commented on August 17, 2024 1

This is problem depends from this grails/grails-core#10877. If you try the workaround in build.gradle, grails starts.

This is the workaround:

String.metaClass.uncapitalize = {
    if (delegate.length() <= 1) return delegate.toLowerCase()
    return delegate[0].toLowerCase() + delegate[1..-1]
}

from grails-docker.

mortizbey avatar mortizbey commented on August 17, 2024

Hi @edwardotis ! Will check this ASAP and let you know! Thanks!

from grails-docker.

edwardotis avatar edwardotis commented on August 17, 2024

Here you go:
http://stackoverflow.com/a/36512629/258896

from grails-docker.

mortizbey avatar mortizbey commented on August 17, 2024

@edwardotis please can you send us the full command you are using to run this image?

from grails-docker.

edwardotis avatar edwardotis commented on August 17, 2024

It's really a grails 3.1.x issue. It's more different than 3.0 than I had realized. Especially regarding the profiles. Your image is fine for 3.0. But I believe a separate image has to be made to support 3.1.

from grails-docker.

mortizbey avatar mortizbey commented on August 17, 2024

It works for me with 3.1.x, that's why I am asking for the command so I can see if there is any problems with it.

from grails-docker.

mortizbey avatar mortizbey commented on August 17, 2024

Hi @edwardotis may I close this issue? Does it need any more work or clarification?

from grails-docker.

Pereitor avatar Pereitor commented on August 17, 2024

Just had the same problem. Moved from a Linux-based machine with Grails 3.2.1 to a Grails 3.2.2 Windows 7 x64.

from grails-docker.

c256985 avatar c256985 commented on August 17, 2024

I've tried cleaning, and re-running but the problem still occurs.

The stacktrace points to GrailsCli:519.

What I don't understand is where it got the idea that I'm running a web profile. I'm actually running a rest-api profile. So this should never happen.

from grails-docker.

c256985 avatar c256985 commented on August 17, 2024

@erichmx I moved these directories, but had the same problem.

from grails-docker.

lalitvchau avatar lalitvchau commented on August 17, 2024

This error to due to maven was installed in you system..

follow the below steps

  1. delete the c:\Users.m2 or related directory in windows (Not sure about Unix or Mac but you can find the local cache of maven. Delete .m2 directory)
  2. delete maven related environment variable.
  3. delete ./gradlew
  4. delete environment variable related to groovy also

try to above step.. it will work fine

from grails-docker.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.