<!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="https://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;">
    Re: Using jbpm-human-task-war.war instead of DemoTaskService.class
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/junaidmohammed">Junaid Mohammed</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/714011#714011">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>My apologies, I think the WAR file was not structured properly - I added a top-level folder by mistake:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>jbpm-human-task-war.war<ul><li><strong>jbpm-human-task-war</strong><ul><li>META-INF</li><li>WEB-INF</li></ul></li></ul></li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>So I removed the top-level folder but, unfortunately, the WAR no longer deploys.</p><p>Here is the new folder structure:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ul><li>jbpm-human-task-war.war<ul><li>META-INF<ul><li>MANIFEST.MF</li></ul></li><li>WEB-INF<ul><li>web.xml</li><li>classes<ul><li>META-INF<ul><li>persistence.xml<ul><li><p><span style="text-decoration: line-through;">&lt;property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /&gt;</span></p></li><li><p><strong>&lt;property name="hibernate.transaction.manager_lookup_class" value="org.jbpm.integration.console.JBPMTransactionManager" /&gt;</strong></p></li></ul></li></ul></li><li><p>org</p><ul><li><p>jbpm</p><ul><li><p>task</p><ul><li><p>servlet</p><ul><li><p>HumanTaskServiceServlet.class</p></li><li><p>LoadGroups.mvel</p></li><li><p>LoadUsers.mvel</p></li><li><p><strong>jbpm.usergroup.callback.properties (EMPTY)</strong></p></li></ul></li></ul></li></ul></li></ul></li></ul></li><li><p>lib</p><ul><li><p>activation-1.1.jar</p></li><li><p>antlr-2.7.7.jar</p></li><li><p>commons-collections-3.1.jar</p></li><li><p>commons-compress-1.0.jar</p></li><li><p>commons-exec-1.0.1.jar</p></li><li><p>commons-io-1.4.jar</p></li><li><p>commons-net-2.0.jar</p></li><li><p>dom4j-1.6.1.jar</p></li><li><p>drools-core-5.3.1.Final.jar</p></li><li><p>ejb3-persistence-1.0.2.GA.jar</p></li><li><p>el-api-1.2.jar</p></li><li><p>hibernate-annotations-3.4.0.GA.jar</p></li><li><p>hibernate-commons-annotations-3.1.0.GA.jar</p></li><li><p>hibernate-core-3.3.2.GA.jar</p></li><li><p>hibernate-entitymanager-3.4.0.GA.jar</p></li><li><p>hornetq-core-2.0.0.GA.jar</p></li><li><p>javassist-3.14.0-GA.jar</p></li><li><p>javassist-3.4.GA.jar</p></li><li><p>jboss-el-1.0_02.CR5.jar</p></li><li><p>jboss-seam-2.2.2.Final.jar</p></li><li><p>jbpm-flow-5.2.0.Final.jar</p></li><li><p>jbpm-human-task-5.2.0.Final.jar</p></li><li><p><strong>jbpm-tm.jar</strong></p></li><li><p>jbpm-workitems-5.2.0.Final.jar</p></li><li><p>jdom-1.0.jar</p></li><li><p>jta-1.1.jar</p></li><li><p>knowledge-api-5.3.1.Final.jar</p></li><li><p>log4j-1.2.14.jar</p></li><li><p>mail-1.4.jar</p></li><li><p>mina-core-2.0.1.jar</p></li><li><p>mvel2-2.1.0.drools4.jar</p></li><li><p>persistence-api-1.0.jar</p></li><li><p>rome-0.9.jar</p></li><li><p>slf4j-api-1.6.0.jar</p></li><li><p>slf4j-log4j12-1.6.0.jar</p></li><li><p>smack-3.0.4.jar</p></li><li><p>xml-apis-1.3.04.jar</p></li><li><p>xmlpull-1.1.3.1.jar</p></li><li><p>xpp3_min-1.1.3.4.O.jar</p></li><li><p>xstream-1.4.1.jar</p></li></ul></li></ul></li></ul></li></ul><p>When trying to deploy through the JBoss Administrator, the following error is presented:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h3>Unknown error</h3><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre style="font-family: tahoma, verdana, sans-serif;">Unexpected HTTP response: 500

Request
{
&#160;&#160;&#160; "address" =&gt; [("deployment" =&gt; "jbpm-human-task-war.war")],
&#160;&#160;&#160; "operation" =&gt; "deploy"
}

Response

Internal Server Error
{
&#160;&#160;&#160; "outcome" =&gt; "failed",
&#160;&#160;&#160; "failure-description" =&gt; {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; "Failed services" =&gt; {"jboss.deployment.unit.\"jbpm-human-task-war.war\".INSTALL" =&gt; "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jbpm-human-task-war.war\".INSTALL: Failed to process phase INSTALL of deployment \"jbpm-human-task-war.war\""},
&#160;&#160;&#160;&#160;&#160;&#160;&#160; "Services with missing/unavailable dependencies" =&gt; [
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; "jboss.naming.context.java.module.jbpm-human-task-war.jbpm-human-task-war.ValidatorFactory missing [ jboss.naming.context.java.module.jbpm-human-task-war.jbpm-human-task-war ]",
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; "jboss.naming.context.java.module.jbpm-human-task-war.jbpm-human-task-war.Validator missing [ jboss.naming.context.java.module.jbpm-human-task-war.jbpm-human-task-war ]"
&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]
&#160;&#160;&#160; },
&#160;&#160;&#160; "rolled-back" =&gt; true
}</pre><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 1119px; left: 0px;"></div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Is there a missing JAR library which usually contains <strong>jboss.naming.context.java.module.jbpm-human-task-war.jbpm-human-task-war.ValidatorFactory</strong> and <strong>jboss.naming.context.java.module.jbpm-human-task-war.jbpm-human-task-war.Validator</strong>?</p><p>Or is it that the namespaces are not correct?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/714011#714011">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://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>