Mule
  1. Mule
  2. MULE-5575

Polling receivers use wrong classloader when running in Mule standalone

    Details

    • User impact:
      High
    • Similar Issues:
      MULE-599ClassLoader issues with Soap ServiceProxy
      MULE-3161wrong classloader used when generating proxy for XaTransaction.MuleXaObject
      MULE-1779Polling receivers do not restart polling when Mule is stopped then started.
      MULE-1153Unable to run a standalone distribution
      MULE-2521Notification when polling transport's message receiver is 'finished'
      MULE-6637Cannot Call TransformerFactory.newInstance(String, Classloader) in Mule Standalone 3.3.0
      MULE-6196HTTP message receiver is using the wrong endpoint
      MULE-6750Classloading problem when there are mule plugins installed
      MULE-8117StringIndexOutOfBoundsException when requester receives GET with wrong body
      MULE-424Only Transacted Jms receiver when using transactions

      Description

      I included a Mule module which uses the MessageFactory as part of throwing exceptions. However when I run into an exception I get: java.util.MissingResourceException: Can't find bundle for base name META-INF.services.org.mule.i18n.datapack-messages, locale en_US

      The reason for this is that it is looking for this resources in the classloader which doesn't include the app. If I move the jar into the lib/user section of Mule then it works as expected.

        Issue Links

          Activity

          Hide
          Dirk Olmes added a comment -

          Do you include your own MessageFactory subclass in the app? The examples work fine picking up localized messages from their class loader.

          Show
          Dirk Olmes added a comment - Do you include your own MessageFactory subclass in the app? The examples work fine picking up localized messages from their class loader.
          Hide
          Roko Kruze added a comment -
          Show
          Roko Kruze added a comment - Yes, you can take a look at the project where I got this error here: https://github.com/mulesoft/mule-module-datapack My message class is here: https://github.com/mulesoft/mule-module-datapack/blob/master/src/main/java/org/mule/module/datapack/i18n/DataPackMessages.java
          Show
          Andrew Perepelytsya added a comment - 3.x: http://fisheye.codehaus.org/changelog/mule/?cs=21985 3.1.x: http://fisheye.codehaus.org/changelog/mule/?cs=21986 3.1.2: http://fisheye.codehaus.org/changelog/mule/?cs=21987
          Hide
          Santiago Vacas added a comment -

          just to change fix version to 3.1.3

          Show
          Santiago Vacas added a comment - just to change fix version to 3.1.3

            People

            • Assignee:
              Mike Schilling
              Reporter:
              Roko Kruze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development