Re: FW: SmartFrog FTP help

Ritu Sabharwal <[email protected]> Thu, 23 Aug 2007 21:31:53 +0530
Newsgroups gmane.comp.java.smartfrog.devel
Organization HP
Message-ID <[email protected]>
Looking at the exception "Connection refused", it looks like the telnet 
server is not running on "labpc-15.nesc.gla.ac.uk". Can you check if you 
can telnet to "labpc-15" from "labpc-14" on command line?

Regards,
Ritu.



Guijarro, Julio wrote:
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* Yuxiang Wu [mailto:[email protected]]
> *Sent:* 23 August 2007 14:26
> *To:* Guijarro, Julio
> *Subject:* SmartFrog FTP help
>
>  
>
>  
>
> Hi Julio,
>
>     Thanks for your help. But there is a new problem.
>
> I have two PCs labpc-14 and labpc-15. I want to use smartfrog net 
> component FTP to move files from labpc-14 to labpc-15.
>
> This is my configuration file:
>
> ---------------------------------------------------
> #include "org/smartfrog/components.sf"
> #include "org/smartfrog/services/net/ftp.sf"
>                                                                                
> sfConfig extends Compound {
>     sampleFTPClient extends FTPClient {
>         PasswordProvider:passwordFile "/usr/local/passwd.txt";
>         FTP:ftpHost <FTP://ftpHost> "labpc-15.nesc.gla.ac.uk";
>         FTP:username <FTP://username> "root";
>         FTP:localFiles <FTP://localFiles> ["/usr/local/hello.txt"];
>         FTP:remoteFiles <FTP://remoteFiles> ["/usr/local/hello.txt"];
>         }
> }
>
> --------------------------------------------------------
>
> But i got an Connection Exception:
> -------------------------------------------------------------
> (C) Copyright 1998-2006 Hewlett-Packard Development Company, LP
>  - FAILED when trying DEPLOY of 'test3',  [ftpExample.sf],  host:localhost
>     Result:
>       * Exception: 'SmartFrogLifecycleException:: 
> java.net.ConnectException: Connection refused
>         cause: java.net.ConnectException: Connection refused
>         data: Failed object class: 
> org.smartfrog.services.net.FTPClientImpl
>         primSFCompleteName: HOST 
> labpc-14.nesc.gla.ac.uk:rootProcess:test3:sampleFTPClient
>         primContext: included
>         reference: HOST 
> labpc-14.nesc.gla.ac.uk:rootProcess:test3:sampleFTPClient
>         primContext: included'
> -----------------------------------------------------------
>
> Actuall, these two machines can ping and ssh each other. These two 
> machines accept everything from each other. So what is the problem?
>
>
> Wayne
>
>
>
> -----Original Message-----
> From: Guijarro, Julio [mailto:[email protected]]
> Sent: Tue 2007-8-21 14:18
> To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Cc: Yuxiang Wu
> Subject: FW: start sfDaemon help
>
> Hi Wayne,
>
>
>
>
>
> The problem is that you don't have the net components jar file in your
> daemon classpath.
>
>
>
>
>
> That example uses #include for the ftp component using a notation to
> load the description from a .jar file. In any case, you should get use
> to put all your .sf and classes in jar files because it is mandatory to
> be able to use security.
>
>
>
> Go to components/net and type "ant install". This command will compile
> the components, create the needed jar files and then copy them to
> $SFHOME/lib.
>
>
>
> Now you could start the daemon and everything should work.
>
>
>
> Julio
>
> ________________________________
>
> From: Yuxiang Wu [mailto:[email protected]]
> Sent: 20 August 2007 15:19
> To: Guijarro, Julio
> Subject: RE: start sfDaemon help
>
>    When I run smartfrog net component ftpExample, it always displays
> this error:
>
> - FAILED when trying DEPLOY of 'TEST1',  [example.sf],  host:localhost
>     Result:
>       * Exception: 'SmartFrogDeploymentException: unnamed component.
> deploying description 'example.sf' for 'TEST1'
>         cause: SmartFrogResolutionException::
>            Cause: Error creating parser for 'example.sf'. Parser error
> [SmartFrogParseException::
> org.smartfrog.sfcore.languages.sf.ParseException: Parsing include file
> /org/smartfrog/services/trace/ftp.sf : Include file:
> /org/smartfrog/services/trace/ftp.sf not found, cause:
> org.smartfrog.sfcore.languages.sf.ParseException: Parsing include file
> /org/smartfrog/services/trace/ftp.sf : Include file:
> /org/smartfrog/services/trace/ftp.sf not found]
>         deployedContext: included'
>
>
> but actually, /org/smartfrog/services/trace/ftp.sf does exist. Also the
> CLASSPATH is set to the current directory.
>
>
>
>
>
> Could you give me a hand? Thank you very much
>
> Wayne
>
> _----
>
> From: Yuxiang Wu [mailto:[email protected] <mailto:[email protected]> ]
> Sent: 14 August 2007 15:08
> To: Guijarro, Julio
> Subject: RE: start sfDaemon help
>
>
>
> Hi Julio,
>
>
>
>    That's OK. I think it is the CLASSPATH problem. Thank you for your
> help.
>
>
>
>
>
> Wayne
>
> ________________________________
>
> From: Guijarro, Julio [mailto:[email protected]
> <mailto:[email protected]> ]
> Sent: 2007-8-13 15:35
> To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Yuxiang Wu
> Subject: FW: start sfDaemon help
>
> HI Wayne,
>
>
>
> How did you intall SmarFrog? Are you using the an svn checkout, a full
> distribution or an rpm distribution? What version are you using?
>
>
>
> If you are running an RPM-based distribution, start with the RPMS. They
> should also work on debian systems, though they don't set up the
> environment properly there.
>
>
>
> >From the information you provided, I think your problem could be that
> SFHOME should be pointing to /usr/local/SmartFrog/dist, but without more
> information I cannot be sure.
>
>
>
> Regards,
>
>
>
> Julio
>
>
>
> ________________________________
>
> From: sitelist-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:sitelist-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> <mailto:sitelist-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> ] On Behalf Of Yuxiang
> Wu
> Sent: 13 August 2007 12:36
> To: smartfrog-support-owner-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: start sfDaemon help
>
>
>
>
>
> Hi list,
>
>    I just started to use SF. I start-up sfDaemon in Window successfully.
> But when I run sfDaemon in Linux shell command line, there is a
> Exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/smartfrog/sfcore/logging/LogFactory
>         at org.smartfrog.SFSystem.sfLog(Unknown Source)
>         at org.smartfrog.SFSystem.initSystem(Unknown Source)
>         at org.smartfrog.SFSystem.execute(Unknown Source)
>         at org.smartfrog.SFSystem.main(Unknown Source)
>
>
>
> My environment is:
>
> $SFHOME=/usr/local/SmartFrog
> $PATH=$SFHOME/bin
> $CLASSPATH=.:$CLASSPATH
>
> Could you tell me what is wrong? Thanks a lot
>
>
> Wayne
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/