[Resolved] bonita in jboss server 5 error user xp mode ejb

yamilj's picture
Post submitted by yamilj Tue, 09/28/2010 - 16:47

Hi.



my envoriment:



BONITA_OPTS="-Dorg.ow2.bonita.environment=/home/usuario/jboss-5.1.0.GA/server/default/conf/bonita-environment.xml -Dorg.ow2.bonita.api-type=EJB3"

SECURITY_OPTS="-Djava.security.auth.login.config=/home/usuario/jboss-5.1.0.GA/server/default/conf/jaas-standard.cfg"



I delete xercesImpl-2.6.2.jar.



this is the error:



2010-09-28 09:46:07,655 INFO [org.hibernate.cfg.SettingsFactory] (http-127.0.0.1-8080-1) Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge

2010-09-28 09:46:07,656 INFO [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] (http-127.0.0.1-8080-1) Cache provider: org.hibernate.cache.EhCacheProvider

2010-09-28 09:46:07,720 SEVERE [org.ow2.bonita.util.Misc] (http-127.0.0.1-8080-1) error : couldn't interpret the dom model : org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]. Cause: org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]

2010-09-28 09:46:07,762 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bonitaconsole].[org.bonitasoft.console.security.server.CredentialsEncryptionServlet/security/credentialsencryption]] (http-127.0.0.1-8080-1) Servlet.service() para servlet org.bonitasoft.console.security.server.CredentialsEncryptionServlet/security/credentialsencryption lanzó excepción

org.ow2.bonita.util.BonitaRuntimeException: Bonita Error: bp_Pa_1

errors during parsing of environment:

error : couldn't interpret the dom model : org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]



at org.ow2.bonita.util.Misc.showProblems(Misc.java:1851)

at org.ow2.bonita.env.BonitaEnvironmentParser.parseEnvironmentFactoryFromXmlString(BonitaEnvironmentParser.java:88)

at org.ow2.bonita.env.GlobalEnvironmentFactory.getEnvironmentFactory(GlobalEnvironmentFactory.java:113)

at org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:115)

at $Proxy287.generateTemporaryToken(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.ow2.bonita.facade.interceptor.EJB3Interceptor.performInterception(EJB3Interceptor.java:53)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:83)

at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:70)

at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:59)

at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)

at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)



thanks.

Comments

Submitted by yamilj Tue, 09/28/2010 - 19:01

I add the bonita jar to folder lob of jboss, and it show me another error:



11:30:57,096 ERROR [JDBCTransaction] JDBC commit failed

java.sql.SQLException: You cannot commit during a managed transaction!

at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:659)

at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:486)

at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)

at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)

at org.ow2.bonita.runtime.tx.HibernateSessionResource.commit(HibernateSessionResource.java:74)

at org.ow2.bonita.runtime.tx.StandardTransaction.commit(StandardTransaction.java:151)

at org.ow2.bonita.runtime.tx.StandardTransaction.complete(StandardTransaction.java:65)

at org.ow2.bonita.runtime.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:62)

at org.ow2.bonita.services.impl.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

at org.ow2.bonita.services.impl.RetryInterceptor.execute(RetryInterceptor.java:57)

at org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:116)

at $Proxy284.generateTemporaryToken(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.ow2.bonita.facade.interceptor.EJB3Interceptor.performInterception(EJB3Interceptor.java:53)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:83)

at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:70)

at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:59)

at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)

at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)

at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_6503304.invoke(InvocationContextInterceptor_z_fillMethod_6503304.java)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)

at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_6503304.invoke(InvocationContextInterceptor_z_setup_6503304.java)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)

at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)

at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

at $Proxy283.invoke(Unknown Source)

at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

at $Proxy281.generateTemporaryToken(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(ClientAPIInterceptor.java:69)

at $Proxy282.generateTemporaryToken(Unknown Source)

at org.bonitasoft.console.security.server.api.impl.CredentialsEncryptionAPIImpl.generateTemporaryToken(CredentialsEncryptionAPIImpl.java:156)

at org.bonitasoft.console.security.server.CredentialsEncryptionServlet.doPost(CredentialsEncryptionServlet.java:101)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:636)

