FW: SmartFrog FTP help

"Guijarro, Julio" <[email protected]> Thu, 23 Aug 2007 14:41:01 +0100
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============0027041510==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7E58B.3EDC3659"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7E58B.3EDC3659
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

=20

=20

________________________________

From: Yuxiang Wu [mailto:[email protected]]=20
Sent: 23 August 2007 14:26
To: Guijarro, Julio
Subject: SmartFrog FTP help

=20

=20

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"
=20

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=3D/usr/local/SmartFrog
$PATH=3D$SFHOME/bin
$CLASSPATH=3D.:$CLASSPATH

Could you tell me what is wrong? Thanks a lot


Wayne






------_=_NextPart_001_01C7E58B.3EDC3659
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>SmartFrog FTP help</title>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Batang;
	panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"\@Batang";
	panose-1:2 3 6 0 0 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-GB link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span lang=3DEN-US style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</spa=
n></font></b><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
Yuxiang Wu [mailto:[email protected]] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> 23 August 2007 =
14:26<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Guijarro, Julio<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> SmartFrog FTP =
help</span></font><span
lang=3DEN-US><o:p></o:p></span></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

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

</div>

</body>

</html>

------_=_NextPart_001_01C7E58B.3EDC3659--


--===============0027041510==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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/
--===============0027041510==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer

--===============0027041510==--