Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] R-OSGi, Host bind 9278 port on localhost and client could not connect to this

Hi Pavel,

Samolisov Pavel wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, all

I try run
http://wiki.eclipse.org/Getting_Started_with_ECF's_RFC119_Implementation
example, but I have a problem.

Host registeres IHello service and bind 9278 port on the localhost (I
have disabled the automatic running of an R-OSGi instance). When I'm
running example consummer on the localhost, I get this message:
"WARNING: Port 9278 already in use. This instance of R-OSGi is running
on port 9279" and customer does not create proxy for IHello service
(method addingService is not called).

I tried call this code

ID server =
IDFactory.getDefault().createID(container.getConnectNamespace(),ROSGI_SERVICE_HOST);
container.connect(server, null);

but this does not work, too.

I use last daily build (10/11/2009).

Is this a bug? Or R-OSGi do not works on single mashine, and I should
use second computer for testing?

For the time being, you should use a second process for testing. Note this can be but doesn't have to be a separate physical computer...i.e. you can just start another process on localhost and disable (or reset) the default port from 9278 to something else. Here is info on how to do that disabling/resetting:

http://wiki.eclipse.org/Disabling_R-OSGi
http://wiki.eclipse.org/R-OSGi_Properties

There is also this enhancement request for r-OSGi to support specifying a port for separate server instances

https://bugs.eclipse.org/bugs/show_bug.cgi?id=267521

Scott

Thanks.

- --
Pavel Samolisov

Meet me at:
Vkontakte.ru: http://vkontakte.ru/id3178981
Blog: http://samolisov.blogspot.com
Twitter: http://twitter.com/samolisov
XMPP/Jabber: samolisov@xxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrR9iYACgkQ20T0Vos3rqAHsQCgxfDnHXXqOmpV5yqf0CdWUWow
UuUAoK8sfC196sV2fVJdOLiCzge8OZE3
=MPZk
-----END PGP SIGNATURE-----
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



Back to the top