You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Setya <js...@gmail.com> on 2016/05/31 10:47:23 UTC

Blueprint and Custom Namespace

Hi all,

In my Spring based application, I use custom namespaces from certain
framework, for example:

<beans xmlns="http://www.springframework.org/schema/beans"
	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:axon="http://www.axonframework.org/schema/core"
	   xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
						   					 http://www.axonframework.org/schema/core
http://www.axonframework.org/schema/axon-core.xsd">

	<axon:annotation-config/>

</beans>

If I migrate to Blueprint would I be able to use the same custom namespace
as is ?

Any insight would be greatly appreciated.

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

Thanks. I've raised this  JIRA
<https://issues.apache.org/jira/browse/ARIES-1572>   issue.

Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046849.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Guillaume Nodet <gn...@apache.org>.
Yes, that config fails.  Feel free to raise a new JIRA issue.

2016-06-13 14:22 GMT+02:00 Setya <js...@gmail.com>:

> Hi Guillaume,
>
> This is how the classes are declared:
>
> public interface EventSqlSchema<T>
> public class GenericEventSqlSchema<T> implements EventSqlSchema<T>
> public class OrientDbEventSqlSchema extends GenericEventSqlSchema<byte[]>
>
> And below is the configuration:
>
> <bean id="sqlSchema"
> class="com.modulariti.eventstore.OrientDbEventSqlSchema">
>      <property name="forceUtc" value="true"/>
> </bean>
>
>
> Thanks & Regards,
> Setya
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046847.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

This is how the classes are declared:

public interface EventSqlSchema<T>
public class GenericEventSqlSchema<T> implements EventSqlSchema<T>
public class OrientDbEventSqlSchema extends GenericEventSqlSchema<byte[]>

And below is the configuration:

<bean id="sqlSchema"
class="com.modulariti.eventstore.OrientDbEventSqlSchema">
     <property name="forceUtc" value="true"/>
</bean>


Thanks & Regards,
Setya








--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046847.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Guillaume Nodet <gn...@apache.org>.
It looks like a different issue in your comment.
How is the sqlSchema bean defined ? Does the implementation class
implements EventSqlSchema<byte[]>  ?

2016-06-13 13:29 GMT+02:00 Setya <js...@gmail.com>:

> Hi Guillaume,
>
> I was referring to Blueprint parsing configuration problem if constructor
> parameter contains generics. Which is already solved according to this
> JIRA
> <https://issues.apache.org/jira/browse/ARIES-843>  , with fixed version
> blueprint-core-1.0.1.jar, nevertheless I'm still experiencing it with Karaf
> 4.0.5 which contains blueprint-core-1.6.1.jar
>
> Thanks & Regards,
> Setya
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046845.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

I was referring to Blueprint parsing configuration problem if constructor
parameter contains generics. Which is already solved according to this  JIRA
<https://issues.apache.org/jira/browse/ARIES-843>  , with fixed version
blueprint-core-1.0.1.jar, nevertheless I'm still experiencing it with Karaf
4.0.5 which contains blueprint-core-1.6.1.jar

Thanks & Regards,
Setya





--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046845.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

Sorry for this misunderstanding on my part.

I assume Karaf 4.0.5 already contains the fix since it has
blueprint-core-1.6.1 in it while in the JIRA the fix version is
blueprint-core-1.0.1.

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046831.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Guillaume Nodet <gn...@apache.org>.
Yes, the problem is fixed, but the fixed doesn't magically appear in Karaf
;-)
We'll have to wait for a release of the aries bundle, and then its
incorporation in Karaf.
Alternatively, you can deploy a snapshot in Karaf
   install mvn:org.apache.aries.blueprint/blueprint-spring/1.0.0-SNAPSHOT

Guillaume

2016-06-10 8:25 GMT+02:00 Setya <js...@gmail.com>:

> Hi Guillaume,
>
> Any update on this one ?
>
> The JIRA says it's been fixed but I'm still having problem in Karaf 4.0.5.
>
> Thanks & Regards,
> Setya
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046825.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

Any update on this one ?

The JIRA says it's been fixed but I'm still having problem in Karaf 4.0.5.

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046825.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi,

I've created this  JIRA <https://issues.apache.org/jira/browse/ARIES-1567>  
issue.

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046795.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Guillaume Nodet <gn...@apache.org>.
Could you raise a JIRA issue in the ARIES project ? I'll have a look.

2016-06-06 13:35 GMT+02:00 Setya <js...@gmail.com>:

