From b1c0fcde718656bd267ed97c7ff2ae2d861e054f Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Wed, 30 Mar 2005 22:37:46 +0000 Subject: [152645] dsmlgw acceptance test started to fail on 3/15/2005 Added crimson.jar and ibmpkcs.jar (for BASE64Decoder) to the classpath on Linux where IBM JRE is used. --- ldap/admin/src/scripts/template-dsml-activate.pl | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'ldap/admin/src/scripts') diff --git a/ldap/admin/src/scripts/template-dsml-activate.pl b/ldap/admin/src/scripts/template-dsml-activate.pl index 7f0d93b2..b8f32f82 100644 --- a/ldap/admin/src/scripts/template-dsml-activate.pl +++ b/ldap/admin/src/scripts/template-dsml-activate.pl @@ -193,6 +193,30 @@ EOF } if ( $file eq "jvm12.conf" ) { + if ($^O eq "linux") { + # if setting Xbootclasspath, make sure crimson.jar is in it. + $fulljvm12 = "${SERVERROOT}${PATH}${file}"; + $fulljvm12tmp = $fulljvm12 . ".tmp"; + $crimsonpath = "${SERVERROOT}/bin/https/jar/crimson.jar"; + $ibmpath = "${SERVERROOT}/bin/base/jre/lib/ibmpkcs.jar"; + open JVM, "${fulljvm12}"; + open JVMTMP, "> ${fulljvm12tmp}"; + for ($line=; $line; $line=) { + if ($line =~ /Xbootclasspath/) { + if (!($line =~ /${crimsonpath}/)) { + $line =~ s/Xbootclasspath/Xbootclasspath:${crimsonpath}/; + } + if (!($line =~ /${ibmpath}/)) { + $line =~ s/Xbootclasspath/Xbootclasspath:${ibmpath}/; + } + } + print JVMTMP $line; + } + close JVMTMP; + close JVM; + unlink("${fulljvm12}"); + rename("${fulljvm12tmp}", "${fulljvm12}"); + } open JVM, ">> ${SERVERROOT}${PATH}${file}"; select JVM; print STDERR "adding necessary entry to $file.\n"; -- cgit