Search code examples
grailsgrails-plugin

Grails 3.3.1 console giving 404


I have a grails application using the angular profile with the console installed in my build.gradle

console "org.grails:grails-console"

and I am running the application in development mode:

Grails application running at http://localhost:8080 in environment: development

When going to the http://localhost:8080/console and http://localhost:8080/static/console, the console doesn't show. Using the Chrome console, I see that a 404 error happens:

Request URL:http://localhost:8080/static/console
Request Method:GET
Status Code:404 
Remote Address:[::1]:8080
Referrer Policy:no-referrer-when-downgrade

I have no custom interceptors that could interfere with the console and don't use spring security or another security framework.

How can I make the Grails console work on my project?


Solution

  • To use web based console you need to add plugin:

    compile 'org.grails.plugins:grails-console:2.1.1'
    

    grails-console GitHub sources and docs

    Your dependency:

    console "org.grails:grails-console"
    

    is for Swing based console that will run after "grails console" command