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-5979

Comparator not recognised on application level classpath

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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.2.0
  • Fix Version/s: None
  • Component/s: Transport: File
  • Labels:
    None
  • Environment:

    JBoss Application server

  • User impact:
    High
  • Similar Issues:
    None

Description

Comparators packaged in a project jar and dropped in the application level classpath, are not recognised by the file inbound endpoint. Only when the comparator is packaged in it's own jar and dropped in the global classpath, is it recognised by Mule.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Ari Ruotsalainen added a comment - 15/Aug/12 05:15 AM

We have the same problem. This gets the deployment kind of ugly. Is this going to be fixed sometimes?

Show
Ari Ruotsalainen added a comment - 15/Aug/12 05:15 AM We have the same problem. This gets the deployment kind of ugly. Is this going to be fixed sometimes?
Hide
Permalink
Ari Ruotsalainen added a comment - 03/Oct/12 09:03 AM

I guess the problem is in FileMessageReceiver.getComparator()-method


Class<?> clazz = Class.forName(comparatorClassName.toString());
{code

Show
Ari Ruotsalainen added a comment - 03/Oct/12 09:03 AM I guess the problem is in FileMessageReceiver.getComparator()-method

Class<?> clazz = Class.forName(comparatorClassName.toString()); {code
Hide
Permalink
Ari Ruotsalainen added a comment - 03/Oct/12 09:06 AM

Oh crap. Jira is bugging and there is not edit option to comment.

I guess the problem is in FileMessageReceiver.getComparator()-method

Class<?> clazz = Class.forName(comparatorClassName.toString());

This uses Mule classloader. I think this could be fixed something like:
Class<?> clazz = getConnector().getMuleContext().getClass().forName(comparatorClassName.toString());
the muleContext might have the correct application classloader

Show
Ari Ruotsalainen added a comment - 03/Oct/12 09:06 AM Oh crap. Jira is bugging and there is not edit option to comment. I guess the problem is in FileMessageReceiver.getComparator()-method Class<?> clazz = Class.forName(comparatorClassName.toString()); This uses Mule classloader. I think this could be fixed something like: Class<?> clazz = getConnector().getMuleContext().getClass().forName(comparatorClassName.toString()); the muleContext might have the correct application classloader

People

  • Assignee:
    Unassigned
    Reporter:
    Jaco Koekemoer
Vote (5)
Watch (2)

Dates

  • Created:
    21/Dec/11 05:50 AM
    Updated:
    03/Oct/12 09:06 AM

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.