Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] Problems getting the Hello example to run

Dear Pierre-Henry,

thanks a lot for your suggestion! Unfortunately, this does not solve my problem; I still get a message

WARNING: Port 9278 already in use. This instance of R-OSGi is running on port 9280

when I start the client (while the server is running).

This warning occurs when I open the service tracker for the container factory.

Does this mean that I cannot have the server and client running on the same machine or in the same Eclipse?

Cheers,

Nicole


Am 24.03.2011 um 17:27 schrieb Pierre Henry Perret:

> Nicole,
> 
> It seems that you target platform does not include the bundle *org.eclipse.ecf.provider.r_osgi* .
> 
> See [1] for a list of needed bundles.
> 
> [1] http://wiki.eclipse.org/Using_ECF_Remote_Services_Bundles_separate_from_the_ECF_SDK
> 
> 
> --
> Pierre-Henry Perret
> 
> 
> 
> 
> 
> 2011/3/24 Nicole Rauch <nicole.m@xxxxxx>
> Dear all,
> 
> I'm trying to get a grip at ECF, so I downloaded the Hello example from
> 
> http://git.eclipse.org/c/ecf/org.eclipse.ecf.git
> 
> imported the projects into an Eclipse workspace, installed ECF 3.5.0v20110313, and ran
> 
> org.eclipse.ecf.examples.remoteservices.hello.host
> 
> as Eclipse Application. This gave me
> 
> [log;+0530 2011.03.24 13:54:43:913;WARNING;org.eclipse.ecf.osgi.services.remoteserviceadmin;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.remoteserviceadmin;code=2;message=org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin:handleServiceRegistered:No remote service containers found for serviceReference={org.eclipse.ecf.examples.remoteservices.hello.IHello}={ecf.exported.containerfactoryargs=r-osgi://localhost:9278, service.exported.configs=ecf.r_osgi.peer, service.exported.interfaces=*, service.id=49}. Remote service NOT EXPORTED;severity2;exception=null;children=[]]]
> [log;+0530 2011.03.24 13:54:43:914;ERROR;org.eclipse.ecf.osgi.services.remoteserviceadmin;org.eclipse.core.runtime.Status[plugin=org.eclipse.ecf.osgi.services.remoteserviceadmin;code=4;message=org.eclipse.ecf.internal.osgi.services.distribution.BasicTopologyManager:handleServiceRegistered:No export registrations created by RemoteServiceAdmin=org.eclipse.ecf.osgi.services.remoteserviceadmin.RemoteServiceAdmin@78e45b5e.  ServiceReference={org.eclipse.ecf.examples.remoteservices.hello.IHello}={ecf.exported.containerfactoryargs=r-osgi://localhost:9278, service.exported.configs=ecf.r_osgi.peer, service.exported.interfaces=*, service.id=49} NOT EXPORTED;severity4;exception=null;children=[]]]
> Host: Hello Service Registered
> 
> I understand that the first WARNING is ok, but the second ERROR is not, right?
> 
> Then I ran
> 
> org.eclipse.ecf.examples.remoteservices.hello.consumer
> 
> as Eclipse application, which gave me
> 
> !SESSION 2011-03-24 14:33:02.068 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_22
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE
> Framework arguments:  -application org.eclipse.ecf.examples.remoteservices.hello.consumer.HelloConsumer
> Command-line arguments:  -application org.eclipse.ecf.examples.remoteservices.hello.consumer.HelloConsumer -data /Users/rauch/Developer/GitRepositories/org.eclipse.ecf/examples/bundles/../runtime-org.eclipse.ecf.examples.remoteservices.hello.consumer.HelloConsumer -dev file:/Users/rauch/Developer/GitRepositories/org.eclipse.ecf/examples/bundles/.metadata/.plugins/org.eclipse.pde.core/org.eclipse.ecf.examples.remoteservices.hello.consumer.HelloConsumer/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog
> 
> !ENTRY org.eclipse.equinox.app 4 0 2011-03-24 14:33:04.484
> !MESSAGE Container type description with name=ecf.r_osgi.peer not found.  This may indicate that the desired provider is not available or not startable within runtime.
> !STACK 0
> org.eclipse.ecf.core.ContainerCreateException: Container type description with name=ecf.r_osgi.peer not found.  This may indicate that the desired provider is not available or not startable within runtime.
>        at org.eclipse.ecf.core.ContainerFactory.getDescriptionByNameWithException(ContainerFactory.java:269)
>        at org.eclipse.ecf.core.ContainerFactory.createContainer(ContainerFactory.java:263)
>        at org.eclipse.ecf.internal.examples.remoteservices.hello.consumer.HelloConsumerApplication.start(HelloConsumerApplication.java:61)
>        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>        at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
>        at java.lang.Thread.run(Thread.java:680)
> 
> 
> I added org.eclipse.ecf.provider.r_osgi.identity to the Imported Packages of the consumer plugin.xml, which then gave me
> 
> WARNING: Port 9278 already in use. This instance of R-OSGi is running on port 9279
> 
> Now I give up... Can somebody please  tell me how I can get the client and server of the Hello example work together, so I can carry this over to my own project?
> 
> Thanks a lot in advance,
> 
> Nicole
> 
> 
> _______________________________________________
> ecf-dev mailing list
> ecf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ecf-dev
> 
> _______________________________________________
> ecf-dev mailing list
> ecf-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ecf-dev



Back to the top