Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] Missing QuotedDnResultHandler

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] Missing QuotedDnResultHandler


Chronological Thread 
  • From: Tom Zeller <>
  • To: Gagné Sébastien <>
  • Cc:
  • Subject: Re: [grouper-dev] Missing QuotedDnResultHandler
  • Date: Thu, 23 Feb 2012 11:29:13 -0600
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.180.89.71 as permitted sender) ; dkim=pass

No, you should not need to modify the classpath, since by default
lib/custom is included in the gsh.sh classpath

GROUPER_CP=${GROUPER_CP}:${GROUPER_HOME}/lib/custom/*

And if you unzip the jar you see the class, right ?

>unzip -l /app/grouper/api/lib/custom/psp-ldap-target-2.1.0-SNAPSHOT.jar

1519 02-16-12 09:33
edu/internet2/middleware/psp/ldap/QuotedDnResultHandler.class

2012/2/23 Gagné Sébastien
<>:
> Do I have to manually add the psp-ldap-target-2.1.0-SNAPSHOT.jar to the
> classpath ? Because it's already in the /app/grouper/api/lib/custom folder
> with all the other jars from the grouper.psp distribution and I never had
> to modify the classpath before to include them.
>
> Thanks
>
> -----Message d'origine-----
> De :
>
>
> [mailto:]
> De la part de Tom Zeller
> Envoyé : 22 février 2012 18:25
> À : Gagné Sébastien
> Cc :
>
> Objet : Re: [grouper-dev] Missing QuotedDnResultHandler
>
> Actually, this is my responsibility.
>
> The psp-example-grouper-to-* configuration examples supply ldap.properties
> with a custom search result handler supporting the provisioning of quoted
> DNs :
>
> # The QuotedDnResultHandler removes quotes from DNs of the form
> "CN=quoted/name",DC=edu.
> # The FqdnSearchResultHandler makes sure that all ldap dns are fully
> qualified.
> edu.vt.middleware.ldap.searchResultHandlers=edu.internet2.middleware.psp.ldap.QuotedDnResultHandler,edu.vt.middleware.ldap.handler.FqdnSearchResultHandler
>
> The search result handler class
>
>  edu.internet2.middleware.psp.ldap.QuotedDnResultHandler
>
> exists in the psp-ldap-target project and jar.
>
> This search result handler may not be necessary in your environment, so you
> may simply comment in out, which is my recommendation (on the real-time
> provisioning wiki page) when using the example ldap.properties in the
> grouper UI.
>
> Otherwise, just make sure psp-ldap-target-<version>.jar is in your
> classpath, probably grouper/lib/custom. This jar is available from the
> grouper.psp-<version> distribution from the release URL, and is installed
> by default by the grouper installer.
>
> I don't know, maybe I should comment out the QuotedDnResultHandler by
> default, I am not sure.
>
> TomZ
>
> 2012/2/21 Gagné Sébastien
> <>:
>> Hi,
>>
>> I installed the Grouper 2.1 from this location
>> http://www.internet2.edu/grouper/release/2.1.0/ (downloaded today, feb
>> 21st), but I'm getting an exception when starting the API.
>>
>>
>>
>> $ bin/gsh.sh
>>
>>
>>
>> Using GROUPER_HOME: /app/grouper/api
>>
>> Using GROUPER_CONF: /app/grouper/api/conf
>>
>> Using JAVA: /app/java/jdk1.6/bin/java
>>
>> using MEMORY: 64m-750m
>>
>> Couldnt startup grouper: Error initializing SourceManager
>>
>> java.lang.RuntimeException: Error initializing SourceManager
>>
>>         at
>> edu.internet2.middleware.subject.provider.SourceManager.init(SourceMan
>> ager.java:150)
>>
>>         at
>> edu.internet2.middleware.subject.provider.SourceManager.<init>(SourceM
>> anager.java:91)
>>
>>         at
>> edu.internet2.middleware.subject.provider.SourceManager.getInstance(So
>> urceManager.java:101)
>>
>>         at
>> edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperSt
>> artup.java:86)
>>
>>         at
>> edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShel
>> l.java:136)
>>
>>         at
>> edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(Grou
>> perShellWrapper.java:16)
>>
>> Caused by: java.lang.IllegalArgumentException: Could not find class
>> 'edu.internet2.middleware.psp.ldap.QuotedDnResultHandler'
>>
>>         [...]
>>
>> Caused by: java.lang.IllegalArgumentException: Could not find class
>> 'edu.internet2.middleware.psp.ldap.QuotedDnResultHandler'
>>
>>         [...]
>>
>> Caused by: java.lang.ClassNotFoundException:
>> edu.internet2.middleware.psp.ldap.QuotedDnResultHandler
>>
>>         [...]
>>
>> Exception in thread "main" java.lang.RuntimeException: Error
>> initializing SourceManager
>>
>>         [...]
>>
>> Caused by: java.lang.IllegalArgumentException: Could not find class
>> 'edu.internet2.middleware.psp.ldap.QuotedDnResultHandler'
>>
>>         [...]
>>
>> Caused by: java.lang.IllegalArgumentException: Could not find class
>> 'edu.internet2.middleware.psp.ldap.QuotedDnResultHandler'
>>
>>         [...]
>>
>> Caused by: java.lang.ClassNotFoundException:
>> edu.internet2.middleware.psp.ldap.QuotedDnResultHandler
>>
>>         [...]
>>
>>
>>
>> I checked in the source configuration and found the reference to the
>> class in ldap.properties :
>>
>> edu.vt.middleware.ldap.searchResultHandlers=edu.internet2.middleware.p
>> sp.ldap.QuotedDnResultHandler,edu.vt.middleware.ldap.handler.FqdnSearc
>> hResultHandler
>>
>>
>>
>> If I remove "edu.internet2.middleware.psp.ldap.QuotedDnResultHandler"
>> part the error disappears. I'm guessing the class wasn't updated in the
>> release.
>>
>>
>>
>> Thanks for you help
>>
>>
>>
>>
>>
>> Sébastien Gagné,     | Analyste en informatique
>>
>> 514-343-6111 x33844  | Université de Montréal,
>>
>>                      | Pavillon Roger-Gaudry, local X-100-11
>>
>>



Archive powered by MHonArc 2.6.16.

Top of Page