mswiderski / spring-jbpm-app

jBPM spring application that shows how to build execution server using jBPM 6 and spring
14 stars 32 forks source link

report some error when deploy it into tomcat #3

Open meichengjun opened 6 years ago

meichengjun commented 6 years ago

Acorrding to you read me file,I contig the war into tomcat 7,but report some error as blow, Caused by: java.lang.IllegalStateException: No JTA UserTransaction available - specify either 'userTransaction' or 'userTransactionName' or 'transactionManager' or 'transactionManagerName' How to fix it

mswiderski commented 6 years ago

error is rather clear - you don't have transaction manager configured in your tomcat - either use bitronix or narayana to resolve the issue.

meichengjun commented 6 years ago

Thank you for your feedback,I will try it as your suggestion, or deploy it in wildfly have a happy work!

meichengjun commented 6 years ago

The above question was resolved by add bitronix config in jee-tx-context.xml, But I encountered another question when start the tomcat server, the message is: 23-Apr-2018 16:15:38.430 ERROR [localhost-startStop-1] org.hibernate.internal.SessionFactoryImpl. HHH000177: Error in named query: getQueryDefinitionByName org.hibernate.hql.internal.ast.QuerySyntaxException: QueryDefinitionEntity is not mapped [select qd from QueryDefinitionEntity qd where name = :name] what causes this problem to happen my db is postgres ,and table querydefinitionstore is exist in the db either.

mswiderski commented 6 years ago

check your persistence.xml as most likely you don't have

<class>org.jbpm.kie.services.impl.query.persistence.QueryDefinitionEntity</class>
meichengjun commented 6 years ago

After a day of study, the deployment was unsuccessful in tomcat7, and I try deploy it into wildfly10, But it report much of error like this ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (pool-9-thread-1) Large Objects may not be used in auto-commit mode. What 's that mean? my deploy step is:

  1. create a Nor-XA datasource
  2. deploy the war into wildfly
mswiderski commented 6 years ago

this usually means transaction is not properly handled - some of the operations are not executed within transaction. If you have stack trace please share it here