<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Missing datasource for persistence context named: org.jbpm.task
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/jefure">Jens Reese</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/637186#637186">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello everyone,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>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:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>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</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I use the setup created by the jBPM demo.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Because I quit new new to jboss and jBPM I fear I'm missing an essential point here.<span> :( </span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is the setup:</p><p>JBoss 5.1.0 and jBPM 5.1.0 installed with the demo setup.</p><p>I created an ear archive that contains the actual service as an war archive.</p><p>The web.xml looks like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p><span>&lt;web-app xmlns:xsi="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>" xmlns="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a><span>" xmlns:web="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a><span>" xsi:schemaLocation="</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" target="_blank">http://java.sun.com/xml/ns/javaee</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" target="_blank">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a><span>" id="WebApp_ID" version="2.5"&gt;</span></p><p>&#160; &lt;display-name&gt;MobileWorkflowService&lt;/display-name&gt;</p><p>&#160; &lt;welcome-file-list&gt;</p><p>&#160;&#160;&#160; &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;</p><p>&#160; &lt;/welcome-file-list&gt;</p><p>&#160; &lt;servlet&gt;</p><p>&#160;&#160;&#160; &lt;display-name&gt;MobileWorkflow&lt;/display-name&gt;</p><p>&#160;&#160;&#160; &lt;servlet-name&gt;MobileWorkflow&lt;/servlet-name&gt;</p><p>&#160;&#160;&#160; &lt;servlet-class&gt;de.cellent.mobileWorkflow.service.MobileWorkflowService&lt;/servlet-class&gt;</p><p>&#160; &lt;/servlet&gt;</p><p>&#160; &lt;servlet-mapping&gt;</p><p>&#160;&#160;&#160; &lt;servlet-name&gt;MobileWorkflow&lt;/servlet-name&gt;</p><p>&#160;&#160;&#160; &lt;url-pattern&gt;/MobileWorkflow&lt;/url-pattern&gt;</p><p>&#160; &lt;/servlet-mapping&gt;</p><p>&lt;/web-app&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>i also added added this jboss-web.xml file</p><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p><p> &lt;!DOCTYPE jboss-web PUBLIC</p><p>&#160;&#160;&#160; "-//JBoss//DTD Web Application 2.4//EN"</p><p><span>&#160;&#160;&#160; "</span><a class="jive-link-external-small" href="http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd" target="_blank">http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd</a><span>"&gt;</span></p><p> &lt;jboss-web&gt;</p><p>&#160; &lt;context-root&gt;MobileWorkflow&lt;/context-root&gt;</p><p>&lt;/jboss-web&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Because at this stage persistence is not required I have not configure a persistence.xml file as desribed in chapter </p><h3 class="title" style="color: #4a5d75; font-family: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; font-size: 1.3em; text-align: justify;"><a class="jive-link-anchor-small">12.2.5. Starting the human task service</a></h3><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any help is much appreciated</p><p>kind regards</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/637186#637186">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>