> Hi Guillaume,
>
> I also experienced the following exception:
>
> /2016-06-06 14:45:15,112 | ERROR | nsole user karaf |
> BlueprintContainerImpl
> | 13 - org.apache.aries.blueprint.core - 1.6.1 | Unable to start blueprint
> container for bundle com.modulariti.eventstore/0.0.1
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name '__axon-annotation-command-handler-bean-post-processor': Cannot
> resolve reference to bean '__axon-parameter-resolver-factory' while setting
> bean property 'parameterResolverFactory'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> with name '__axon-parameter-resolver-factory': Invocation of init method
> failed; nested exception is java.lang.IllegalStateException:
> org.apache.aries.blueprint.spring.SpringApplicationContext@33268309 has
> not
> been refreshed yet
>         at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:687)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
>         at
>
> org.apache.aries.blueprint.spring.SpringApplicationContext.process(SpringApplicationContext.java:59)[153:org.apache.aries.blueprint.spring:0.2.0]
>         at
>
> org.apache.aries.blueprint.spring.SpringBeanProcessor.process(SpringBeanProcessor.java:56)[153:org.apache.aries.blueprint.spring:0.2.0]
>         at
>
> org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:569)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:395)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:276)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:300)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:269)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:265)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:255)[13:org.apache.aries.blueprint.core:1.6.1]
>         at
>
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[22:org.apache.aries.util:1.1.1]
>         at
>
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[22:org.apache.aries.util:1.1.1]
>         at
>
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[22:org.apache.aries.util:1.1.1]
>         at
>
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[22:org.apache.aries.util:1.1.1]
>         at
>
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[22:org.apache.aries.util:1.1.1]
>         at
>
> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:731)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:486)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.Felix.activateBundle(Felix.java:2216)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.Felix.startBundle(Felix.java:2144)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)[org.apache.felix.framework-5.4.0.jar:]
>         at
>
> org.apache.karaf.bundle.command.Install.execute(Install.java:96)[24:org.apache.karaf.bundle.core:4.0.5]
>         at
>
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[44:org.apache.karaf.shell.core:4.0.5]
>         at
>
> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:270)[44:org.apache.karaf.shell.core:4.0.5]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '__axon-parameter-resolver-factory': Invocation of
> init method failed; nested exception is java.lang.IllegalStateException:
> org.apache.aries.blueprint.spring.SpringApplicationContext@33268309 has
> not
> been refreshed yet
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         ... 45 more
> Caused by: java.lang.IllegalStateException:
> org.apache.aries.blueprint.spring.SpringApplicationContext@33268309 has
> not
> been refreshed yet
>         at
>
> org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1041)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1161)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
>         at
>
> org.axonframework.contextsupport.spring.ApplicationContextLookupParameterResolverFactory.afterPropertiesSet(ApplicationContextLookupParameterResolverFactory.java:76)[115:org.axonframework.axon-core:2.4.3]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
>         ... 52 more/
>
> While my Blueprint config is as simple as:
>
> /<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>                                          xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>                                    xmlns:axon="
> http://www.axonframework.org/schema/core"
>                                          xsi:schemaLocation="
> http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>
>
> http://www.axonframework.org/schema/core
> http://www.axonframework.org/schema/axon-core.xsd">
>
>         <axon:annotation-config/>
> </blueprint>/
>
> Any help would greatly appreciated.
>
> Thanks & Regards,
> Setya
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046791.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

I also experienced the following exception:

/2016-06-06 14:45:15,112 | ERROR | nsole user karaf | BlueprintContainerImpl          
| 13 - org.apache.aries.blueprint.core - 1.6.1 | Unable to start blueprint
container for bundle com.modulariti.eventstore/0.0.1
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '__axon-annotation-command-handler-bean-post-processor': Cannot
resolve reference to bean '__axon-parameter-resolver-factory' while setting
bean property 'parameterResolverFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '__axon-parameter-resolver-factory': Invocation of init method
failed; nested exception is java.lang.IllegalStateException:
org.apache.aries.blueprint.spring.SpringApplicationContext@33268309 has not
been refreshed yet
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
	at
org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:687)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
	at
org.apache.aries.blueprint.spring.SpringApplicationContext.process(SpringApplicationContext.java:59)[153:org.apache.aries.blueprint.spring:0.2.0]
	at
org.apache.aries.blueprint.spring.SpringBeanProcessor.process(SpringBeanProcessor.java:56)[153:org.apache.aries.blueprint.spring:0.2.0]
	at
org.apache.aries.blueprint.container.BlueprintContainerImpl.processProcessors(BlueprintContainerImpl.java:569)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:395)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:276)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:300)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:269)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:265)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:255)[13:org.apache.aries.blueprint.core:1.6.1]
	at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[22:org.apache.aries.util:1.1.1]
	at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[22:org.apache.aries.util:1.1.1]
	at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[22:org.apache.aries.util:1.1.1]
	at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[22:org.apache.aries.util:1.1.1]
	at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[22:org.apache.aries.util:1.1.1]
	at
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:731)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:486)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4541)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.Felix.activateBundle(Felix.java:2216)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.Felix.startBundle(Felix.java:2144)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)[org.apache.felix.framework-5.4.0.jar:]
	at
