[jira] Created: (CAMEL-563) "cxf" name conflict in the spring context

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-563) "cxf" name conflict in the spring context

JIRA jira@apache.org
"cxf" name conflict in the spring context
-----------------------------------------

                 Key: CAMEL-563
                 URL: https://issues.apache.org/activemq/browse/CAMEL-563
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-cxf
            Reporter: Freeman Fang
             Fix For: 1.4.0


When I try to use camel-cxf component in smx4, I still get exceptions like
 Exception in thread "SpringOsgiExtenderThread-9" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf:bean:routerEndpoint due to: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
        at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:262)
        at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
        at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:90)
        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:98)
        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:104)
        at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:67)
        at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:73)
        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:204)
        at org.apache.camel.model.RouteType.addRoutes(RouteType.java:81)
        at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:451)
        at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:443)
        at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
        at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
        at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:271)
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:254)
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
        at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:149)
        at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:233)
        ... 22 more
Caused by: java.lang.IllegalArgumentException: Bean with name: cxf in registry is not a Component: org.apache.cxf.bus.CXFBusImpl@3ca56f
        at org.apache.camel.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:167)
        at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:138)
        ... 23 more


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-563) "cxf" name conflict in the spring context

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-563:
----------------------------------

    Assignee: Willem Jiang

> "cxf" name conflict in the spring context
> -----------------------------------------
>
>                 Key: CAMEL-563
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-563
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>            Reporter: Freeman Fang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> When I try to use camel-cxf component in smx4, I still get exceptions like
>  Exception in thread "SpringOsgiExtenderThread-9" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf:bean:routerEndpoint due to: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:262)
>         at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
>         at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:90)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:98)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:104)
>         at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:67)
>         at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:73)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:204)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:81)
>         at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:451)
>         at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:443)
>         at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
>         at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>         at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>         at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
>         at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:271)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:254)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:149)
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:233)
>         ... 22 more
> Caused by: java.lang.IllegalArgumentException: Bean with name: cxf in registry is not a Component: org.apache.cxf.bus.CXFBusImpl@3ca56f
>         at org.apache.camel.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:167)
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:138)
>         ... 23 more

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-563) "cxf" name conflict in the spring context

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-563 started by Willem Jiang.

> "cxf" name conflict in the spring context
> -----------------------------------------
>
>                 Key: CAMEL-563
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-563
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>            Reporter: Freeman Fang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> When I try to use camel-cxf component in smx4, I still get exceptions like
>  Exception in thread "SpringOsgiExtenderThread-9" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf:bean:routerEndpoint due to: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:262)
>         at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
>         at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:90)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:98)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:104)
>         at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:67)
>         at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:73)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:204)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:81)
>         at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:451)
>         at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:443)
>         at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
>         at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>         at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>         at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
>         at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:271)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:254)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:149)
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:233)
>         ... 22 more
> Caused by: java.lang.IllegalArgumentException: Bean with name: cxf in registry is not a Component: org.apache.cxf.bus.CXFBusImpl@3ca56f
>         at org.apache.camel.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:167)
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:138)
>         ... 23 more

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-563) "cxf" name conflict in the spring context

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-563.
--------------------------------

    Resolution: Fixed

we could let component be created by the resolver if we can't get the right component by looking up the context registry.
Please check it out.

> "cxf" name conflict in the spring context
> -----------------------------------------
>
>                 Key: CAMEL-563
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-563
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>            Reporter: Freeman Fang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> When I try to use camel-cxf component in smx4, I still get exceptions like
>  Exception in thread "SpringOsgiExtenderThread-9" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf:bean:routerEndpoint due to: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:262)
>         at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
>         at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:90)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:98)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:104)
>         at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:67)
>         at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:73)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:204)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:81)
>         at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:451)
>         at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:443)
>         at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
>         at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>         at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>         at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
>         at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:271)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:254)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:149)
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:233)
>         ... 22 more
> Caused by: java.lang.IllegalArgumentException: Bean with name: cxf in registry is not a Component: org.apache.cxf.bus.CXFBusImpl@3ca56f
>         at org.apache.camel.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:167)
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:138)
>         ... 23 more

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (CAMEL-563) "cxf" name conflict in the spring context

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang closed CAMEL-563.
------------------------------


> "cxf" name conflict in the spring context
> -----------------------------------------
>
>                 Key: CAMEL-563
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-563
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>            Reporter: Freeman Fang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> When I try to use camel-cxf component in smx4, I still get exceptions like
>  Exception in thread "SpringOsgiExtenderThread-9" org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxf:bean:routerEndpoint due to: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:262)
>         at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
>         at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:90)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:98)
>         at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:104)
>         at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:67)
>         at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:73)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:204)
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:81)
>         at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:451)
>         at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:443)
>         at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
>         at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>         at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>         at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>         at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>         at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
>         at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.finishRefresh(AbstractDelegatedExecutionApplicationContext.java:271)
>         at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:254)
>         at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.camel.RuntimeCamelException: Could not auto create component: cxf
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:149)
>         at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:233)
>         ... 22 more
> Caused by: java.lang.IllegalArgumentException: Bean with name: cxf in registry is not a Component: org.apache.cxf.bus.CXFBusImpl@3ca56f
>         at org.apache.camel.osgi.OsgiComponentResolver.resolveComponent(OsgiComponentResolver.java:167)
>         at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:138)
>         ... 23 more

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.