Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-782

grouper-ws build script does not copy grouper/lib/custom

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.1.1
    • 2.1.0
    • WS
    • None

    Description

      Hello,
      I notice an error when doing some tests with Grouper's WebService. This was in Tomcat's catalina.out when Grouper is starting when I accessed the WebService status page :

      Grouper error: Cant process property hooks.group.class in resource: grouper.properties, the current value is 'ca.umontreal.dgtic.grouper.hooks.GroupUniqueExtensionHook', which should be of type: edu.internet2.middleware.grouper.hooks.GroupHooks, java.lang.RuntimeException: Problem loading class: ca.umontreal.dgtic.grouper.hooks.GroupUniqueExtensionHook

      We added a Group Hook in the Grouper API in Grouper's .../api/lib/custom (groupUniqueExtension.jar) and included it in grouper.properties :
      hooks.group.class=ca.umontreal.dgtic.grouper.hooks.GroupUniqueExtensionHook

      After rebuilding the web service (using ant dist or ant quick) I did a search in the web service's dist folder and the groupUniqueExtension.jar file wasn't found. I figured this was the problem since the WS tried to load a class that doesn't exist. I tried to copy it in the WebService's lib folder (WebService/build/dist/grouper-ws/WEB-INF/lib/) and the exception is gone.

      Building the UI doesn't have that problem, since the whole lib/custom folder (containing the Hook jar file) is copied and the hook is working properly.

      My question :
      Should the jar be copied automatically in the WS's lib folder ? As far as a I know the whole lib/custom folder isn't copied in the web service.
      or
      Should I copy it manually ? It doesn't sound practical but my test showed that it worked
      or
      Should I edit grouper.property to remove the hook in the WebServices ? I don't think so since we wouldn't want WS transaction to create groups with the same extension.

      Thank you all

      Sébastien Gagné, | Analyste en informatique

      Université de Montréal,
      Pavillon Roger-Gaudry, local X-100-11

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: