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 Mon, 27 Feb 2017 08:33:54 GMT
Yep - thanks Claus to point it out, just realized it was not tomee@ ;),

just to answer the two previous points before you switch and people can be
without answer later:

1. <property name="hibernate.transaction.jta.platform"
value="org.hibernate.service.jta.platform.internal.SunOneJtaPlatform" />
means glassfish (check the javadoc "
org.hibernate.service.jta.platform.spi.JtaPlatform
<http://grepcode.com/file/repo1.maven.org/maven2/org.hibernate/hibernate-core/4.2.0.Final/org/hibernate/service/jta/platform/spi/JtaPlatform.java#JtaPlatform>
implementation
for Sun ONE Application Server 7 and above")
2. if you delete the jars from tomee you need to switch off tomee cxf usage



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-27 9:11 GMT+01:00 Claus Ibsen <claus.ibsen@gmail.com>:

> Hi
>
> Can you ask on Apache TomEE mailing list / user forum.
> This problem you have is not Apache Camel specific and its better to
> talk to TomEE.
>
>
> On Mon, Feb 27, 2017 at 7:35 AM, syadav <b.srisailam@gmail.com> wrote:
> > And also is this the only solution to delete the cxf related files from
> tomee
> > lib. Because this may me deployed in many servers(production servers)
> and I
> > cannot delete cxf related jars from all the instances. And also I am
> getting
> > the following error when I do so but application is getting started
> > properly.  But could not know due to this error some functionality works
> or
> > not .
> >
> > java.lang.NoClassDefFoundError: org/apache/cxf/transport/
> DestinationFactory
> >         at java.lang.Class.getDeclaredConstructors0(Native Method)
> >         at java.lang.Class.privateGetDeclaredConstructors
> (Class.java:2671)
> >         at java.lang.Class.getConstructors(Class.java:1651)
> >         at
> > org.apache.xbean.recipe.ReflectionUtil.findConstructor(
> ReflectionUtil.java:604)
> >         at org.apache.xbean.recipe.ObjectRecipe.findFactory(
> ObjectRecipe.java:563)
> >         at
> > org.apache.xbean.recipe.ObjectRecipe.internalCreate(
> ObjectRecipe.java:274)
> >         at org.apache.xbean.recipe.AbstractRecipe.create(
> AbstractRecipe.java:96)
> >         at org.apache.xbean.recipe.AbstractRecipe.create(
> AbstractRecipe.java:61)
> >         at
> > org.apache.openejb.server.ServiceManager.initServer(
> ServiceManager.java:159)
> >         at
> > org.apache.openejb.server.ServiceManager.initServers(
> ServiceManager.java:90)
> >         at
> > org.apache.openejb.server.SimpleServiceManager.init(
> SimpleServiceManager.java:149)
> >         at org.apache.tomee.catalina.TomcatLoader.initialize(
> TomcatLoader.java:283)
> >         at
> > org.apache.tomee.catalina.ServerListener.lifecycleEvent(
> ServerListener.java:168)
> >         at
> > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:94)
> >         at
> > org.apache.catalina.util.LifecycleBase.setStateInternal(
> LifecycleBase.java:401)
> >         at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:115)
> >         at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
> >         at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> >         at java.lang.reflect.Method.invoke(Method.java:498)
> >         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:
> 311)
> >         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
> 494)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.cxf.transport.DestinationFactory
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >         ... 24 more
> >
> > 27-Feb-2017 11:57:12.587 INFO [main]
> > org.apache.openejb.server.ServiceManager.initServer Creating
> > ServerService(id=cxf-rs)
> > 27-Feb-2017 11:57:12.649 SEVERE [main]
> > org.apache.openejb.server.ServiceManager.initServer
> > service.instantiation.err
> >  java.lang.NoClassDefFoundError: org/apache/cxf/binding/BindingFactory
> >         at java.lang.Class.getDeclaredConstructors0(Native Method)
> >         at java.lang.Class.privateGetDeclaredConstructors
> (Class.java:2671)
> >         at java.lang.Class.getConstructors(Class.java:1651)
> >         at
> > org.apache.xbean.recipe.ReflectionUtil.findConstructor(
> ReflectionUtil.java:604)
> >         at org.apache.xbean.recipe.ObjectRecipe.findFactory(
> ObjectRecipe.java:563)
> >         at
> > org.apache.xbean.recipe.ObjectRecipe.internalCreate(
> ObjectRecipe.java:274)
> >         at org.apache.xbean.recipe.AbstractRecipe.create(
> AbstractRecipe.java:96)
> >         at org.apache.xbean.recipe.AbstractRecipe.create(
> AbstractRecipe.java:61)
> >         at
> > org.apache.openejb.server.ServiceManager.initServer(
> ServiceManager.java:159)
> >         at
> > org.apache.openejb.server.ServiceManager.initServers(
> ServiceManager.java:90)
> >         at
> > org.apache.openejb.server.SimpleServiceManager.init(
> SimpleServiceManager.java:149)
> >         at org.apache.tomee.catalina.TomcatLoader.initialize(
> TomcatLoader.java:283)
> >         at
> > org.apache.tomee.catalina.ServerListener.lifecycleEvent(
> ServerListener.java:168)
> >         at
> > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:94)
> >         at
> > org.apache.catalina.util.LifecycleBase.setStateInternal(
> LifecycleBase.java:401)
> >         at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:115)
> >         at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
> >         at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> >         at java.lang.reflect.Method.invoke(Method.java:498)
> >         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:
> 311)
> >         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
> 494)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.cxf.binding.BindingFactory
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >         ... 24 more
> >
> >
> >
> > --
> > View this message in context: http://camel.465427.n5.nabble.
> com/Camel-CXF-in-tomee-tp5794355p5794487.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

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