Marshall Schor wrote:
> A user has reported a CDE failure when editing a aggregate descriptor
> that contains references to remote uima-as services.
>
> The CDE attempts to acquire the remote services "metadata" to merge type
> system information, and fails, because of a ClassCastException:
>
> org.apache.activemq.ActiveMQConnectionFactory cannot be cast to
> javax.jms.ConnectionFactory
>
> In looking into this, I've come across the project:
>
>     uimaj-as-osgi-runtime
>
> and need to understand this project better.  I think it was added to
> support the camel sandbox project.
>
> This project is set up in its POM with a parent pom which is the common
> superPom for all eclipse plugins. 
>
> It's also put into the Eclipse plugin directory by the uima-as-distr
> maven install step.
>
> However, it is not included in the Eclipse update site building, and is
> not part of any Uima Eclipse Feature.
>
> So - first question: is this supposed to be an eclipse plugin? 
>   

I'm concluding that it is not an Eclipse plugin - If I recall correctly,
it is an "osgi" bundle intended to be used as such, not within the
Eclipse environment.
> 2nd question: does it need to be added to any "feature" set? if so,
> which one?
>   

Because it's not part of Eclipse plugins, it doesn't need to be added to
any Eclipse feature, as far as I can determine.
> This project builds a jar which contains two jars:
> apache-activemq-4.1.1.jar and geronimo-jms_1.1_spec-1.0.jar, both of
> which have versions of the javax.jms.ConnectionFactory.
>
>   

I don't think it actually builds a jar containing both of these. 
Instead, it appears to "flatten" all the jars so no "jars" appear inside
of the main Jar, just all the classes.  This is done using the felix
maven bundle directive
<Embed-Dependency>*;scope=compile;inline=true</Embed-Dependency>.  If
you remove the inline=true, then it does build a Jar containing the 3
uima-as jars plus the apache-activemq-4.1.1 jar and the spring-2.0.6
jar.   (Caution: I'm not totally 100% sure that's what's happening,
because I've been fiddling with the POM and haven't restored it to its
original state - please post if this is incorrect)

> 3rd question: how to resolve this so that identical class names here
> don't cause issues?
>
>   

No need to resolve as far as I know.

-Marshall

Reply via email to