11:30:57,109 SEVERE [StandardTransaction] commit failed for resource org.ow2.bonita.runtime.tx.HibernateSessionResource@845f90: org.hibernate.TransactionException: JDBC commit failed

11:30:57,236 ERROR [CredentialsEncryptionServlet/security/credentialsencryption]] Servlet.service() para servlet org.bonitasoft.console.security.server.CredentialsEncryptionServlet/security/credentialsencryption lanzó excepción

org.ow2.bonita.facade.exception.BonitaInternalException: Unexpected Exception arrived in Bonita: JDBC commit failed



at org.ow2.bonita.facade.exception.BonitaInternalException.build(BonitaInternalException.java:53)

at org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:130)

at $Proxy284.generateTemporaryToken(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.ow2.bonita.facade.interceptor.EJB3Interceptor.performInterception(EJB3Interceptor.java:53)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:83)

at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:70)

at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:59)

at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)

at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)

at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_6503304.invoke(InvocationContextInterceptor_z_fillMethod_6503304.java)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)

at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_6503304.invoke(InvocationContextInterceptor_z_setup_6503304.java)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)

at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)

at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)

at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)

at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

at $Proxy283.invoke(Unknown Source)

at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)

at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)

at $Proxy281.generateTemporaryToken(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

at org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(ClientAPIInterceptor.java:69)

at $Proxy282.generateTemporaryToken(Unknown Source)

at org.bonitasoft.console.security.server.api.impl.CredentialsEncryptionAPIImpl.generateTemporaryToken(CredentialsEncryptionAPIImpl.java:156)

at org.bonitasoft.console.security.server.CredentialsEncryptionServlet.doPost(CredentialsEncryptionServlet.java:101)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

at java.lang.Thread.run(Thread.java:636)

Caused by: org.hibernate.TransactionException: JDBC commit failed

at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:130)

at org.ow2.bonita.runtime.tx.HibernateSessionResource.commit(HibernateSessionResource.java:74)

at org.ow2.bonita.runtime.tx.StandardTransaction.commit(StandardTransaction.java:151)

at org.ow2.bonita.runtime.tx.StandardTransaction.complete(StandardTransaction.java:65)

at org.ow2.bonita.runtime.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:62)

at org.ow2.bonita.services.impl.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

at org.ow2.bonita.services.impl.RetryInterceptor.execute(RetryInterceptor.java:57)

at org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:116)

... 93 more

Caused by: java.sql.SQLException: You cannot commit during a managed transaction!

at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:659)

at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:486)

at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)

at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)

... 100 more





I use potgresql, and xa transaction.

Submitted by rlg Mon, 10/04/2010 - 18:51

Hi,



how did you configure the xa transaction? how did you configure hibernate?

Submitted by edouard.lafon Tue, 10/05/2010 - 07:43

Hi



Follow this link,u will execute successfully



http://www.bonitasoft.org/forum/viewtopic.php?id=3555

Submitted by yamilj Mon, 10/11/2010 - 03:44

thanks..for the help!! problem solve..

Submitted by edouard.lafon Thu, 12/23/2010 - 02:41

Hi,



I managed to configure the oracle datasource of bonita.war and bonita.ear, but I'm having the very same problem now. JBoss 5.0.1



Here's my jBoss datasource


  1. <br>
  2. <datasources><br>
  3. <local-tx-datasource><br>
  4. <jndi-name>bpmDS</jndi-name><br>
  5. <connection-url>jdbc:oracle:thin:@server_address:1533:tesdev</connection-url><br>
  6. <driver-class>oracle.jdbc.driver.OracleDriver</driver-class><br>
  7. <user-name>****</user-name><br>
  8. <password>****</password><br>
  9. <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name><br>
  10. <metadata><br>
  11. <type-mapping>Oracle9i</type-mapping><br>
  12. </metadata><br>
  13. </local-tx-datasource><br>
  14. </datasources><br>





