I am trying to create a JBPM application extension and develop it outside of the complete JBPM build to save time and lessen complexity. The application works with in the Kie workbench buts fails in my "showcase". I feel I have the configuration the same - having problem injecting EntityManager:
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [EntityManager] with qualifiers [@Default] at injection point [[field] @Inject private org.jbpm.shared.services.impl.JbpmServicesPersistenceManagerImpl.em]
you need to include producer method for entity manager that will be injected on request scope, see an example here.
Again, consider to move to 6.0.1 as it significantly simplify transaction and persistence configuration.