Re: problem with remote class loading
Ritu Sabharwal <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Organization | HP |
| Message-ID | <[email protected]> |
Hello Andreas, Use this attached sfDaemon shell script to start the SF daemon in Linux. The same is available in Sourceforge also. Thanks & Regards, Ritu. Andreas Unterkircher wrote: >Unfortunately the below proposed solution also does not work - I get the >same error for the second jar. > >Andreas > >On Mon, 1 Aug 2005, Steve Loughran wrote: > > > >>Andreas Unterkircher wrote: >> >> >>>Hello, >>> >>>I'm using SmartFrog 3.06.0011rc1 under Linux. There is a problem with remote >>>class loading. I'd like to load 2 classes remotely, thus >>>setSFDynamicClassLoadingProperties looks as follows: >>> >>>export SERVER=http://grid-deployment.web.cern.ch >>>export >>>CODEBASE="$SERVER/grid-deployment/distribution/RpmBuild/ia64-sl3-Andreas/downl >>>oadConf/smartfrog/sfLCGinstall.jar >>>$SERVER/grid-deployment/distribution/RpmBuild/ia64-sl3-Andreas/downloadConf/sm >>>artfrog/commons-io-1.0.jar" >>> >>>export SFCODEBASE=-Dorg.smartfrog.codebase="$CODEBASE" >>> >>> >>> >>try this attached version, which has moved the quotes. >> >>export SFCODEBASE="-Dorg.smartfrog.codebase=$CODEBASE" >> >>Also note that the ant tasks are immune to a lot of the shell quirks, because >>they dont go via any shell at all, they just exec the command line they build >>up. that is the main way I deploy things. >> >>-steve >> >> >> > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Smartfrog-support mailing list >Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >https://lists.sourceforge.net/lists/listinfo/smartfrog-support > >
sfDaemon
(text/plain, 2 KB)
#!/bin/sh
if [ -z "$SFHOME" -o ! -d "$SFHOME" ] ; then
#echo "$0"
SFHOME=`dirname "$0"`/..
SFHOME=`cd "$SFHOME" && pwd`
export SFHOME;
echo SFHOME undefined, using $SFHOME as base directory;
fi
. "$SFHOME/bin/setSFProperties"
#if test "$SFDEFAULTSF";
#then
# export SFCMDPARAMETERS="$SFCMDPARAMETERS $SFDEFAULTSF"
#fi
#java -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess "$SFCMDPARAMETERS" org.smartfrog.SFSystem "$@"
#JVMARGS are passed as args to the java exec
#JVMARGS="$SFDEFAULTINI $SFDEFAULTSF"
JVMARGS=""
#CLASSARGS are appended to java cmd line as class args
CLASSARGS=""
#sort cmd line args into JVMARGS or CLASSARGS.
#JVMARGS are declared using -J token
#e.g. -J "-Djava.library.path=/libs -Xmx400M"
#e.g. -J -Djava.library.path=/libs -J -Xmx400M
while [ $# -ge 1 ]; do
case $1 in
-J | -j) shift
JVMARGS="$JVMARGS $1"
;;
*) CLASSARGS="$CLASSARGS $1"
;;
esac
shift
done
#if test "$SFCODEBASE"; then
# JVMARGS="$JVMARGS $SFCODEBASE"
#fi
#if test "$SFSECURITY"; then
# JVMARGS="$JVMARGS $SFSECURITY"
#fi
#CMDLINE="java $JVMARGS -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess org.smartfrog.SFSystem $CLASSARGS"
#echo $CMDLINE
#$CMDLINE
if test "$SFCODEBASE" && ! test "$SFSECURITY"; then
java $JVMARGS "$SFDEFAULTINI" "$SFDEFAULTSF" "$SFCODEBASE" -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess org.smartfrog.SFSystem $CLASSARGS
elif test "$SFSECURITY" && ! test "$SFCODEBASE"; then
java $JVMARGS "$SFDEFAULTINI" "$SFDEFAULTSF" "$SFSECUIRTY" -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess org.smartfrog.SFSystem $CLASSARGS
elif test "$SFCODEBASE" && test "$SFSECURITY"; then
java $JVMARGS "$SFDEFAULTINI" "$SFDEFAULTSF" "$SFCODEBASE" "$SFSECUIRTY" -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess org.smartfrog.SFSystem $CLASSARGS
else
java $JVMARGS "$SFDEFAULTINI" "$SFDEFAULTSF" -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess org.smartfrog.SFSystem $CLASSARGS
fi