I have my GW primary domain on a 64 bit SLES 10 sp2 server. I am
running a 64 bit metadirectory engine on that same server. Now I need
to add a 32 bit groupwise remote loader. I've installed a 32 bit JRE
and the java remote loader. I made changes to the dirxml_jremote script
to give full paths to everything. I remarked the Path statement since
the path already contains the location of a 64 bit JRE.
Here is the revised file:
#!/bin/sh
################################################## #############################
# Shell script for running DirXML Java Remote Loader
# Copyright (C) 2003, Novell Inc.
################################################## #############################

#PATH=/opt/novell/groupwise/remoteLoader/jre1.5.0_22/bin:$PATH
RDXML_PATH=/opt/novell/dirxml/bin
export PATH RDXML_PATH

################################################## #############################
# Check first two bytes of purported .jar file to see if valid.
# We do this because at least one release of IBM's 1.3.1 JRE on AIX
# chokes if it finds an "invalid" .jar file in the class path.
################################################## #############################
validate_jar()
{
two_bytes=`od -A n -N 2 -t c $1 | awk '/[A-Z][ \t]+[A-Z]/ {print $1
$2}'`
if [ "$two_bytes" = "PK" ]
then
jarfile=$1
else
jarfile=
fi
}

################################################## #############################
# main
################################################## #############################
if [ $# -eq 0 ]
then
echo
echo Usage:
echo " dirxml_jremote [commands] -config <config file name>"
echo
echo "See /opt/novell/dirxml/docs/readme.txt and
/opt/novell/dirxml/docs/usage.html"
echo
exit 1
else

which java >/dev/null 2>&1
if [ $? -ne 0 ]
then
echo " "Error: No java executable found.
echo " "Please modify PATH or edit this script.
exit 2
fi

jarlist=`ls /opt/novell/dirxml/lib/*.jar`

# CLASSPATH=./lib/dirxml.jar:./lib/dirxml_remote.jar
CLASSPATH=/opt/novell/dirxml/lib/dirxml.jar:/opt/novell/dirxml/lib/dirxml_remote.jar

for jarfile in $jarlist
do
validate_jar $jarfile
if [ -n "$jarfile" ]
then
CLASSPATH=$CLASSPATH:$jarfile
fi
done

echo $CLASSPATH

echo Starting java...
/opt/novell/groupwise/remoteLoader/jre1.5.0_22/bin/java -classpath
$CLASSPATH com.novell.nds.dirxml.remote.loader.RemoteLoader $*
fi


I also changed the config8000.txt file to read like this:
-cp 8002
-conn "port=8091"
-t 5
-tfm 10M
-class com.novell.gw.dirxml.driver.gw.GWdriverShim

I copied GWdriver*.jar, dirxml.jar and dirxml_remote.jar to
opt/novell/dirxml/lib. (do I need more?)

I am starting the remote loader from /opt/novell/dirxml/bin using
./dirxml_jremote -config ../doc/config8000.txt

My error is:
java.lang.NoClassDefFoundError: com/novell/xml/util/ExpandedQName
at
com.novell.nds.dirxml.remote.loader.TraceImpl.cons tructSuppressionMap(TraceImpl.java:150)
at
com.novell.nds.dirxml.remote.loader.TraceImpl.setS uppressionMap(TraceImpl.java:110)
at
com.novell.nds.dirxml.remote.loader.TraceImpl.<cli nit>(TraceImpl.java:172)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.novell.nds.dirxml.remote.loader.RemoteLoader.< init>(RemoteLoader.java:180)
at
com.novell.nds.dirxml.remote.loader.RemoteLoader$R emoteLoaderFactory.getInstance(RemoteLoader.java:1 466)
at
com.novell.nds.dirxml.remote.loader.RemoteLoader._ main(RemoteLoader.java:111)
at
com.novell.nds.dirxml.remote.loader.RemoteLoader.m ain(RemoteLoader.java:26)

Thanks.


--
Peggy Townsend
Network Engineer
NovaCoast
------------------------------------------------------------------------
ptown's Profile: http://forums.novell.com/member.php?userid=215
View this thread: http://forums.novell.com/showthread.php?t=417404