I also tryed with the non-local XA resource (result the same)


  1. <br>
  2. <xa-datasource><br>
  3. <jndi-name>bpmDS</jndi-name><br>
  4. <!-- uncomment to enable interleaving <interleaving/> --><br>
  5. <isSameRM-override-value>false</isSameRM-override-value><br>
  6. <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class><br>
  7. <xa-datasource-property name="URL">jdbc:oracle:thin:@server_address:1533:tesdev</xa-datasource-property><br>
  8. <xa-datasource-property name="User">****</xa-datasource-property><br>
  9. <xa-datasource-property name="Password">****</xa-datasource-property><br>
  10. <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool --><br>
  11. <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name--><br>
  12. <!-- Checks the Oracle error codes and messages for fatal errors --><br>
  13. <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name><br>
  14. <!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa --><br>
  15. <no-tx-separate-pools/><br>
  16. <br>
  17. <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --><br>
  18. <metadata><br>
  19. <type-mapping>Oracle9i</type-mapping><br>
  20. </metadata><br>
  21. </xa-datasource><br>
  22. <br>
  23. <mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter" <br>
  24. name="jboss.jca:service=OracleXAExceptionFormatter"><br>
  25. <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends><br>
  26. </mbean><br>





And my hibernate config is


  1. <br>
  2. hibernate.dialect org.hibernate.dialect.Oracle10gDialect<br>
  3. hibernate.connection.datasource java:bpmDS<br>
  4. hibernate.cache.use_second_level_cache false<br>
  5. hibernate.cache.use_query_cache false<br>
  6. hibernate.cache.region.factory_class net.sf.ehcache.hibernate.EhCacheRegionFactory<br>
  7. hibernate.show_sql false<br>
  8. hibernate.format_sql false<br>
  9. hibernate.use_sql_comments false<br>
  10. bonita.search.use true<br>





