Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to set up cross/hybrid target platform for RCP and RAP plugins?
How to set up cross/hybrid target platform for RCP and RAP plugins? [message #505752] Mon, 04 January 2010 18:48 Go to next message
Eclipse UserFriend
Originally posted by: fxulusoy.yahoo.com

Hi all,

We have a RCP project which uses EMF framework and we have different
types of model elements on EMF eobjects. RCP application is a kind of
background application. It doesn't have any gui. We want to develop
lightweight web user-interface with RAP for it. We don't want to use
model editors. We only would like to see some of our model elements on
table or tree view in our RAP application.

Therefore, I try to setup cross/hybrid platform for RAP and RCP plugins.
After many trials I couldn't achieve that.

When I set my cross target platform, my RCP application doesn't work.
When I run it, I get only ">osgi" in my console and nothing more.

When I run my RAP plugin, I get many bundles not resolved exceptions.

Here is the sample exception:

!ENTRY org.eclipse.core.jobs 4 0 2009-12-15 14:04:17.140
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: Another singleton version selected:
org.eclipse.core.jobs_3.4.200.v20090921

This bundle was already in our target platform. At the same time,
org.eclipse.core.jobs_3.6 bundle is also in our target platform. When I
remove org.eclipse.core.jobs_3.4 bundle, and try it to run. In that
case, I get similar exceptions which says

org.osgi.framework.BundleException: The bundle could not be resolved.
Reason: Another singleton version selected: org.eclipse.core.jobs_3.6


These exceptions are really frustrating because they behave as
non-deterministic. Sometimes it finds the bundles sometimes not. I
think, it is related with dependencies between bundles. But, I don't
know exactly.

I will be grateful for any help or any hint. If it is necessary, I can
give any kind of further information.

Thanks in advance.
Cheers.
Re: How to set up cross/hybrid target platform for RCP and RAP plugins? [message #506040 is a reply to message #505752] Tue, 05 January 2010 15:14 Go to previous messageGo to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Fatih Ulusoy wrote:

> Hi all,
>
> We have a RCP project which uses EMF framework and we have different
> types of model elements on EMF eobjects. RCP application is a kind of
> background application. It doesn't have any gui. We want to develop
> lightweight web user-interface with RAP for it. We don't want to use
> model editors. We only would like to see some of our model elements on
> table or tree view in our RAP application.
>
> Therefore, I try to setup cross/hybrid platform for RAP and RCP plugins.
> After many trials I couldn't achieve that.

I had many problems with target platforms until I started using the latest
Milestone from the upcoming Helios release. These problems basically made
plugins completely disappear from the runtime/build environment if one or
more plugin existed in multiple locations (which usually is the case when
one tries to do RAP).

But even if one uses the current milestone eclipse one has to "hack" some of
the EMF plugins to make the dependencies to the eclipse.ui plugins
optional. Otherwise these plugins won't work with RAP. I am not aware of
any way to use unmodified EMF plugins (that have dependencies to eclipse.ui
plugins) with RAP. EMF plugins that have no dependencies to eclipse.ui
plugins work fine with RAP.
There is a bugzilla entry for EMF RAP interoperatibility, but I assume
someone would need to sponsor the RAP guys to work on that.

> Thanks in advance.
> Cheers.

Lothar
Re: How to set up cross/hybrid target platform for RCP and RAP plugins? [message #506208 is a reply to message #506040] Wed, 06 January 2010 09:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fxulusoy.yahoo.com

Lothar Werzinger wrote:
> Fatih Ulusoy wrote:
>
>> Hi all,
>>
>> We have a RCP project which uses EMF framework and we have different
>> types of model elements on EMF eobjects. RCP application is a kind of
>> background application. It doesn't have any gui. We want to develop
>> lightweight web user-interface with RAP for it. We don't want to use
>> model editors. We only would like to see some of our model elements on
>> table or tree view in our RAP application.
>>
>> Therefore, I try to setup cross/hybrid platform for RAP and RCP plugins.
>> After many trials I couldn't achieve that.
>
> I had many problems with target platforms until I started using the latest
> Milestone from the upcoming Helios release. These problems basically made
> plugins completely disappear from the runtime/build environment if one or
> more plugin existed in multiple locations (which usually is the case when
> one tries to do RAP).
>
> But even if one uses the current milestone eclipse one has to "hack" some of
> the EMF plugins to make the dependencies to the eclipse.ui plugins
> optional. Otherwise these plugins won't work with RAP. I am not aware of
> any way to use unmodified EMF plugins (that have dependencies to eclipse.ui
> plugins) with RAP. EMF plugins that have no dependencies to eclipse.ui
> plugins work fine with RAP.
> There is a bugzilla entry for EMF RAP interoperatibility, but I assume
> someone would need to sponsor the RAP guys to work on that.
>
>> Thanks in advance.
>> Cheers.
>
> Lothar

Hi Lothar,

Thanks for your reply.

I think, this is the bugzilla entry that you mentioned.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988

And, there is not much improvement about this issue till now. I have
also asked "EMF in RAP" issue to RAP newsgroup but I didn't get any
useful reply from there until now. I try to use
AdapterFactoryLabelProvider and AdapterFactoryContentProvider classes.
But, they don't work. According to your answer, they don't work without
some hack. So, I should find some another way to do my task.

Anyway I will try the latest milestone of eclipse. I hope, it helps me
for bundle problems without EMF.


Best regards.
Re: How to set up cross/hybrid target platform for RCP and RAP plugins? [message #506270 is a reply to message #506208] Wed, 06 January 2010 17:33 Go to previous message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Fatih Ulusoy wrote:

> Hi Lothar,
>
> Thanks for your reply.
>
> I think, this is the bugzilla entry that you mentioned.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988
>
> And, there is not much improvement about this issue till now. I have
> also asked "EMF in RAP" issue to RAP newsgroup but I didn't get any
> useful reply from there until now. I try to use
> AdapterFactoryLabelProvider and AdapterFactoryContentProvider classes.
> But, they don't work. According to your answer, they don't work without
> some hack. So, I should find some another way to do my task.

The "hack" is quite easy, just make the dependencies to eclipse.ui* in the
affected plugins optional. This however requires that you always use/deploy
your RAP app with the hacked plugins and not use the regular EMF plugins.
The RCP does not need any hacked plugins, it works with the regular EMF
plugins.

As the RAP app is installed on the server that "hack" may be a workable
solution for you.

> Anyway I will try the latest milestone of eclipse. I hope, it helps me
> for bundle problems without EMF.
>
> Best regards.

Lothar
Re: How to set up cross/hybrid target platform for RCP and RAP plugins? [message #603974 is a reply to message #505752] Tue, 05 January 2010 20:04 Go to previous message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Fatih Ulusoy wrote:

> Hi all,
>
> We have a RCP project which uses EMF framework and we have different
> types of model elements on EMF eobjects. RCP application is a kind of
> background application. It doesn't have any gui. We want to develop
> lightweight web user-interface with RAP for it. We don't want to use
> model editors. We only would like to see some of our model elements on
> table or tree view in our RAP application.
>
> Therefore, I try to setup cross/hybrid platform for RAP and RCP plugins.
> After many trials I couldn't achieve that.

I had many problems with target platforms until I started using the latest
Milestone from the upcoming Helios release. These problems basically made
plugins completely disappear from the runtime/build environment if one or
more plugin existed in multiple locations (which usually is the case when
one tries to do RAP).

But even if one uses the current milestone eclipse one has to "hack" some of
the EMF plugins to make the dependencies to the eclipse.ui plugins
optional. Otherwise these plugins won't work with RAP. I am not aware of
any way to use unmodified EMF plugins (that have dependencies to eclipse.ui
plugins) with RAP. EMF plugins that have no dependencies to eclipse.ui
plugins work fine with RAP.
There is a bugzilla entry for EMF RAP interoperatibility, but I assume
someone would need to sponsor the RAP guys to work on that.

> Thanks in advance.
> Cheers.

Lothar
Re: How to set up cross/hybrid target platform for RCP and RAP plugins? [message #603986 is a reply to message #603974] Wed, 06 January 2010 14:37 Go to previous message
Eclipse UserFriend
Originally posted by: fxulusoy.yahoo.com

Lothar Werzinger wrote:
> Fatih Ulusoy wrote:
>
>> Hi all,
>>
>> We have a RCP project which uses EMF framework and we have different
>> types of model elements on EMF eobjects. RCP application is a kind of
>> background application. It doesn't have any gui. We want to develop
>> lightweight web user-interface with RAP for it. We don't want to use
>> model editors. We only would like to see some of our model elements on
>> table or tree view in our RAP application.
>>
>> Therefore, I try to setup cross/hybrid platform for RAP and RCP plugins.
>> After many trials I couldn't achieve that.
>
> I had many problems with target platforms until I started using the latest
> Milestone from the upcoming Helios release. These problems basically made
> plugins completely disappear from the runtime/build environment if one or
> more plugin existed in multiple locations (which usually is the case when
> one tries to do RAP).
>
> But even if one uses the current milestone eclipse one has to "hack" some of
> the EMF plugins to make the dependencies to the eclipse.ui plugins
> optional. Otherwise these plugins won't work with RAP. I am not aware of
> any way to use unmodified EMF plugins (that have dependencies to eclipse.ui
> plugins) with RAP. EMF plugins that have no dependencies to eclipse.ui
> plugins work fine with RAP.
> There is a bugzilla entry for EMF RAP interoperatibility, but I assume
> someone would need to sponsor the RAP guys to work on that.
>
>> Thanks in advance.
>> Cheers.
>
> Lothar

Hi Lothar,

Thanks for your reply.

I think, this is the bugzilla entry that you mentioned.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988

And, there is not much improvement about this issue till now. I have
also asked "EMF in RAP" issue to RAP newsgroup but I didn't get any
useful reply from there until now. I try to use
AdapterFactoryLabelProvider and AdapterFactoryContentProvider classes.
But, they don't work. According to your answer, they don't work without
some hack. So, I should find some another way to do my task.

Anyway I will try the latest milestone of eclipse. I hope, it helps me
for bundle problems without EMF.


Best regards.
Re: How to set up cross/hybrid target platform for RCP and RAP plugins? [message #603987 is a reply to message #603986] Wed, 06 January 2010 17:33 Go to previous message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Fatih Ulusoy wrote:

> Hi Lothar,
>
> Thanks for your reply.
>
> I think, this is the bugzilla entry that you mentioned.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=213988
>
> And, there is not much improvement about this issue till now. I have
> also asked "EMF in RAP" issue to RAP newsgroup but I didn't get any
> useful reply from there until now. I try to use
> AdapterFactoryLabelProvider and AdapterFactoryContentProvider classes.
> But, they don't work. According to your answer, they don't work without
> some hack. So, I should find some another way to do my task.

The "hack" is quite easy, just make the dependencies to eclipse.ui* in the
affected plugins optional. This however requires that you always use/deploy
your RAP app with the hacked plugins and not use the regular EMF plugins.
The RCP does not need any hacked plugins, it works with the regular EMF
plugins.

As the RAP app is installed on the server that "hack" may be a workable
solution for you.

> Anyway I will try the latest milestone of eclipse. I hope, it helps me
> for bundle problems without EMF.
>
> Best regards.

Lothar
Previous Topic:issues with source plug-ins / features
Next Topic:Help Generating Javadoc For Eclipse API Restriction Tags
Goto Forum:
  


Current Time: Thu Mar 28 21:01:18 GMT 2024

Powered by FUDForum. Page generated in 0.03086 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top