Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.2.1
-
Fix Version/s: None
-
Component/s: Modules: Scripting
-
Labels:None
-
Environment:
Linux and Window XP, JDK 1.6.0_20
-
User impact:Medium
-
Configuration:
-
Similar Issues:None
Description
Basically, when I jar up my groovy class and drop it in lib/user, I get an exception, but if I embed the same class in my groovy component script it works.
Seems like a groovy class loading issue to me.
e.g. The following Foo.groovy works:
////////////////////////////////////
final def bar = new Bar()
class Bar {
public Bar() {
println "IT WORKS!"
}
}
////////////////////////////////////
However, if I take Bar above, put it in Bar.groovy, compile it, jar it, and drop it in $MULE_HOME/lib/user, then I get an error.
MULE doesn't currently support external Groovy scripts. This is a valid enhancement request.