And I get this exception whenver I try to log on UserXP or instantiate the process from a remote client


  1. <br>
  2. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  3. INFO: Query cache: disabled<br>
  4. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory createRegionFactory<br>
  5. INFO: Cache region factory : net.sf.ehcache.hibernate.EhCacheRegionFactory<br>
  6. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  7. INFO: Optimize cache for minimal puts: enabled<br>
  8. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  9. INFO: Structured second-level cache entries: disabled<br>
  10. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  11. INFO: Statistics: disabled<br>
  12. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  13. INFO: Deleted entity synthetic identifier rollback: disabled<br>
  14. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  15. INFO: Default entity-mode: pojo<br>
  16. 2010-12-23 12:31:10,277 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  17. INFO: Named query checking : enabled<br>
  18. 2010-12-23 12:31:10,293 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.cfg.SettingsFactory buildSettings<br>
  19. INFO: Check Nullability in Core (should be disabled when Bean Validation is on): enabled<br>
  20. 2010-12-23 12:31:10,355 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.impl.SessionFactoryImpl <init><br>
  21. INFO: building session factory<br>
  22. 2010-12-23 12:31:10,355 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM net.sf.ehcache.hibernate.AbstractEhcacheRegionFactory getOnePhaseCommitSyncTransactionManager<br>
  23. WARNING: No TransactionManagerLookup found in Hibernate config, XA Caches will be participating in the two-phase commit!<br>
  24. 2010-12-23 12:31:10,355 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM net.sf.ehcache.config.ConfigurationFactory parseConfiguration<br>
  25. WARNING: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: vfszip:/C:/jboss-5.0.1.GA/server/default/deploy/bonita.ear/lib/ehcache-core-2.2.0.jar/ehcache-failsafe.xml<br>
  26. 2010-12-23 12:31:10,371 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM net.sf.ehcache.CacheManager detectAndFixDiskStorePathConflict<br>
  27. WARNING: Creating a new instance of CacheManager using the diskStorePath "C:\DOCUME~1\calegaa\LOCALS~1\Temp\" which is already used by an existing CacheManager.<br>
  28. The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$DefaultConfigurationSource@18b04e5.<br>
  29. The diskStore path for this CacheManager will be set to C:\DOCUME~1\calegaa\LOCALS~1\Temp\\ehcache_auto_created_1293067870371.<br>
  30. To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.<br>
  31. 2010-12-23 12:31:10,590 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:10 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance<br>
  32. INFO: Not binding factory to JNDI, no JNDI name configured<br>
  33. 2010-12-23 12:31:11,168 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:11 PM org.ow2.bonita.runtime.event.EventExecutor start<br>
  34. INFO: starting event executor threads for event executor 'EventExecutor-160.206.251.130-default'...<br>
  35. 2010-12-23 12:31:11,168 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:11 PM org.ow2.bonita.runtime.event.EventExecutor start<br>
  36. INFO: starting dispatcher thread for event executor 'EventExecutor-160.206.251.130-default'...<br>
  37. 2010-12-23 12:31:11,184 ERROR [STDERR] (EventDispatcherThread-160.206.251.130-default) 23/12/2010 12:31:11 PM org.ow2.bonita.runtime.event.EventDispatcherThread run<br>
  38. INFO: starting...<br>
  39. 2010-12-23 12:31:11,434 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:11 PM org.hibernate.transaction.JDBCTransaction commit<br>
  40. SEVERE: JDBC commit failed<br>
  41. java.sql.SQLException: You cannot commit during a managed transaction!<br>
  42. at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:659)<br>
  43. at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:486)<br>
  44. at org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:170)<br>
  45. at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:146)<br>
  46. at org.ow2.bonita.runtime.tx.HibernateSessionResource.commit(HibernateSessionResource.java:74)<br>
  47. at org.ow2.bonita.runtime.tx.StandardTransaction.commit(StandardTransaction.java:151)<br>
  48. at org.ow2.bonita.runtime.tx.StandardTransaction.complete(StandardTransaction.java:65)<br>
  49. at org.ow2.bonita.runtime.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:46)<br>
  50. at org.ow2.bonita.services.impl.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)<br>
  51. at org.ow2.bonita.services.impl.RetryInterceptor.execute(RetryInterceptor.java:57)<br>
  52. at org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:122)<br>
  53. at $Proxy205.generateTemporaryToken(Unknown Source)<br>
  54. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
  55. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
  56. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
  57. at java.lang.reflect.Method.invoke(Method.java:597)<br>
  58. at org.ow2.bonita.facade.interceptor.EJB3Interceptor.performInterception(EJB3Interceptor.java:80)<br>
  59. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
  60. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
  61. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
  62. at java.lang.reflect.Method.invoke(Method.java:597)<br>
  63. at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:83)<br>
  64. at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:70)<br>
  65. at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:59)<br>
  66. at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)<br>
  67. at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)<br>
  68. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
  69. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
  70. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
  71. at java.lang.reflect.Method.invoke(Method.java:597)<br>
  72. at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)<br>
  73. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  74. at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)<br>
  75. at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_17306284.invoke(InvocationContextInterceptor_z_fillMethod_17306284.java)<br>
  76. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  77. at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)<br>
  78. at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_17306284.invoke(InvocationContextInterceptor_z_setup_17306284.java)<br>
  79. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  80. at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)<br>
  81. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  82. at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)<br>
  83. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  84. at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)<br>
  85. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  86. at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)<br>
  87. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  88. at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)<br>
  89. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  90. at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)<br>
  91. at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)<br>
  92. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  93. at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)<br>
  94. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  95. at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)<br>
  96. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  97. at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)<br>
  98. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  99. at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)<br>
  100. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  101. at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)<br>
  102. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  103. at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)<br>
  104. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  105. at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)<br>
  106. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  107. at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)<br>
  108. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  109. at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:487)<br>
  110. at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)<br>
  111. at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)<br>
  112. at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)<br>
  113. at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)<br>
  114. at $Proxy204.invoke(Unknown Source)<br>
  115. at org.jboss.ejb3.proxy.handler.ProxyInvocationHandlerBase.invoke(ProxyInvocationHandlerBase.java:261)<br>
  116. at org.jboss.ejb3.proxy.handler.session.SessionSpecProxyInvocationHandlerBase.invoke(SessionSpecProxyInvocationHandlerBase.java:101)<br>
  117. at $Proxy202.generateTemporaryToken(Unknown Source)<br>
  118. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
  119. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
  120. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
  121. at java.lang.reflect.Method.invoke(Method.java:597)<br>
  122. at org.ow2.bonita.facade.interceptor.ClientRemoteAPIInterceptor.invoke(ClientRemoteAPIInterceptor.java:117)<br>
  123. at $Proxy203.generateTemporaryToken(Unknown Source)<br>
  124. at org.bonitasoft.console.security.server.api.impl.CredentialsEncryptionAPIImpl.generateTemporaryToken(CredentialsEncryptionAPIImpl.java:157)<br>
  125. at org.bonitasoft.console.security.server.CredentialsEncryptionServlet.doPost(CredentialsEncryptionServlet.java:106)<br>
  126. at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)<br>
  127. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
  128. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>
  129. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
  130. at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br>
  131. at org.apache.catalina.core.ApplicationFilterCh<br>
  132. 2010-12-23 12:31:11,465 ERROR [STDERR] (http-0.0.0.0-8080-1) ain.internalDoFilter(ApplicationFilterChain.java:235)<br>
  133. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
  134. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)<br>
  135. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>
  136. at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)<br>
  137. at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)<br>
  138. at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)<br>
  139. at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)<br>
  140. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>
  141. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>
  142. at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)<br>
  143. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>
  144. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)<br>
  145. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)<br>
  146. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)<br>
  147. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br>
  148. at java.lang.Thread.run(Thread.java:662)<br>
  149. 2010-12-23 12:31:11,465 ERROR [STDERR] (http-0.0.0.0-8080-1) 23/12/2010 12:31:11 PM org.ow2.bonita.runtime.tx.StandardTransaction commit<br>
  150. SEVERE: commit failed for resource org.ow2.bonita.runtime.tx.HibernateSessionResource@4b8b3: org.hibernate.TransactionException: JDBC commit failed<br>
  151. 2010-12-23 12:31:11,496 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bonita].[org.bonitasoft.console.security.server.CredentialsEncryptionServlet/security/credentialsencryption]] (http-0.0.0.0-8080-1) Servlet.service() for servlet org.bonitasoft.console.security.server.CredentialsEncryptionServlet/security/credentialsencryption threw exception<br>
  152. org.ow2.bonita.facade.exception.BonitaInternalException: Unexpected Exception arrived in Bonita: JDBC commit failed<br>
  153. <br>
  154. at org.ow2.bonita.facade.exception.BonitaInternalException.build(BonitaInternalException.java:53)<br>
  155. at org.ow2.bonita.facade.APIInterceptor.invoke(APIInterceptor.java:136)<br>
  156. at $Proxy205.generateTemporaryToken(Unknown Source)<br>





Any ideas?

Submitted by edouard.lafon Thu, 12/23/2010 - 03:39

Ok, resolving my own problem, and for the benefit of the others, IT DOES NOT SUPPORT TX aware datasources. In oracle, the only way I could make it work was with this:


  1. <br>
  2. <no-tx-datasource><br>
  3. <jndi-name>bpmDS</jndi-name><br>
  4. <connection-url>jdbc:oracle:thin:@server_address:1533:tesdev</connection-url><br>
  5. <driver-class>oracle.jdbc.driver.OracleDriver</driver-class><br>
  6. <user-name>*****</user-name><br>
  7. <password>*****</password><br>
  8. <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name><br>
  9. <metadata><br>
  10. <type-mapping>Oracle9i</type-mapping><br>
  11. </metadata><br>
  12. </no-tx-datasource><br>





Still getting strange problems.... http://www.bonitasoft.org/forum/viewtopic.php?id=4709