Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » how to prevent double loading of blueprint extender (one loaded in kernel and one in user)
how to prevent double loading of blueprint extender (one loaded in kernel and one in user) [message #954880] Tue, 23 October 2012 06:19 Go to previous message
Yousef Fadila is currently offline Yousef Fadila
Messages: 14
Registered: October 2012
Junior Member
Hi All.

I face a lot of "class Cast exception" and type incompatible issues. when trying to inject blueprintcontainer and blueprintcontainer context caused, I assume, because of double loading to the blueprint extender interface in both kernel and user regions.

Some I solve by moving to reflection,(Inject to type object to bypass casting) but I want a solution for all. I can't change all jars to reflection.

for example now I have this problem when deploying the logger bundle.

[2012-10-23 19:33:09.424] INFO fs-watcher o.e.g.blueprint.extender.internal.activator.LifecycleManager Bundle logger is not type compatible with extender gemini-blueprint-extender; ignoring bundle...

Here is the bean created in its blueprint
<bean id="loggerManagerFactory" class="com.xxx.xxx.infra.core.logger.common.DefaultLoggerManagerFactory" >
<property name="loggerPrototypeId" value="logger-mgr-impl"/>
<property name="blueprintContainer" ref="blueprintContainer"/>
</bean>

<bean id="logger-mgr-impl" class="com.xxx.xxx.infra.core.logger.log4j.manager.Log4jLoggerManager" scope="prototype">
<property name="bundleContext" ref="blueprintBundleContext"/>
</bean>



any advice how can I solve this once for all jars?


Thanks
Fadila Yousef

[Updated on: Wed, 07 November 2012 04:56]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Can I import and export services when I'm using Virgo Snaps?
Next Topic:Deploy WAR to VTS
Goto Forum:
  


Current Time: Wed May 22 18:00:06 EDT 2013

Powered by FUDForum. Page generated in 1.95536 seconds