grouper-dev - [grouper-dev] Grouper .../lib/custom libraries not copied in Web Services ?
Subject: Grouper Developers Forum
List archive
- From: Gagné Sébastien <>
- To: <>
- Cc: "Marchand Robert" <>
- Subject: [grouper-dev] Grouper .../lib/custom libraries not copied in Web Services ?
- Date: Wed, 2 May 2012 09:48:22 -0400
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 514-343-6111 x33844 | Université de Montréal, | Pavillon Roger-Gaudry, local X-100-11 |
- [grouper-dev] Grouper .../lib/custom libraries not copied in Web Services ?, Gagné Sébastien, 05/02/2012
- [grouper-dev] RE: Grouper .../lib/custom libraries not copied in Web Services ?, Chris Hyzer, 05/03/2012
- [grouper-dev] RE: Grouper .../lib/custom libraries not copied in Web Services ?, Gagné Sébastien, 05/04/2012
- [grouper-dev] RE: Grouper .../lib/custom libraries not copied in Web Services ?, Chris Hyzer, 05/03/2012
Archive powered by MHonArc 2.6.16.