RE: problem with deployment

"Guijarro, Julio" <[email protected]>
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <8D5B24B83C6A2E4B9E7EE5FA82627DC97508A7@sdcexcea01.emea.cpqcorp.net>
Hi Sai,

What you are describing sounds like a configuration problem in the
machines and we need more information to pin the problem down.

It cannot be a classloading problem because the examples are in the
classpath of the daemons by default.

Have you tried all the steps that Patrick described? What did it
happened?

Can you "ping" both machines? Some times there are problems with DNS
resolution due to miss-configurations that could affect the deployment.

You could try the deployment using the IP address of the machines
instead of their host names. 

Another thing that you could try is to start both daemons and then try
to connect the management console (needs a graphical display):

sfManagementConsole - h knscsl018

and 

sfManagementConsole - h knscsl020

from each of them to see if the management console can access to the
daemons.

Do you have any kind of firewall that could interfere with RMI
communications between the two machines?

Please, let us know your results.

Julio

> -----Original Message-----
> From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-
> developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of sai srinivas
> dharanikota
> Sent: 09 February 2005 17:48
> To: Goldsack, Patrick; smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: RE: [Smartfrog-developer] problem with deployment
> 
> Thanks for the reply.
> I depoyed the component
> "org/smartfrog/examples/helloworld/example1dist.sf:p"
> onto the daemon running on machine knscsl018 and I
> tried to run example1dist.sf on knscsl020, every thing
> works fine.
> When I am trying to deploy the component
> "org/smartfrog/examples/helloworld/example1dist.sf:p"
> onto the daemon running on knscsl018 from knscsl020
> the deployment is not positive. I am not sure whether
> it has to do some thing with the remote class loading.
> 
> Regards
> Sai
> --- "Goldsack, Patrick" <[email protected]>
> wrote:
> 
> >
> > The example works for us in our local environment -
> > we have just tried
> > it - so is likely to be some environmental issue as
> > I presume that you
> > have not changed the example1dist.sf file in any
> > way.
> >
> > So we will first test the comms between the nodes.
> >
> > Could you please try to do the following:
> >
> > 1) start the daemon on both the nodes
> > 2) on kncs1020:
> >      go to the display and select "help->sf mng
> > console"
> >      when prompted for a hostname enter "kncs1018"
> > 3) This should produce a display wondow that shows
> > what is deployed on
> > that host.
> >
> > Do the same from kncs1018, using default "localhost"
> > as the hostname to
> > see if you get the same management window. For good
> > measure you can try
> > localhost on 1020, and 1020 from 1018... (ie all
> > four combinations).
> >
> > If this works, then communication between the
> > daemons seem to be OK.
> >
> > Then retry your example and if it doesn't work, let
> > us know and we will
> > have to do something else to test this.
> >
> > Patrick.
> >
> > -----Original Message-----
> > From:
> > smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >
> [mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
> > On Behalf Of
> > sai srinivas dharanikota
> > Sent: 07 February 2005 17:02
> > To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > Subject: [Smartfrog-developer] problem with
> > deployment
> >
> > Hello,
> >
> > I am very new to SmartFrog. Currently I am trying to
> > understand the
> > framework from the examples and docs.
> > I have a problem when I am trying to deploy the
> > components.This is the
> > scenario:
> >
> > I have two machines : knscsl020, knscsl018 I am
> > running "sfDaemon" on
> > both the machines. I am trying to deploy the
> > components from knscsl020
> > to the daemon running on knscsl018. During the
> > deployment I am getting
> > the following error.
> >
> > ---------------------------------------------------
> > [root@knscsl020 opt]# sfStart knscsl018 ex1
> > org/smartfrog/examples/helloworld/example1dist.sf
> > 2005/02/07 17:23:27:929 CET [WARN ][main] SFCORE_LOG
> > - SmartFrog
> > security is NOT active
> > Warning: stack trace logging enabled
> > SmartFrog 3.04.014_beta
> > (C) Copyright 1998-2004 Hewlett-Packard Development
> > Company, LP QUIET
> > SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused,
> > cause: java.rmi.ConnectException: Connection refused
> > to host: 127.0.0.1;
> > nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >
> >
> >  --- StackTrace Throwable Begins --
> > SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused,
> > cause: java.rmi.ConnectException: Connection refused
> > to host: 127.0.0.1;
> > nested exception is:
> >         java.net.ConnectException: Connection
> > refused  *Stack trace
> > follows:
> > SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused,
> > cause: java.rmi.ConnectException: Connection refused
> > to host: 127.0.0.1;
> > nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >         at
> >
>
org.smartfrog.sfcore.common.SmartFrogException.forward(SmartFrogExceptio
> > n.java:88)
> >         at
> >
> org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:161)
> >         at
> >
>
org.smartfrog.sfcore.common.ActionDeploy.execute(ActionDeploy.java:213)
> >         at
> >
>
org.smartfrog.sfcore.common.ConfigurationAction.execute(ConfigurationAct
> > ion.java:75)
> >         at
> >
>
org.smartfrog.sfcore.common.ConfigurationDescriptor.execute(Configuratio
> > nDescriptor.java:740)
> >         at
> >
> org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:304)
> >         at
> >
> org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:285)
> >         at
> >
> org.smartfrog.SFSystem.runConfigurationDescriptors(SFSystem.java:274)
> >         at
> >
> org.smartfrog.SFSystem.runSmartFrog(SFSystem.java:442)
> >         at
> > org.smartfrog.SFSystem.execute(SFSystem.java:365)
> >         at
> > org.smartfrog.SFSystem.main(SFSystem.java:331)
> > Caused by: java.rmi.ConnectException: Connection
> > refused to host:
> > 127.0.0.1; nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >         at
> >
> sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
> >         at
> >
> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
> >         at
> >
> sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
> >         at
> > sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
> >         at
> >
>
org.smartfrog.sfcore.processcompound.ProcessCompoundImpl_Stub.sfDeployCo
> > mponentDescription(Unknown
> > Source)
> >         at
> >
> org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:127)
> >         ... 9 more
> > Caused by: java.net.ConnectException: Connection
> > refused
> >         at
> > java.net.PlainSocketImpl.socketConnect(Native
> > Method)
> >         at
> >
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >         at
> >
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >         at
> >
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >         at
> >
> java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
> >         at java.net.Socket.connect(Socket.java:507)
> >         at java.net.Socket.connect(Socket.java:457)
> >         at java.net.Socket.<init>(Socket.java:365)
> >         at java.net.Socket.<init>(Socket.java:178)
> >         at
> >
>
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc
> > ketFactory.java:22)
> >         at
> >
>
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc
> > ketFactory.java:128)
> >         at
> >
> sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
> >         ... 14 more
> >  --- StackTrace Throwable Ends --
> >
> >
> >  - FAILED when trying DEPLOY of 'ex1',
> > [org/smartfrog/examples/helloworld/example1dist.sf],
> > host:knscsl018
> >    Error:
> >     SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused
> >     cause: java.rmi.ConnectException: Connection
> > refused to host:
> > 127.0.0.1; nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >     Command line SFACT:
> >
>
'ex1:DEPLOY:org/smartfrog/examples/helloworld/example1dist.sf::knscsl018
> > :'
> >     To String: ' name:ex1,  type:DEPLOY,
> >
> === message truncated ===
> 
> --- "Goldsack, Patrick" <[email protected]>
> wrote:
> 
> >
> > The example works for us in our local environment -
> > we have just tried
> > it - so is likely to be some environmental issue as
> > I presume that you
> > have not changed the example1dist.sf file in any
> > way.
> >
> > So we will first test the comms between the nodes.
> >
> > Could you please try to do the following:
> >
> > 1) start the daemon on both the nodes
> > 2) on kncs1020:
> >      go to the display and select "help->sf mng
> > console"
> >      when prompted for a hostname enter "kncs1018"
> > 3) This should produce a display wondow that shows
> > what is deployed on
> > that host.
> >
> > Do the same from kncs1018, using default "localhost"
> > as the hostname to
> > see if you get the same management window. For good
> > measure you can try
> > localhost on 1020, and 1020 from 1018... (ie all
> > four combinations).
> >
> > If this works, then communication between the
> > daemons seem to be OK.
> >
> > Then retry your example and if it doesn't work, let
> > us know and we will
> > have to do something else to test this.
> >
> > Patrick.
> >
> > -----Original Message-----
> > From:
> > smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >
> [mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
> > On Behalf Of
> > sai srinivas dharanikota
> > Sent: 07 February 2005 17:02
> > To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > Subject: [Smartfrog-developer] problem with
> > deployment
> >
> > Hello,
> >
> > I am very new to SmartFrog. Currently I am trying to
> > understand the
> > framework from the examples and docs.
> > I have a problem when I am trying to deploy the
> > components.This is the
> > scenario:
> >
> > I have two machines : knscsl020, knscsl018 I am
> > running "sfDaemon" on
> > both the machines. I am trying to deploy the
> > components from knscsl020
> > to the daemon running on knscsl018. During the
> > deployment I am getting
> > the following error.
> >
> > ---------------------------------------------------
> > [root@knscsl020 opt]# sfStart knscsl018 ex1
> > org/smartfrog/examples/helloworld/example1dist.sf
> > 2005/02/07 17:23:27:929 CET [WARN ][main] SFCORE_LOG
> > - SmartFrog
> > security is NOT active
> > Warning: stack trace logging enabled
> > SmartFrog 3.04.014_beta
> > (C) Copyright 1998-2004 Hewlett-Packard Development
> > Company, LP QUIET
> > SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused,
> > cause: java.rmi.ConnectException: Connection refused
> > to host: 127.0.0.1;
> > nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >
> >
> >  --- StackTrace Throwable Begins --
> > SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused,
> > cause: java.rmi.ConnectException: Connection refused
> > to host: 127.0.0.1;
> > nested exception is:
> >         java.net.ConnectException: Connection
> > refused  *Stack trace
> > follows:
> > SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused,
> > cause: java.rmi.ConnectException: Connection refused
> > to host: 127.0.0.1;
> > nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >         at
> >
>
org.smartfrog.sfcore.common.SmartFrogException.forward(SmartFrogExceptio
> > n.java:88)
> >         at
> >
> org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:161)
> >         at
> >
>
org.smartfrog.sfcore.common.ActionDeploy.execute(ActionDeploy.java:213)
> >         at
> >
>
org.smartfrog.sfcore.common.ConfigurationAction.execute(ConfigurationAct
> > ion.java:75)
> >         at
> >
>
org.smartfrog.sfcore.common.ConfigurationDescriptor.execute(Configuratio
> > nDescriptor.java:740)
> >         at
> >
> org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:304)
> >         at
> >
> org.smartfrog.SFSystem.runConfigurationDescriptor(SFSystem.java:285)
> >         at
> >
> org.smartfrog.SFSystem.runConfigurationDescriptors(SFSystem.java:274)
> >         at
> >
> org.smartfrog.SFSystem.runSmartFrog(SFSystem.java:442)
> >         at
> > org.smartfrog.SFSystem.execute(SFSystem.java:365)
> >         at
> > org.smartfrog.SFSystem.main(SFSystem.java:331)
> > Caused by: java.rmi.ConnectException: Connection
> > refused to host:
> > 127.0.0.1; nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >         at
> >
> sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
> >         at
> >
> sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
> >         at
> >
> sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
> >         at
> > sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
> >         at
> >
>
org.smartfrog.sfcore.processcompound.ProcessCompoundImpl_Stub.sfDeployCo
> > mponentDescription(Unknown
> > Source)
> >         at
> >
> org.smartfrog.sfcore.common.ActionDeploy.Deploy(ActionDeploy.java:127)
> >         ... 9 more
> > Caused by: java.net.ConnectException: Connection
> > refused
> >         at
> > java.net.PlainSocketImpl.socketConnect(Native
> > Method)
> >         at
> >
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >         at
> >
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >         at
> >
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >         at
> >
> java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
> >         at java.net.Socket.connect(Socket.java:507)
> >         at java.net.Socket.connect(Socket.java:457)
> >         at java.net.Socket.<init>(Socket.java:365)
> >         at java.net.Socket.<init>(Socket.java:178)
> >         at
> >
>
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc
> > ketFactory.java:22)
> >         at
> >
>
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc
> > ketFactory.java:128)
> >         at
> >
> sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
> >         ... 14 more
> >  --- StackTrace Throwable Ends --
> >
> >
> >  - FAILED when trying DEPLOY of 'ex1',
> > [org/smartfrog/examples/helloworld/example1dist.sf],
> > host:knscsl018
> >    Error:
> >     SmartFrogException:: java.rmi.ConnectException:
> > Connection refused to host: 127.0.0.1; nested
> > exception is:
> >         java.net.ConnectException: Connection
> > refused
> >     cause: java.rmi.ConnectException: Connection
> > refused to host:
> > 127.0.0.1; nested exception is:
> >         java.net.ConnectException: Connection
> > refused
> >     Command line SFACT:
> >
>
'ex1:DEPLOY:org/smartfrog/examples/helloworld/example1dist.sf::knscsl018
> > :'
> >     To String: ' name:ex1,  type:DEPLOY,
> >
> === message truncated ===
> 
> 
> =====
> Sai Srinivas Dharanikota
> Master of Science INFOTECH
> University of Stuttgart
> Germany
> 
> Home:  +49 221 2935577
> Mobile:+49 179 9090669
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&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.