JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-5140

external groovy class cannot be called from groovy component script

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major 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:
    Hide

    <service name = "FooService">
    <inbound>
    <vm:inbound-endpoint path = "Foo" synchronous = "true" />
    </inbound>
    <scripting:component>
    <scripting:script engine = "groovy" file = "Foo.groovy" />
    </scripting:component>
    </service>

    Show
    <service name = "FooService"> <inbound> <vm:inbound-endpoint path = "Foo" synchronous = "true" /> </inbound> <scripting:component> <scripting:script engine = "groovy" file = "Foo.groovy" /> </scripting:component> </service>
  • 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.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Mike Schilling added a comment - 18/Oct/10 02:14 PM

MULE doesn't currently support external Groovy scripts. This is a valid enhancement request.

Show
Mike Schilling added a comment - 18/Oct/10 02:14 PM MULE doesn't currently support external Groovy scripts. This is a valid enhancement request.

People

  • Assignee:
    Unassigned
    Reporter:
    A. Steven Anderson
Vote (2)
Watch (1)

Dates

  • Created:
    13/Oct/10 08:14 AM
    Updated:
    18/Oct/10 02:14 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.