diff --git a/doc/src/asciidoc/module_groovy.adoc b/doc/src/asciidoc/module_groovy.adoc
index f02e1f29f5..bf1de00e66 100644
--- a/doc/src/asciidoc/module_groovy.adoc
+++ b/doc/src/asciidoc/module_groovy.adoc
@@ -26,7 +26,7 @@ In jPOS 2.0.7 (and later), `QFactory.properties` maps the `groovy` keyword to
[source,xml]
----------------------------------------------------------------------------------------
-
+
----------------------------------------------------------------------------------------
or
@@ -49,4 +49,3 @@ The following variables are automatically exposed:
Although not strictly required by this particular QBean Groovy adaptor, the `jposee-groovy`
module also includes the handy `groovy-sql` dependency.
======
-
diff --git a/modules/groovy/src/main/java/org/jpos/q2/qbean/Groovy.java b/modules/groovy/src/main/java/org/jpos/q2/qbean/Groovy.java
index 9338079c6a..3cd244441c 100644
--- a/modules/groovy/src/main/java/org/jpos/q2/qbean/Groovy.java
+++ b/modules/groovy/src/main/java/org/jpos/q2/qbean/Groovy.java
@@ -31,9 +31,9 @@ public void run() {
binding.setVariable("log", getLog());
binding.setVariable("cfg", getConfiguration());
GroovyShell shell = new GroovyShell(binding);
- String script = e.getAttributeValue("script");
- if (script != null)
- shell.evaluate(new File(script));
+ String scr = e.getAttributeValue("src");
+ if (scr != null)
+ shell.evaluate(new File(scr));
else
shell.evaluate(e.getText());
} catch (Exception e) {