Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ice-dev] New remote OSGI branch

Ram, 

Can you provide us with a link to your ICE fork on GitHub (you may have already in another email, but I can’t find it)? Then we can pull it down and try to replicate and find a fix for your second problem. 

For your first problem, Robert is right, you just have to right click and run as a J-Unit Plugin Test instead of a regular JUnit test. 

Alex

 On Aug 26, 2016, at 6:09 PM, Ramachandran K. Narayanan <knarayanan@xxxxxxxxxxxxx> wrote:

Hello ICE-Dev,

I will be making some local modifications to org.eclipse.ice.core/src/...../Core.java. To make sure the changes would make sense, I thought I would run the o.e.ice.core.test module. I am facing an issue here:

1) Without my changes, in ICE, if I right click on o.e.i.core.test module and select Run As -> JUnit Test, the tests don't run. I get a Failure Trace:
java.lang.IllegalStateException: Workspace is closed.
at org.eclipse.core.resources.ResourcesPlugin.getWorkspace(ResourcesPlugin.java:411)
at org.eclipse.ice.core.internal.Core.setupProjectLocation(Core.java:740)
at org.eclipse.ice.core.internal.Core.<init>(Core.java:174)
        .....

Just wanted to know if I am executing the test correctly.

2) Also, with my local changes for a first pass Remote OSGi, o.eclipse.ice.core has a dependency on o.eclipse.ecf.remoteservice and I updated the core/plugin.xml file.

When trying to build ICE with my changes, I get an error at the ice.client module:
[INFO] Resolving dependencies of MavenProject: org.eclipse.ice:org.eclipse.ice.client:2.1.8-SNAPSHOT @ /home/ram/ICE/workspace/ice/org.eclipse.ice.client/pom.xml
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86_64}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.ice.client 2.1.8.qualifier
[ERROR]   Missing requirement: org.eclipse.ice.client 2.1.8.qualifier requires 'bundle org.eclipse.ecf.remoteservice 8.11.0' but it could not be found

I added the dependency into the client/plugin.xml file and that did not resolve this. I had also updated my Target Platform and the remoteservice plugin (of that version) shows up in the Contents of that Target Platform as well.

Hope I haven't missed something obvious here. Any help on resolving the errors would be great.

Thanks,
Ram

On Thu, Aug 25, 2016 at 4:38 PM Ramachandran K. Narayanan <knarayanan@xxxxxxxxxxxxx> wrote:
Hello Jay,

I have been looking at issue 261 and have just outlined my progress on this.

I had worked through various sources on how OSGi applications are written and what changes are needed for developing a Remote OSGi service. The most useful sources were:


Using the examples from the code, I can now start a Remote OSGi Host service on my host Windows machine (using org.eclipse.ecf.examples.remoteservices.hello.host.rs) and connect to it from a guest Ubuntu VM (using org.eclipse.ecf.examples.remoteservices.hello.consumer.rs). I am using only the standalone examples and haven't modified ICE code yet.

I am continuing to look at the relevant example code and will carry over modifications to the relevant branch (for ICE). If it works within one VM, I will then try to connect an ICEClient from Windows to an ICECore in a guest Ubuntu (and vice versa) and check that the current UI comes up.

Regards,
Ram

On Tue, Aug 23, 2016 at 11:11 AM Ramachandran K. Narayanan <knarayanan@xxxxxxxxxxxxx> wrote:
Hi Jay,

Sounds good and I have pulled in the changes and the new branch. I will start by taking a look at the two bugs as we had discussed.

Thanks,
Ram


On Tue, Aug 23, 2016 at 10:05 AM Jay Jay Billings <jayjaybillings@xxxxxxxxx> wrote:
Ram,

I created a new remote OSGI branch for you and I to look at:

jayAndRam/remoteOSGI

I also added two bugs to start


Jay

-- 
Jay Jay Billings
Oak Ridge National Laboratory
Twitter Handle: @jayjaybillings
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev
-- 
Ramachandran K. Narayanan
Software Engineer
RNET Technologies Inc.
240 W.Elmwood Drive, Suite 2010
Dayton, OH 45459-4248
-- 
Ramachandran K. Narayanan
Software Engineer
RNET Technologies Inc.
240 W.Elmwood Drive, Suite 2010
Dayton, OH 45459-4248
-- 
Ramachandran K. Narayanan
Software Engineer
RNET Technologies Inc.
240 W.Elmwood Drive, Suite 2010
Dayton, OH 45459-4248
_______________________________________________
ice-dev mailing list
ice-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ice-dev


Back to the top