script file does not exist:/groovy/shell in groovy console

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

script file does not exist:/groovy/shell in groovy console

tomaslin
So I start groovy console and type in:

@GrabResolver("https://oss.jfrog.org/artifactory/repo")
@Grab("org.ratpack-framework:ratpack-groovy:0.9.0-SNAPSHOT")
import static org.ratpackframework.groovy.RatpackScript.ratpack

ratpack {
    handlers {
        get {
            response.send "Hello World"
        }
    }
}

It tells me that the server is running. When I hit the url ( localhost:5050 ), I get

script file does not exist:/groovy/shell

Calling groovy ratpack.groovy with the same content above works.

What might be causing this?

I notice that if I open and run the ratpack.groovy file in groovyConsole, I get the same issue.


Reply | Threaded
Open this post in threaded view
|

Re: script file does not exist:/groovy/shell in groovy console

Luke Daley
Administrator
There's some dark magic going on in Ratpack script apps. Right now running in Groovy console is not supported.

Please raise an issue.