I am learning to use SmartFrog. I would like to deploy an executable jar
called 
"helloworldhttp.jar" to a remote host called "falcon" and run it. I get the
following
error on deployment with ant:

deploy:
[sf:deploy] SmartFrog 3.16.006 (2009-01-26 07:36:35 GMT)
[sf:deploy] (C) Copyright 1998-2009 Hewlett-Packard Development Company, LP
[sf:deploy] 2010/04/08 16:24:03:031 BST [WARN ][main] SFCORE_LOG - SmartFrog
security is NOT active
[sf:deploy] 2010/04/08 16:24:03:031 BST [WARN ][main] SFCORE_LOG - Possible
problem with classpath: 
[sf:deploy]   2 occurrences for sfServices
[sf:deploy]     C:\Documents and
Settings\frank\.m2\repository\org\smartfrog\sfServices\3.16.006\sfServices-3
.16.006.jar
[sf:deploy]     C:\Documents and
Settings\frank\.m2\repository\org\smartfrog\sfServices\3.16.006\sfServices-3
.16.006.jar
[sf:deploy]  - FAILED when trying DEPLOY of 'helloworldhttp',
[deploy/targets/falcon.sf],  host:localhost
[sf:deploy]     Result:
[sf:deploy]       * Exception: 'SmartFrogLifecycleException:: [sfStart] HOST
jensen.sidonis.internal:rootProcess:helloworldhttp:upload
[sf:deploy]         cause: SmartFrogResolutionException:: Unresolved
Reference: LAZY PARENT:PARENT:action:passwordProvider
[sf:deploy]            source: HOST
jensen.sidonis.internal:rootProcess:helloworldhttp
[sf:deploy]            path(182) 
[sf:deploy]            Reference not found
[sf:deploy]         SmartFrog 3.16.006 (2009-01-26 07:36:35 GMT)
[sf:deploy]         data: Failed object class:
org.smartfrog.services.ssh.ScpBulkUploadImpl
[sf:deploy]         primSFCompleteName: HOST
jensen.sidonis.internal:rootProcess:helloworldhttp
[sf:deploy]         primContext: included
[sf:deploy]         reference: HOST
jensen.sidonis.internal:rootProcess:helloworldhttp
[sf:deploy]         primContext: included'

I think this is probably to do with the way I have specified the
passwordProvider in the
"upload" section of "MySystem". Please could somebody tell me where I went
wrong? I don't really
understand what to put in the passwordProvider line. I put something similar
to what can be
found in the SSHComponents document.

Here are my input files.

// targets/falcon.sf

#include "/deploy/helloworldhttp.sf"
#include "/org/smartfrog/services/ssh/components.sf"
#include "/org/smartfrog/services/passwords/components.sf"


helloworldhttpPath "/sf/helloworldhttp/";

PasswordProvider extends InlinePassword {
        password "password";
}

MySystem extends Compound {
        //sfProcessHost "localhost";
                
        upload extends ScpBulkUpload {
                remoteDir helloworldhttpPath;
                dir "target/";
                passwordProvider LAZY PARENT:PARENT:action:passwordProvider;
                pattern "helloworldhttp.jar";
                host "falcon";
                username "root";
                sfShouldTerminate true;
        }

        falconHelloworld extends helloworldhttp {
                sfProcessHost "falcon";
                jardir helloworldhttpPath;
        }
        
}

sfConfig extends MySystem {

}

// helloworldhttp.sf

#include "/org/smartfrog/functions.sf"
#include "/org/smartfrog/sfcore/workflow/components.sf"
#include "org/smartfrog/services/os/java/components.sf"

// helloworldhttp is an executable jar file, so we run it with java
helloworldhttp extends Java {
        jardir TBD;
        jar (jardir ++ "helloworldhttp.jar");;
}

Thanks,

Frank Wilson


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users

Reply via email to