1 Reply Latest reply on Nov 18, 2011 11:13 AM by Mauricio Salatino

    Missing datasource for persistence context named: org.jbpm.task

    Jens Reese Newbie

      Hello everyone,


      I try to create a Webservice that uses Human Tasks, as soon as I add the jbpm-human-task-5.1.0.Final.jar into the WEB-INF/libs directory I get this error:


      Specification violation [EJB3 JPA] - You have not defined a jta-data-source for a JTA enabled persistence context named: org.jbpm.task


      I use the setup created by the jBPM demo.


      Because I quit new new to jboss and jBPM I fear I'm missing an essential point here.


      This is the setup:

      JBoss 5.1.0 and jBPM 5.1.0 installed with the demo setup.

      I created an ear archive that contains the actual service as an war archive.

      The web.xml looks like this:


      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
















      i also added added this jboss-web.xml file

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss-web PUBLIC

          "-//JBoss//DTD Web Application 2.4//EN"






      Because at this stage persistence is not required I have not configure a persistence.xml file as desribed in chapter

      12.2.5. Starting the human task service


      Any help is much appreciated

      kind regards