camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Camel-CXF in tomee
Date Thu, 23 Feb 2017 14:15:33 GMT
Hi,

probably remove the cxf libs from the webapp when already in the container
or enforce cxf jars to be excluded (and probably camel ones) from the
scanning


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-02-23 15:05 GMT+01:00 syadav <b.srisailam@gmail.com>:

> I am facing a issue when I am deploying my project in tomee. This is
> working
> fine in glashfish 4.
> I even tried to deploy a empty sample application where only a jar
> camel-cxf
> is added. Then tomee is not able to start gives following error.
>
> SEVERE - Unable to deploy collapsed ear in war
> StandardEngine[Catalina].StandardHost[localhost].Stan
> dardContext[/XXXXX]
> org.apache.openejb.OpenEJBException: Can't find resource for class
> org.apache.cxf.databinding.Abstra
> ctDataBinding#bus. (No provider available for resource-ref 'null' of type
> 'org.apache.cxf.Bus' for '
> XXXXX.Comp14390114'.)
>         at
> org.apache.openejb.config.AutoConfig.processResourceRef(
> AutoConfig.java:1202)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.
> java:859)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.
> java:186)
>         at
> org.apache.openejb.config.ConfigurationFactory$Chain.
> deploy(ConfigurationFactory.java:419
> )
>         at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.
> java:1032)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1235
> )
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
> TomcatWebAppBuilder.java:111
> 5)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
> GlobalListenerSupport.java
> :133)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:94)
>         at
> org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5076)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:726)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectory(
> HostConfig.java:1107)
>         at
> org.apache.catalina.startup.HostConfig$DeployDirectory.
> run(HostConfig.java:1841)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> SEVERE - ContainerBase.removeChild: destroy:
> org.apache.catalina.LifecycleException: An invalid Lifecycle transition
> was
> attempted ([before_destr
> oy]) for component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/XXXXX]]
> in state [STARTING_PREP]
>         at
> org.apache.catalina.util.LifecycleBase.invalidTransition(
> LifecycleBase.java:408)
>         at
> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:296)
>         at
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:828)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(
> TomcatWebAppBuilder.java:1586)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(
> TomcatWebAppBuilder.java:1566)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1266
> )
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
> TomcatWebAppBuilder.java:111
> 5)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
> GlobalListenerSupport.java
> :133)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:94)
>         at
> org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5076)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:726)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectory(
> HostConfig.java:1107)
>         at
> org.apache.catalina.startup.HostConfig$DeployDirectory.
> run(HostConfig.java:1841)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> SEVERE - ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].Standard
> Host[localhost].StandardContext[/XXXXX]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:726)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectory(
> HostConfig.java:1107)
>         at
> org.apache.catalina.startup.HostConfig$DeployDirectory.
> run(HostConfig.java:1841)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.openejb.OpenEJBException: Can
> 't find resource for class
> org.apache.cxf.databinding.AbstractDataBinding#bus. (No provider availabl
> e for resource-ref 'null' of type 'org.apache.cxf.Bus' for
> 'XXXXX.Comp14390114'.)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1269
> )
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
> TomcatWebAppBuilder.java:111
> 5)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
> GlobalListenerSupport.java
> :133)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:94)
>         at
> org.apache.catalina.core.StandardContext.startInternal(
> StandardContext.java:5076)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
>         ... 10 more
> Caused by: org.apache.openejb.OpenEJBException: Can't find resource for
> class org.apache.cxf.databin
> ding.AbstractDataBinding#bus. (No provider available for resource-ref
> 'null'
> of type 'org.apache.cxf
> .Bus' for 'XXXXX.Comp14390114'.)
>         at
> org.apache.openejb.config.AutoConfig.processResourceRef(
> AutoConfig.java:1202)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.
> java:859)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.
> java:186)
>         at
> org.apache.openejb.config.ConfigurationFactory$Chain.
> deploy(ConfigurationFactory.java:419
> )
>         at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.
> java:1032)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1235
> )
>         ... 15 more
> SEVERE - Error deploying web application directory
> D:\bbbb\tomee\webapps\XXXXX
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleExcepti
> on: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/XXXXX]]
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:730)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
>         at
> org.apache.catalina.startup.HostConfig.deployDirectory(
> HostConfig.java:1107)
>         at
> org.apache.catalina.startup.HostConfig$DeployDirectory.
> run(HostConfig.java:1841)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/Camel-CXF-in-tomee-tp5794355.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message