org.apache.karaf.bundle.command.Install.execute(Install.java:96)[24:org.apache.karaf.bundle.core:4.0.5]
	at
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[44:org.apache.karaf.shell.core:4.0.5]
	at
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:270)[44:org.apache.karaf.shell.core:4.0.5]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '__axon-parameter-resolver-factory': Invocation of
init method failed; nested exception is java.lang.IllegalStateException:
org.apache.aries.blueprint.spring.SpringApplicationContext@33268309 has not
been refreshed yet
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	... 45 more
Caused by: java.lang.IllegalStateException:
org.apache.aries.blueprint.spring.SpringApplicationContext@33268309 has not
been refreshed yet
	at
org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1041)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
	at
org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1161)[103:org.apache.servicemix.bundles.spring-context:4.2.5.RELEASE_1]
	at
org.axonframework.contextsupport.spring.ApplicationContextLookupParameterResolverFactory.afterPropertiesSet(ApplicationContextLookupParameterResolverFactory.java:76)[115:org.axonframework.axon-core:2.4.3]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)[102:org.apache.servicemix.bundles.spring-beans:4.2.5.RELEASE_1]
	... 52 more/

While my Blueprint config is as simple as:

/<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
					 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
				   xmlns:axon="http://www.axonframework.org/schema/core"
					 xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
															 http://www.axonframework.org/schema/core
http://www.axonframework.org/schema/axon-core.xsd">

	<axon:annotation-config/>
</blueprint>/

Any help would greatly appreciated.

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046791.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi Guillaume,

Thank you very much for your useful Maven bundle. This seems to be the only
option to use Spring custom namespace in Blueprint.

Currently I'm using Apache Karaf 4.0.5, but it seems to have problem wiring
constructor containing parameters with generic.

I detailed my explanation in  this JIRA
<https://issues.apache.org/jira/browse/ARIES-843>  .

Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046775.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Guillaume Nodet <gn...@apache.org>.
If you have a custom spring namespace, you can use it from blueprint by
importing your whole spring xml as part of the blueprint application, or
just a few elements.
Look at the following example:

https://github.com/apache/aries/blob/trunk/blueprint/blueprint-testbundles/src/main/resources/OSGI-INF/blueprint/config.xml

2016-05-31 14:52 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> Yes, Guillaume added it recently: the purpose is to "wrap" most of Spring
> namespace as Blueprint namespace.
>
> Regards
> JB
>
>
> On 05/31/2016 02:35 PM, Setya wrote:
>
>> Hi,
>>
>> Thank you for your clarification.
>>
>> I've found bundle org.apache.aries.blueprint.spring, is this bundle
>> supposed
>> to enable Blueprint to recognize Spring's custom namespace ?
>>
>> Thanks & Regards,
>> Setya
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046739.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Blueprint and Custom Namespace

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, Guillaume added it recently: the purpose is to "wrap" most of 
Spring namespace as Blueprint namespace.

Regards
JB

On 05/31/2016 02:35 PM, Setya wrote:
> Hi,
>
> Thank you for your clarification.
>
> I've found bundle org.apache.aries.blueprint.spring, is this bundle supposed
> to enable Blueprint to recognize Spring's custom namespace ?
>
> Thanks & Regards,
> Setya
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046739.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Blueprint and Custom Namespace

Posted by Setya <js...@gmail.com>.
Hi,

Thank you for your clarification.

I've found bundle org.apache.aries.blueprint.spring, is this bundle supposed
to enable Blueprint to recognize Spring's custom namespace ?

Thanks & Regards,
Setya



--
View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737p4046739.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Blueprint and Custom Namespace

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Setya,

unfortunately it won't work as it's different namespace handler.

To work with blueprint, a framework providing a namespace should provide 
a blueprint namespace handler.

Regards
JB

On 05/31/2016 12:47 PM, Setya wrote:
> Hi all,
>
> In my Spring based application, I use custom namespaces from certain
> framework, for example:
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> 	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	   xmlns:axon="http://www.axonframework.org/schema/core"
> 	   xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> 						   					 http://www.axonframework.org/schema/core
> http://www.axonframework.org/schema/axon-core.xsd">
>
> 	<axon:annotation-config/>
>
> </beans>
>
> If I migrate to Blueprint would I be able to use the same custom namespace
> as is ?
>
> Any insight would be greatly appreciated.
>
> Thanks & Regards,
> Setya
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Blueprint-and-Custom-Namespace-tp4046737.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com