Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Running Ldappc.

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Running Ldappc.


Chronological Thread 
  • From: Tom Barton <>
  • To:
  • Subject: Re: [grouper-users] Running Ldappc.
  • Date: Mon, 01 Oct 2007 10:57:47 -0500

I guess this is one of those rough edges that need smoothing. :-)

My practice has been to use the build directory and its subdirectories. I keep copies of jars and config files there, and a shell script (below) that sits in the installation directory builds a classpath accordingly.

--

#!/bin/sh

APP_HOME=./build/ldappc

# The user's $CLASSPATH
CP=${CLASSPATH}
# Append build classes
CP=${CP}:${APP_HOME}/classes
# Append config files
CP=${CP}:${APP_HOME}/conf
# Append libs
for f in ${APP_HOME}/lib/*.jar; do CP=${CP}:${f}; done

java -classpath $(cygpath -wp ${CP}) -Xmx256m \
edu.internet2.middleware.ldappc.Ldappc \
-subject GrouperSystem \
$*

--

Note that my script contains a cygwin-specific usage '$(cygpath -wp ${CP})' that you should replace with '${CP}' if you're not using cygwin.

Tom

caleb racey wrote:
We have solved this problem by copying ldappc.xml into the classes
directory from the conf directory. We then run ldappc from that dir, it
get rid of the error about configuration files not being found but then
complains about not finding one off the apache commons classes. This
suggests that we have our classpath setup wrong or the provisioning
connector build is failing to pickup everything it needs. Has anyone
encountered this?
Caleb Racey Webteam ISS
Newcastle University.


>-----Original Message-----
>From: Sanjay Vivek
[mailto:]
>Sent: 01 October 2007 15:58
>To:

>Subject: [grouper-users] Running Ldappc.
>
>Hi everyone,
>
>I'm attempting to run the ldappc program but I get the following
errors:
>
> classes]# java edu.internet2.middleware.ldappc.Ldappc -subject
>GrouperSystem -groups
>
>Oct 1, 2007 3:42:47 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: [edu.internet2.middleware.ldappc.Ldappc] Starting the Ldappc
>Program
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: Running version: 1.0
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: Created on: 2007-01-11
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: [edu.internet2.middleware.ldappc.InputOptions] Starting Ldappc
>with the following arguments:
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: [edu.internet2.middleware.ldappc.InputOptions] -subject
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: [edu.internet2.middleware.ldappc.InputOptions] GrouperSystem
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: [edu.internet2.middleware.ldappc.InputOptions] -groups
>Oct 1, 2007 3:42:48 PM
edu.internet2.middleware.ldappc.logging.DebugLog
>info
>INFO: [edu.internet2.middleware.ldappc.LdappcProvisionControl] *****
>Starting Provisioning *****
>Exception in thread "main"
>edu.internet2.middleware.ldappc.LdappcConfigurationException: Unable
to
>locate required system resource: ldappc.xml
> at
edu.internet2.middleware.ldappc.ConfigManager.getSystemResourceURL(Conf
i
>gManager.java:729)
> at
edu.internet2.middleware.ldappc.ConfigManager.getInstance(ConfigManager
.
>java:339)
> at
edu.internet2.middleware.ldappc.LdappcGrouperProvisioner.<init>(LdappcG
r
>ouperProvisioner.java:82)
> at
edu.internet2.middleware.ldappc.LdappcProvisionControl.run(LdappcProvis
i
>onControl.java:68)
> at edu.internet2.middleware.ldappc.Ldappc.main(Ldappc.java:96)
>
>
>My ldappc.xml file is in
>/my_install_directory/ldappc_1_0/conf/ldappc.xml and I believe this is
>where it should be. Do I have to edit any other config or properties
>files? Any help would be appreciated. Cheers.
>
>
>
>Regards
>--------------
>Sanjay Vivek
>Web Team
>ISS
>University of Newcastle Upon Tyne



Archive powered by MHonArc 2.6.16.

Top of Page