Re: Re: smartfrog 3.0.01.003.alpha demo quest ion

Steve Loughran <[email protected]>
Newsgroups gmane.comp.java.smartfrog.user
Message-ID <[email protected]>
Alan Arbizu wrote:
> Thanks for the tips, they definitely moved me further along than I had 
> been, I was indeed trying to run all the components on one 11.23 system 
> (cutst106). This didn't quite fly, obviously.
> 
> However, not totally out of the woods yet, it would seem.
> 
> I tried out the helloworld example1dist to make sure things were working 
> ok between distributed systesms, so on cutst106, I made the following 
> changes to ../helloworld/example1dist.sf:
> 
> /**
>  * example 1dist creates a generator on hostA and a printer component 
> with id
>  * "myPrinter" on hostB
>  */
> 
> //hostA "foo.hp.com";
> //hostB "bar.hp.com";
> hostA "cutst088";
> hostB "cutst089";
> 
> and then ran it with the following command (SFHOME=/smartfrog/dist) from
> /smartfrog/dist/src/org/smartfrog/examples/helloworld:
> 
> sh sfStart localhost ex1dist ./example1dist.sf
> 
> I get the following exception being thrown:
> 
> Error during deployment of URL:./example1dist.sf, for component: ex1dist
> SmartFrogDeploymentException: HOST 
> cutst106.cup.hp.com:rootProcess:ex1dist failed to deploy 'p' component
>    cause: java.rmi.ConnectException: Connection refused to host: 
> 127.0.0.1; nested exception is:
>         java.net.ConnectException: Connection refused
> 

Hi alan.

component "p" is deploying on hostB, here cutst089. If that wasnt 
running the daemon (check with a telnet to port 3800), then I'd expect a 
connection refused message.

But here the message was saying localhost. I dont know about that. 
Either it is a reporting error _or_ something else is amiss.

(pause)

OK. I have just tested deployment to a host that is not reachable, using 
the latest build of the code

       <sf-deploy host="www.google.com" logStackTraces="true">
         <application name="app" descriptor="${resource.sf}"/>
       </sf-deploy>

[sf-deploy]  - FAILED when trying DEPLOY of app, 
[org/smartfrog/examples/functions/function.sf],  host:www.google.com,
[sf-deploy]    Error:
[sf-deploy]      SmartFrogException:: java.rmi.ConnectException: 
Connection refused to host: 216.239.59.104; nested exception is:
[sf-deploy] 	java.net.ConnectException: Connection refused
[sf-deploy]      cause: java.rmi.ConnectException: Connection refused to 
host: 216.239.59.104; nested exception is:
[sf-deploy] 	java.net.ConnectException: Connection refused

So here the host information is correct for a direct deployment. I don't 
see a test that does what you are trying to do (deploy child components 
to other hosts and expect failure), so will write a couple and get back 
to you.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.