Hi
Hoping someone can shed some light on this.
I'm running JBPM 7.5 on tomcat 8.5 and am seeing unexpected behaviour.
I configured tomcat according to Accelerate your business: KIE Server welcomes Narayana
and was able to define & execute workflows successfully.
However after creating and adding a custom work item handler, I get an error on workflow deployment that ExampleDS is not found in the context.
Caused by: javax.naming.NameNotFoundException: Name [jboss/datasources/ExampleDS] is not bound in this Context. Unable to find [jboss].
So far I have not had to define ExampleDS, it seems to be referenced in the default persistence descriptor which I have not needed to change so far.
Its only after adding the new work item handler to the kie deployment descriptor that this error appears on deployment.
This is reproduceable with even the simplest workflow, such as Start Task -> Script ->End Task.
I've tried changing ExampleDS to java:comp/env/jdbc/jbpm, but that just gives a Transaction Manager exception & I'm not sure how to overcome that, the setenv config uses JBossTS as suggested.
Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [java:comp/env/TransactionManager] as strategy [org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform]
Another option might be to define an additional simple datasource to replace ExampleDS, but how would the XA config look ?
Thanks in advance for any suggestions.
Simple solution which seems to work is to replace the persistence.xml settings with those from setenv.sh - including JBossTS