.debug("grabbing [{}] using class loader
[{}]",grape_string,classLoader.getClass().getName())
groovy.grape.Grape./grab/(classLoader:classLoader,[[group:group,module:module,version:version]]
*as*Map[])
grapes<< grape_string
}
*catch*(e) {
*/log/*.error("grab of [{}]
lt; grape_string
}
*catch*(e) {
*/log/*.error("grab of [{}] using class loader [{}] failed
[{}]",grape_string,classLoader.getClass().getName(),e.message)
}
}
}
*From: *Per Nyfelt
*Date: *Friday, July 11, 2025 at 11:54 AM
*To: *users@groovy.apache.org
*Subject: *[EXT] Re:
grapes << grape_string
}
catch (e) {
log.error("grab of [{}] using class loader [{}] failed
[{}]",grape_string,classLoader.getClass().getName(),e.message)
}
}
}
From: Per Nyfelt
Date: Friday, July 11, 2025 at 11:54 AM
To: users@groovy.apache
Thank you for the suggestions! I tried setting the system classloader with
-Djava.system.class.loader=org.codehaus.groovy.tools.RootLoader
and also tried
-Djava.system.class.loader=groovy.lang.GroovyClassloader
That indeed fixes the issue with "no suitable classloader available for
Grab" but u
On 08.07.25 12:51, Per Nyfelt wrote:
Hi,
I am trying to figure out a way to
use @GrabConfig(systemClassLoader=true) in a ScritpEngine (or
GroovyShell, does not matter.
The following script works without any problem using the groovy command
(.e.g `groovy sqltaskExample.groovy`):
@GrabConfi