Jens Reese [http://community.jboss.org/people/jefure] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/637186#637186

--------------------------------------------------------------
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 6.2.1.2] - 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 
http://www.w3.org/2001/XMLSchema-instance"; xmlns=" 
http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"; 
xmlns:web=" http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd 
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  
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" version="2.5">
  <display-name>MobileWorkflowService</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
  <servlet>
    <display-name>MobileWorkflow</display-name>
    <servlet-name>MobileWorkflow</servlet-name>
    
<servlet-class>de.cellent.mobileWorkflow.service.MobileWorkflowService</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>MobileWorkflow</servlet-name>
    <url-pattern>/MobileWorkflow</url-pattern>
  </servlet-mapping>
</web-app>

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"
    " http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd 
http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd";>
 <jboss-web>
  <context-root>MobileWorkflow</context-root>
</jboss-web>

Because at this stage persistence is not required I have not configure a 
persistence.xml file as desribed in chapter 
h3. 12.2.5. Starting the human task service

Any help is much appreciated
kind regards
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/637186#637186]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to