Hi,
How to use cmd operations around many hosts by smartfrog?

There is my code (192.168.56.1 is localhost):

#include "org/smartfrog/services/shellscript/components.sf"
#include "org/smartfrog/components.sf"
Make_Dir extends Script{
    shell LAZY ROOT:Shell;  
    startScript["mkdir c:\\dir_1"];  
}
sfConfig extends Compound{
    Shell extends WinXPShell;  
    Make_Dir_1 extends Make_Dir{  
       sfProcessHost "192.168.56.1"  
    }
    Make_Dir_2 extends Make_Dir{
        sfProcessHost "192.168.56.101"
        startScript["mkdir c:\\dir_2"];
    }
}

There is OUTPUT:

[ProcessName(127.0.0.1)] ERR > ЌҐ г¤ Ґвбп ­ ©вЁ гЄ § ­­л© д ©«.
[ProcessName(127.0.0.1)] OUT > java.exe -Dorg.smartfrog.iniFile="C:\smartfrog\\bin\default.ini" -Djava.security.policy=="C:\smartfrog\\private\sf.no.security.policy" -Djava.security.manager -Dorg.smartfrog.iniFile="C:\smartfrog\\bin\default.ini" -Djava.security.policy=="C:\smartfrog\\private\sf.no.security.policy" -Djava.security.manager org.smartfrog.SFSystem -a \""ProcessName\"":DEPLOY:\""C:\smartfrog\src\org\smartfrog\examples\MyExamples\nod4.sf\""::127.0.0.1: -e
[ProcessName(127.0.0.1)] OUT >
[ProcessName(127.0.0.1)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[ProcessName(127.0.0.1)] OUT > (C) Copyright 1998-2009 Hewlett-Packard Development Company, LP
[ProcessName(127.0.0.1)] OUT >
[ProcessName(127.0.0.1)] OUT > 2010/07/01 01:40:06:984 YEKST [WARN ][main] SFCORE_LOG - SmartFrog security is NOT active
[sfDaemon] OUT > 2010/07/01 01:40:07:765 YEKST [ERROR][RMI TCP Connection(95)-192.168.56.1] SFCORE_LOG - caught on deployment (HOST "192.168.56.1":rootProcess:ProcessName) <SmartFrogLifecycleException:: [sfDeploy] HOST "192.168.56.1":rootProcess:ProcessName:Make_Dir_2
[sfDaemon] OUT > cause: java.lang.ClassCastException: org.smartfrog.services.shellscript.SFScriptExecutionImpl_Stub cannot be cast to org.smartfrog.services.shellscript.SFScriptExecution
[sfDaemon] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[sfDaemon] OUT > data: Failed object class: org.smartfrog.services.shellscript.SFScriptImpl
[sfDaemon] OUT > primSFCompleteName: HOST "192.168.56.1":rootProcess:ProcessName
[sfDaemon] OUT > primContext: included
[sfDaemon] OUT > reference: HOST "192.168.56.1":rootProcess:ProcessName
[sfDaemon] OUT > primContext: included>
[sfDaemon] OUT > SmartFrogLifecycleException:: [sfDeploy] HOST "192.168.56.1":rootProcess:ProcessName:Make_Dir_2, cause: java.lang.ClassCastException: org.smartfrog.services.shellscript.SFScriptExecutionImpl_Stub cannot be cast to org.smartfrog.services.shellscript.SFScriptExecution, SmartFrog 3.17.014 (2009-07-27 16:11:39 BST), data: Failed object class: org.smartfrog.services.shellscript.SFScriptImpl, primSFCompleteName: HOST "192.168.56.1":rootProcess:ProcessName, primContext: included, reference: HOST "192.168.56.1":rootProcess:ProcessName, primContext: included
[sfDaemon] OUT > at org.smartfrog.sfcore.common.SmartFrogLifecycleException.forward(SmartFrogLifecycleException.java:232)
[sfDaemon] OUT > at org.smartfrog.sfcore.common.SmartFrogLifecycleException.sfDeploy(SmartFrogLifecycleException.java:108)
[sfDaemon] OUT > at org.smartfrog.sfcore.compound.CompoundImpl.sfDeployChildren(CompoundImpl.java:615)
[sfDaemon] OUT > at org.smartfrog.sfcore.compound.CompoundImpl.sfDeploy(CompoundImpl.java:589)
[sfDaemon] OUT > at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
[sfDaemon] OUT > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[sfDaemon] OUT > at java.lang.reflect.Method.invoke(Method.java:597)
[sfDaemon] OUT > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
[sfDaemon] OUT > at sun.rmi.transport.Transport$1.run(Transport.java:159)
[sfDaemon] OUT > at java.security.AccessController.doPrivileged(Native Method)
[sfDaemon] OUT > at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
[sfDaemon] OUT > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[sfDaemon] OUT > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[sfDaemon] OUT > at java.lang.Thread.run(Thread.java:619)
[sfDaemon] OUT > Caused by: java.lang.ClassCastException: org.smartfrog.services.shellscript.SFScriptExecutionImpl_Stub cannot be cast to org.smartfrog.services.shellscript.SFScriptExecution
[sfDaemon] OUT > at org.smartfrog.services.shellscript.SFScriptImpl.readConfig(SFScriptImpl.java:83)
[sfDaemon] OUT > at org.smartfrog.services.shellscript.SFScriptImpl.sfDeploy(SFScriptImpl.java:101)
[sfDaemon] OUT > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[sfDaemon] OUT > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[sfDaemon] OUT > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[sfDaemon] OUT > at java.lang.reflect.Method.invoke(Unknown Source)
[sfDaemon] OUT > at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
[sfDaemon] OUT > at sun.rmi.transport.Transport$1.run(Unknown Source)
[sfDaemon] OUT > at java.security.AccessController.doPrivileged(Native Method)
[sfDaemon] OUT > at sun.rmi.transport.Transport.serviceCall(Unknown Source)
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
[sfDaemon] OUT > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
[sfDaemon] OUT > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[sfDaemon] OUT > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[sfDaemon] OUT > at java.lang.Thread.run(Unknown Source)
[sfDaemon] OUT > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
[sfDaemon] OUT > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
[sfDaemon] OUT > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
[sfDaemon] OUT > at org.smartfrog.services.shellscript.SFScriptImpl_Stub.sfDeploy(Unknown Source)
[sfDaemon] OUT > at org.smartfrog.sfcore.compound.CompoundImpl.sfDeployChildren(CompoundImpl.java:612)
[sfDaemon] OUT > ... 14 more
[sfDaemon] OUT >
[ProcessName(127.0.0.1)] OUT > - FAILED when trying DEPLOY of 'ProcessName', [C:\smartfrog\src\org\smartfrog\examples\MyExamples\nod4.sf], host:127.0.0.1
[ProcessName(127.0.0.1)] OUT > Result:
[ProcessName(127.0.0.1)] OUT > * Exception: 'SmartFrogLifecycleException:: [sfDeploy] HOST "192.168.56.1":rootProcess:ProcessName:Make_Dir_2
[ProcessName(127.0.0.1)] OUT > cause: java.lang.ClassCastException: org.smartfrog.services.shellscript.SFScriptExecutionImpl_Stub cannot be cast to org.smartfrog.services.shellscript.SFScriptExecution
[ProcessName(127.0.0.1)] OUT > SmartFrog 3.17.014 (2009-07-27 16:11:39 BST)
[ProcessName(127.0.0.1)] OUT > data: Failed object class: org.smartfrog.services.shellscript.SFScriptImpl
[ProcessName(127.0.0.1)] OUT > primSFCompleteName: HOST "192.168.56.1":rootProcess:ProcessName
[ProcessName(127.0.0.1)] OUT > primContext: included
[ProcessName(127.0.0.1)] OUT > reference: HOST "192.168.56.1":rootProcess:ProcessName
[ProcessName(127.0.0.1)] OUT > primContext: included'
[ProcessName(127.0.0.1)] OUT >


Whats wrong? And how I can use cmd operations around many hosts by smartfrog?

Alex