Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1592

Can't AOP around a call to another module within a module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.3.0
    • Component/s: Module Engine
    • Labels:
      None

      Description

      In the atd module, I want to AOP around a call to a method in the dssmodule. According to the module page, I can do this:

      "Module services can be extended via AOP as well."

      I get the following error when I try to load the atd module into the webapp:

      Error while trying to start module: A proxy factory for: 'interface org.openmrs.module.dssmodule.DssService' doesn't exist

      I am using the require_modules tag:
      <require_modules>
      <require_module>org.openmrs.module.dssmodule</require_module>
      </require_modules>

      This error should be present in the currently committed versions of dssmodule and atd module. The error is somewhat intermittent. If I do the right combination of things (not sure what), the modules will work in harmony.

        Attachments

          Activity

            People

            Assignee:
            bwolfe Ben Wolfe
            Reporter:
            tmdugan Tammy Dugan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: