remote class loading problem
Andreas Unterkircher <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
I'm facing a problem with remote class loading: first, in setSFProperties I uncomment "export SFDYNAMICCLASSLOADING_ON=ENABLED". Then I set in setSFDynamicClassLoadingProperties: export SERVER=http://ia64-lcg-dist.web.cern.ch:80 export CODEBASE="$SERVER/ia64-lcg-dist/SF/commons-io-1.0.jar" When I start "sfDaemon" this works fine. Now I want to load 2 classes: export SERVER=http://ia64-lcg-dist.web.cern.ch:80 export CODEBASE="$SERVER/ia64-lcg-dist/SF/commons-io-1.0.jar\ $SERVER/ia64-lcg-dist/SF/sfDownload.jar" sfDaemon now yields: Exception in thread "main" java.lang.NoClassDefFoundError: http://ia64-lcg-dist/web/cern/ch:80/ia64-lcg-dist/SF/sfDownload/jar Indeed, if I use "#! /bin/sh -x" within sfDaemon I get the java command the shell tries to execute: java -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess -Dorg.smartfrog.iniFile=/opt/SmartFrog.3.04.004.beta/dist/bin/default.ini '-Dorg.smartfrog.codebase=http://ia64-lcg-dist.web.cern.ch:80/ia64-lcg-dist/SF/commons-io-1.0.jar\' http://ia64-lcg-dist.web.cern.ch:80/ia64-lcg-dist/SF/sfDownload.jar -Dorg.smartfrog.sfcore.processcompound.sfDefault.sfDefault=/opt/SmartFrog.3.04.004.beta/dist/bin/default.sf org.smartfrog.SFSystem One sees the " ' " before -Dorg... and after ...commons-io-1.0.jar\ - I think this causes the execution to fail. I tried placing " and \ at several locations in the definition of CODEBASE but it never works. I never get it right expanded in the last line of sfDaemon, i.e. in line java -Dorg.smartfrog.sfcore.processcompound.sfProcessName=rootProcess $SFCMDPARAMETERS org.smartfrog.SFSystem $* Does anybody know how to define CODEBASE in order to support more than one remote class to load ? Thanks, Andreas ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php