Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Is org.eclipse.ocl.* for equinox only?(Is there a way to make org.eclipse.ocl.* work in Felix?)
Is org.eclipse.ocl.* for equinox only? [message #1328265] Fri, 02 May 2014 15:57 Go to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 16
Registered: May 2014
Junior Member
Is there a way to make the org.eclipse.ocl.* clutch of bundles work in Felix?

I just encountered a very nasty surprise. I am using some third party bundles that depend on the org.eclipse.ocl.*, which in turn depend on org.eclipse.runtime. The bundles in question run nicely in equinox but not in Felix. Class casting exceptions arise when one tries this. The tragedy is I have other bundles that are fine in Felix but problematic in equinox. To top it off, Felix is my production platform.

I have been advised I may have to fix this myself.

Everything works great outside OSGi.

Thanks all
Re: Is org.eclipse.ocl.* for equinox only? [message #1328288 is a reply to message #1328265] Fri, 02 May 2014 16:12 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

As requested twice on the other newsgroup: what are the CCEs?

Saying you get a CCE is only fractionally more informative than the
legendary "it doesn't work".

See https://wiki.eclipse.org/OCL/ForumNetiquette

Regards

Ed Willink


On 02/05/2014 16:57, Geoffry Roberts wrote:
> Is there a way to make the org.eclipse.ocl.* clutch of bundles work in
> Felix?
>
> I just encountered a very nasty surprise. I am using some third party
> bundles that depend on the org.eclipse.ocl.*, which in turn depend on
> org.eclipse.runtime. The bundles in question run nicely in equinox but
> not in Felix. Class casting exceptions arise when one tries this. The
> tragedy is I have other bundles that are fine in Felix but problematic
> in equinox. To top it off, Felix is my production platform.
>
> I have been advised I may have to fix this myself.
> Everything works great outside OSGi.
>
> Thanks all
Re: Is org.eclipse.ocl.* for equinox only? [message #1328357 is a reply to message #1328288] Fri, 02 May 2014 16:58 Go to previous messageGo to next message
Geoffry Roberts is currently offline Geoffry RobertsFriend
Messages: 16
Registered: May 2014
Junior Member
Sorry for the disconnect. I didn't fetch to "CCE" right away--one of those overloaded acronyms.

The CCE in question is:

java.lang.ClassCastException: org.eclipse.ocl.internal.OCLPlugin$Implementation cannot be cast to org.osgi.framework.BundleActivator

The org.eclipse.ocl.* set of bundles list as either started or resolved. The CCE rises when I attempt to start anyone of them manually. The org.eclipse.runtime bundle does start, how ever.

Thanks for your patience
Re: Is org.eclipse.ocl.* for equinox only? [message #1328372 is a reply to message #1328357] Fri, 02 May 2014 17:07 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

You're really not trying.

How am I supposed to guess where this CCE occurs?

Exceptions have stack traces. See
https://wiki.eclipse.org/OCL/ForumNetiquette

Regards

Ed Willink


On 02/05/2014 17:58, Geoffry Roberts wrote:
> Sorry for the disconnect. I didn't fetch to "CCE" right away--one of
> those overloaded acronyms.
>
> The CCE in question is:
>
> java.lang.ClassCastException:
> org.eclipse.ocl.internal.OCLPlugin$Implementation cannot be cast to
> org.osgi.framework.BundleActivator
>
> The org.eclipse.ocl.* set of bundles list as either started or
> resolved. The CCE rises when I attempt to start anyone of them
> manually. The org.eclipse.runtime bundle does start, how ever.
>
> Thanks for your patience
Re: Is org.eclipse.ocl.* for equinox only? [message #1328381 is a reply to message #1328372] Fri, 02 May 2014 17:12 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

From the original newsgroup, it appears that the problem is an EMF one
and is being worked on:

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

Once that bug is fixed maybe other EMF-based projects can work too.

Regards

Ed Willink


On 02/05/2014 18:07, Ed Willink wrote:
> Hi
>
> You're really not trying.
>
> How am I supposed to guess where this CCE occurs?
>
> Exceptions have stack traces. See
> https://wiki.eclipse.org/OCL/ForumNetiquette
>
> Regards
>
> Ed Willink
>
>
> On 02/05/2014 17:58, Geoffry Roberts wrote:
>> Sorry for the disconnect. I didn't fetch to "CCE" right away--one of
>> those overloaded acronyms.
>>
>> The CCE in question is:
>>
>> java.lang.ClassCastException:
>> org.eclipse.ocl.internal.OCLPlugin$Implementation cannot be cast to
>> org.osgi.framework.BundleActivator
>>
>> The org.eclipse.ocl.* set of bundles list as either started or
>> resolved. The CCE rises when I attempt to start anyone of them
>> manually. The org.eclipse.runtime bundle does start, how ever.
>>
>> Thanks for your patience
>
Previous Topic:Using 'literal value' elements in OCL expressions
Next Topic:Using OCL derivation to compute a derived reference between two models from two different packages
Goto Forum:
  


Current Time: Tue Mar 19 03:42:21 GMT 2024

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

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

Back to the top