[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] OSGi RemoteServices Error

Hello ECF-Dev,

I am currently working on using Remote OSGi services in the Eclipse ICE project and I am facing some issues here.

The server side already uses OSGi, but I am introducing changes for Remote services, based on the code inÂhttps://wiki.eclipse.org/ECF/Getting_Started_with_Remote_Services_API

1) When I run tests on the server side, I get an error during the containerAdapter.registerRemoteService call, which roughly goes as:

!ENTRY ch.ethz.iks.r_osgi.remote 4 0 2016-09-13 16:40:07.148
!MESSAGE Error during remote service registration
java.lang.ClassNotFoundException: org.eclipse.core.internal.runtime.PrintStackUtil
at ch.ethz.iks.r_osgi.impl.CodeAnalyzer.visit(CodeAnalyzer.java:297)

So I tried resolving this by adding org.eclipse.core.internal.runtime as part of the Dependency in the Manifest file. Then I get the same Exception but for a different class (at the same location) and I end up adding more packages to the Dependency list.

I am now stuck at org.slf4j.implÂ(as the ClassNotFoundException), but I was simply wondering if this is the right way to resolve this? That is, by adding more packages to the Dependencies. Without my changes, I don't get the errors (when I revert to the older code).

2) Would applying the code changes from the previous link be enough to support Remote OSGi? That is, are there typical areas I need to keep an eye on while doing this? I know that this is too broad a question, butÂI am working with OSGi for the first time, so I am just trying to avoid the obvious issues.

Thanking You,

Ramachandran K. Narayanan
Software Engineer
RNET Technologies Inc.
240 W.Elmwood Drive, Suite 2010
Dayton, OH 45459-4248