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 Sun, 26 Feb 2017 11:05:15 GMT
This is a misconfiguration of hibernate. Remove the lookup manager or
transaction platform config to let tomee set it

Le 26 févr. 2017 09:47, "syadav" <b.srisailam@gmail.com> a écrit :

> Actually there are many jar files duplicate with respective to tomee and my
> application eg cxf-core-3.1.6 in tomee and cxf-core-3.1.9 in my
> application.
> There are some 10 -15 jar files are same with different version. I want
> tomee to use my jars but I think tomee is trying to call the classes from
> its own jars.
> And also camel-cxf jar is not available in tomee but may application has
> this. But when I am adding this jar tomee is not at all starting. When I
> excluded this using exclusions.list tomee is starting but with error which
> I
> mentioned above posts. When I tried to run tomee by removing the duplicate
> files from my application and adding camel-cxf in exclusions.list I am
> getting the following error.
> Please help in resolving this.
>
> EjbTransactionUtil.handleSystemException: Unable to lookup JNDI name
> [java:appserver/TransactionManager]
>  org.hibernate.engine.jndi.JndiException: Unable to lookup JNDI name
> [java:appserver/TransactionManager]
>         at
> org.hibernate.engine.jndi.internal.JndiServiceImpl.
> locate(JndiServiceImpl.java:100)
>         at
> org.hibernate.engine.transaction.jta.platform.internal.SunOneJtaPlatform.
> locateTransactionManager(SunOneJtaPlatform.java:26)
>         at
> org.hibernate.engine.transaction.jta.platform.
> internal.AbstractJtaPlatform.retrieveTransactionManager(
> AbstractJtaPlatform.java:87)
>         at
> org.hibernate.engine.transaction.jta.platform.
> internal.AbstractJtaPlatform.getTransactionManager(
> AbstractJtaPlatform.java:98)
>         at
> org.hibernate.engine.transaction.jta.platform.internal.
> TransactionManagerBasedSynchronizationStrategy.canRegisterSynchronization(
> TransactionManagerBasedSynchronizationStrategy.java:39)
>         at
> org.hibernate.engine.transaction.jta.platform.
> internal.AbstractJtaPlatform.canRegisterSynchronization(
> AbstractJtaPlatform.java:131)
>         at
> org.hibernate.resource.transaction.backend.jta.internal.
> JtaTransactionCoordinatorImpl.pulse(JtaTransactionCoordinatorImpl.
> java:141)
>         at
> org.hibernate.resource.transaction.backend.jta.internal.
> JtaTransactionCoordinatorImpl.<init>(JtaTransactionCoordinatorImpl.
> java:92)
>         at
> org.hibernate.resource.transaction.backend.jta.internal.
> JtaTransactionCoordinatorBuilderImpl.buildTransactionCoordinator(
> JtaTransactionCoordinatorBuilderImpl.java:28)
>         at org.hibernate.internal.SessionImpl.<init>(SessionImpl.java:274)
>         at
> org.hibernate.internal.SessionFactoryImpl$SessionBuilderImpl.openSession(
> SessionFactoryImpl.java:1327)
>         at
> org.hibernate.jpa.internal.EntityManagerImpl.internalGetSession(
> EntityManagerImpl.java:133)
>         at
> org.hibernate.jpa.spi.AbstractEntityManagerImpl.postInit(
> AbstractEntityManagerImpl.java:174)
>         at
> org.hibernate.jpa.internal.EntityManagerImpl.<init>(
> EntityManagerImpl.java:83)
>         at
> org.hibernate.jpa.internal.EntityManagerFactoryImpl.
> internalCreateEntityManager(EntityManagerFactoryImpl.java:319)
>         at
> org.hibernate.jpa.internal.EntityManagerFactoryImpl.createEntityManager(
> EntityManagerFactoryImpl.java:286)
>         at
> com.xxxxxcorp.yyyyy.dao.impl.PersistenceManager.getManager(
> PersistenceManager.java:12)
>         at
> com.xxxxxcorp.yyyyy.dao.impl.AuthenticationParametersDAO.
> getAuthenticationParameters(AuthenticationParametersDAO.java:22)
>         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.openejb.core.interceptor.ReflectionInvocationContext$
> Invocation.invoke(ReflectionInvocationContext.java:205)
>         at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(
> ReflectionInvocationContext.java:186)
>         at
> org.apache.openejb.monitoring.StatsInterceptor.record(
> StatsInterceptor.java:181)
>         at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(
> StatsInterceptor.java:100)
>         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.openejb.core.interceptor.ReflectionInvocationContext$
> Invocation.invoke(ReflectionInvocationContext.java:205)
>         at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(
> ReflectionInvocationContext.java:186)
>         at
> org.apache.openejb.core.interceptor.InterceptorStack.
> invoke(InterceptorStack.java:85)
>         at
> org.apache.openejb.core.stateless.StatelessContainer._
> invoke(StatelessContainer.java:236)
>         at
> org.apache.openejb.core.stateless.StatelessContainer.
> invoke(StatelessContainer.java:203)
>         at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.
> synchronizedBusinessMethod(EjbObjectProxyHandler.java:265)
>         at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(
> EjbObjectProxyHandler.java:260)
>         at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(
> EjbObjectProxyHandler.java:89)
>         at
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(
> BaseEjbProxyHandler.java:347)
>         at com.sun.proxy.$Proxy146.getAuthenticationParameters(Unknown
> Source)
>         at
> com.xxxxxcorp.yyyyy.service.impl.AuthenticationParametersServic
> e.getParameter(AuthenticationParametersService.java:69)
>         at
> com.xxxxxcorp.yyyyy.service.impl.AuthenticationParametersServic
> e.getParementersWithResponse(AuthenticationParametersService.java:78)
>         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.openejb.core.interceptor.ReflectionInvocationContext$
> Invocation.invoke(ReflectionInvocationContext.java:205)
>         at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(
> ReflectionInvocationContext.java:186)
>         at
> org.apache.openejb.monitoring.StatsInterceptor.record(
> StatsInterceptor.java:181)
>         at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(
> StatsInterceptor.java:100)
>         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.openejb.core.interceptor.ReflectionInvocationContext$
> Invocation.invoke(ReflectionInvocationContext.java:205)
>         at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(
> ReflectionInvocationContext.java:186)
>         at
> org.apache.openejb.core.interceptor.InterceptorStack.
> invoke(InterceptorStack.java:85)
>         at
> org.apache.openejb.core.stateless.StatelessContainer._
> invoke(StatelessContainer.java:236)
>         at
> org.apache.openejb.core.stateless.StatelessContainer.
> invoke(StatelessContainer.java:203)
>         at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.
> synchronizedBusinessMethod(EjbObjectProxyHandler.java:265)
>         at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(
> EjbObjectProxyHandler.java:260)
>         at
> org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(
> EjbObjectProxyHandler.java:89)
>         at
> org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(
> BaseEjbProxyHandler.java:347)
>         at com.sun.proxy.$Proxy143.getParementersWithResponse(Unknown
> Source)
>         at
> com.xxxxxcorp.yyyyy.aua.rest.AUAServiceREST.getParameter(
> AUAServiceREST.java:56)
>         at
> com.xxxxxcorp.yyyyy.aua.rest.AUAServiceREST$$OwbNormalScopeProxy0.
> getParameter(com/xxxxxcorp/yyyyy/aua/rest/AUAServiceREST.java)
>         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.cxf.service.invoker.AbstractInvoker.performInvocation(
> AbstractInvoker.java:180)
>         at
> org.apache.cxf.service.invoker.AbstractInvoker.
> invoke(AbstractInvoker.java:96)
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:189)
>         at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)
>         at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.
> run(ServiceInvokerInterceptor.java:59)
>         at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(
> ServiceInvokerInterceptor.java:96)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:308)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> ChainInitiationObserver.java:121)
>         at
> org.apache.camel.component.cxf.cxfbean.CxfBeanDestination.process(
> CxfBeanDestination.java:83)
>         at
> org.apache.camel.impl.ProcessorEndpoint.onExchange(
> ProcessorEndpoint.java:103)
>         at
> org.apache.camel.impl.ProcessorEndpoint$1.process(
> ProcessorEndpoint.java:71)
>         at
> org.apache.camel.util.AsyncProcessorConverterHelper$
> ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.
> java:61)
>         at org.apache.camel.processor.SendProcessor.process(
> SendProcessor.java:145)
>         at
> org.apache.camel.management.InstrumentationProcessor.process(
> InstrumentationProcessor.java:77)
>         at
> org.apache.camel.processor.RedeliveryErrorHandler.process(
> RedeliveryErrorHandler.java:542)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(
> CamelInternalProcessor.java:197)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:120)
>         at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)
>         at
> org.apache.camel.processor.CamelInternalProcessor.process(
> CamelInternalProcessor.java:197)
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.process(
> DelegateAsyncProcessor.java:97)
>         at
> org.apache.camel.http.common.CamelServlet.doService(CamelServlet.java:195)
>         at org.apache.camel.http.common.CamelServlet.service(
> CamelServlet.java:74)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:230)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:192)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at org.apache.openejb.server.httpd.EEFilter.doFilter(
> EEFilter.java:65)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:192)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:198)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:108)
>         at org.apache.tomee.catalina.OpenEJBValve.invoke(
> OpenEJBValve.java:44)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:522)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:140)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:79)
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(
> AbstractAccessLogValve.java:620)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:87)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:349)
>         at
> org.apache.coyote.http11.Http11Processor.service(
> Http11Processor.java:1110)
>         at
> org.apache.coyote.AbstractProcessorLight.process(
> AbstractProcessorLight.java:66)
>         at
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
> AbstractProtocol.java:785)
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1425)
>         at
> org.apache.tomcat.util.net.SocketProcessorBase.run(
> SocketProcessorBase.java:52)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.naming.NameNotFoundException: Name
> "appserver/TransactionManager" not found.
>         at
> org.apache.openejb.core.ivm.naming.IvmContext.federate(
> IvmContext.java:199)
>         at
> org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:151)
>         at
> org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:291)
>         at
> org.apache.openejb.core.ivm.ContextHandler.lookup(ContextHandler.java:40)
>         at org.apache.tomee.catalina.OpenEJBContext.lookup(
> OpenEJBContext.java:44)
>         at org.apache.naming.SelectorContext.lookup(
> SelectorContext.java:140)
>         at javax.naming.InitialContext.lookup(InitialContext.java:421)
>         at
> org.hibernate.engine.jndi.internal.JndiServiceImpl.
> locate(JndiServiceImpl.java:97)
>         ... 118 more
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/Camel-CXF-in-tomee-tp5794355p5794475.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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