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: Gagné Sébastien <>
  • To: "Tom Zeller" <>
  • Cc: <>
  • Subject: RE: [grouper-dev] Missing QuotedDnResultHandler
  • Date: Thu, 23 Feb 2012 13:34:37 -0500


Yes, the class is there :
unzip psp-ldap-target-2.1.0-SNAPSHOT.jar -d temp
[...]
inflating: temp/edu/internet2/middleware/psp/ldap/QuotedDnResultHandler.class


I tried to reproduce the error and apparently everything is working fine
now... I'm not sure what changed, I uncommented the line with the
QuotedDnResultHandler and I can bulkDiff and bulkSync

I guess for the moment you can consider this solved, I'll have to re-do an
installation eventually so I'll keep an eye on that.


-----Message d'origine-----
De :


[mailto:]
De la part de Tom Zeller
Envoyé : 23 février 2012 12:29
À : Gagné Sébastien
Cc :

Objet : Re: [grouper-dev] Missing QuotedDnResultHandler

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.p
> sp.ldap.QuotedDnResultHandler,edu.vt.middleware.ldap.handler.FqdnSearc
> hResultHandler
>
> 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(SourceMa
>> n
>> ager.java:150)
>>
>>         at
>> edu.internet2.middleware.subject.provider.SourceManager.<init>(Source
>> M
>> anager.java:91)
>>
>>         at
>> edu.internet2.middleware.subject.provider.SourceManager.getInstance(S
>> o
>> urceManager.java:101)
>>
>>         at
>> edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperS
>> t
>> artup.java:86)
>>
>>         at
>> edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShe
>> l
>> l.java:136)
>>
>>         at
>> edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(Gro
>> u
>> 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.FqdnSear
>> c
>> 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