Hello,

I'm building an OSGI app with felix and blueprint  based on
aries-1.0.0 and I get the class cast exception which I pasted bellow.
I searched on the mailing list and found another discussion but no
apparent solution.

I'm pretty new to OSGI, especially aries so could you please explain
what I'm doing wrong?

12.11.2012 12:57:33.689 *INFO* [Blueprint Extender: 3]
org.apache.aries.blueprint.container.BlueprintContainerImpl Bundle
com.axemblr.provisionr.engine is waiting for namespace handlers
[http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0]
12.11.2012 12:57:33.689 *INFO* [Blueprint Extender: 3]
org.apache.aries.blueprint.container.BlueprintContainerImpl Bundle
com.axemblr.provisionr.engine is waiting for namespace handlers
[http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0]

ERROR: Bundle org.apache.aries.blueprint.core [15] EventDispatcher:
Error during dispatch. (java.lang.ClassCastException:
org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast
to org.apache.aries.blueprint.NamespaceHandler)
java.lang.ClassCastException:
org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler cannot be cast
to org.apache.aries.blueprint.NamespaceHandler
        at 
org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.addingService(NamespaceHandlerRegistryImpl.java:101)
        at 
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)

The list of aries dependencies I load into OSGi:

org.apache.aries.blueprint-1.0.0.jar
org.apache.aries.blueprint.api-1.0.0.jar
org.apache.aries.blueprint.core-1.0.0.jar
org.apache.aries.proxy-1.0.0.jar
org.apache.aries.transaction.manager-1.0.0.jar
org.apache.aries.util-1.0.0.jar

Thanks,

-- 
Ioan Eugen Stan / CTO / http://axemblr.com
  • [no subject] Ioan Eugen Stan
    • Re: Christian Schneider
      • Re: Ioan Eugen Stan
        • Re: Ivanhoe Abrahams
          • Re: Ioan Eugen Stan
            • Re: Tom Mercelis

Reply via email to