1 Reply Latest reply on May 25, 2018 4:23 AM by ctomc

    Need help in doployin a war file

    sagar.vinayak

      Hi,

      I am new to JBOSS EAP 6.4 with little knowledge of java.

       

      I am trying to deploy my WAR file on EAP JBOSS 6.4 server, but getting an

      org.hibernate.InvalidMappingException: Unable to read XML

      org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 135; cvc-elt.1: Cannot find the declaration of element 'entity-mappings'

       

      Error LOG:

       

      ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198:

      Warning parsing XML (5) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,244 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 137) HHH000397: Using ASTQueryTranslatorFactory

      12:22:39,624 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (7) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,631 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (8) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,633 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (18) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,634 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (19) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,635 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (28) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,636 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (29) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,638 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (2) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,639 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (4) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,640 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (5) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,642 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (15) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,643 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (16) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,598 WARN  [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 136) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()

      12:22:39,349 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 135) HHH000397: Using ASTQueryTranslatorFactory

      12:22:39,644 WARN  [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 137) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()

      12:22:39,657 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (25) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,679 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000198: Warning parsing XML (26) : schema_reference.4: Failed to read schema document 'http://xmlns.jcp.org/xml/ns/persistence/orm_2_1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      12:22:39,803 WARN  [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 135) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()

      12:22:39,846 ERROR [org.hibernate.internal.util.xml.ErrorLogger] (ServerService Thread Pool -- 138) HHH000196: Error parsing XML (2) :

      cvc-elt.1: Cannot find the declaration of element 'entity-mappings'.

      12:22:39,869 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 138) MSC000001: Failed to start service jboss.persistenceunit."jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task": org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task": org.hibernate.InvalidMappingException: Unable to read XML

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:103) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]

      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]

      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.2.Final-redhat-1.jar:2.1.2.Final-redhat-1]

      Caused by: org.hibernate.InvalidMappingException: Unable to read XML

      at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:109)

      at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:745)

      at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:614)

      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75)

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

      ... 4 more

      Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 135; cvc-elt.1: Cannot find the declaration of element 'entity-mappings'.

      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)

      at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)

      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)

      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)

      at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)

      at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1982)

      at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)

      at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)

      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)

      at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)

      at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)

      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)

      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)

      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)

      at org.dom4j.io.SAXReader.read(SAXReader.java:465)

      at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:78)

      ... 10 more

       

       

      12:22:39,885 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "jbpmframework-0.0.1-SNAPSHOT.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task\": org.hibernate.InvalidMappingException: Unable to read XML

          Caused by: org.hibernate.InvalidMappingException: Unable to read XML

          Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 135; cvc-elt.1: Cannot find the declaration of element 'entity-mappings'."}}

      12:22:39,886 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "jbpmframework-0.0.1-SNAPSHOT.war" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task\": org.hibernate.InvalidMappingException: Unable to read XML

          Caused by: org.hibernate.InvalidMappingException: Unable to read XML

          Caused by: org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 135; cvc-elt.1: Cannot find the declaration of element 'entity-mappings'."}}

      12:22:39,893 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment jbpmframework-0.0.1-SNAPSHOT.war

      12:22:39,893 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 137) JBAS011403: Stopping Persistence Unit Service 'jbpmframework-0.0.1-SNAPSHOT.war#com.mccamish.nbf'

      12:22:39,892 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 135) JBAS011403: Stopping Persistence Unit Service 'jbpmframework-0.0.1-SNAPSHOT.war#com.mccamish.alphaservices'

      12:22:39,892 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 138) JBAS011403: Stopping Persistence Unit Service 'jbpmframework-0.0.1-SNAPSHOT.war#com.mccamish.alphaservices.task.notification'

      12:22:52,320 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment jbpmframework-0.0.1-SNAPSHOT.war (runtime-name: jbpmframework-0.0.1-SNAPSHOT.war) in 12434ms

      12:22:52,485 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.ProcessManagementService.START (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService, service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".moduleDeploymentRuntimeInformationStart]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.ProcessManagementService.VIEW."org.sample.jbpmservice.ProcessManagementLocal".LOCAL (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.ProcessManagementService.START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.ProcessManagementService.WeldInterceptorBindingsService (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.ProcessManagementService.WeldInstantiator]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.CREATE (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.VIEW."org.sample.jbpmservice.TaskManagementLocal".LOCAL (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.WeldInstantiator (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."com.sun.faces.config.ConfigureListener".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".CREATE (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.apache.catalina.servlets.DefaultServlet".CREATE (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.apache.catalina.servlets.DefaultServlet".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.apache.catalina.servlets.DefaultServlet".START (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation".START (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService, service jboss.web.deployment.default-host."/jbpmframework-0.0.1-SNAPSHOT"]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.apache.jasper.servlet.JspServlet".START (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService, service jboss.web.deployment.default-host."/jbpmframework-0.0.1-SNAPSHOT"]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.jboss.as.weld.webtier.jsp.JspInitializationListener".CREATE (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.jboss.as.weld.webtier.jsp.JspInitializationListener".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.jboss.as.weld.webtier.jsp.JspInitializationListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.jboss.as.weld.webtier.jsp.JspInitializationListener".START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.singleKSession.CREATE (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.singleKSession.START]

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.singleKSession.WeldInstantiator (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.singleKSession.START]

            service jboss.naming.context.java.module."jbpmframework-0.0.1-SNAPSHOT"."jbpmframework-0.0.1-SNAPSHOT".env."org.sample.ksessionservice.TaskManagementService".processService (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.TaskManagementService.START, service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".jndiDependencyService]

            service jboss.web.deployment.default-host."/jbpmframework-0.0.1-SNAPSHOT".realm (missing) dependents: [service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".deploymentCompleteService]

      JBAS014776:    Newly corrected services:

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component.

        "org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation".WeldInstantiator (no longer required)

            service jboss.deployment.unit."jbpmframework-0.0.1-SNAPSHOT.war".component."org.apache.jasper.servlet.JspServlet".CREATE (no longer required)

      JBAS014777:   Services which failed to start:      service jboss.persistenceunit."jbpmframework-0.0.1-SNAPSHOT.war#org.jbpm.task"

      ================================================================================================================================================

      Persistence.XML

       

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

      <persistence version="2.0"

         xmlns="http://java.sun.com/xml/ns/persistence"

         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

         xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

       

       

        <persistence-unit name="org.jbpm.task" transaction-type="JTA">

      <!--  <persistence-unit name="org.jbpm.task" transaction-type="RESOURCE_LOCAL"> -->

          <provider>org.hibernate.ejb.HibernatePersistence</provider>

           <jta-data-source>java:jboss/datasources/jta_jbpmDS</jta-data-source>

           <mapping-file>META-INF/Taskorm-JPA2.xml</mapping-file>

         

            

           <!-- Process Records  -->

          <!--<mapping-file>META-INF/JBPMorm.xml</mapping-file>

          <!-- <mapping-file>META-INF/ProcessInstanceInfoMapping.xml</mapping-file>  -->

          <!-- <mapping-file>META-INF/ExtraIndexes.hbm.xml</mapping-file>

          <mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>

          <!-- End Process Records  -->

         

         

          <class>org.jbpm.services.task.impl.model.AttachmentImpl</class>

          <class>org.jbpm.services.task.impl.model.ContentImpl</class>

          <class>org.jbpm.services.task.impl.model.BooleanExpressionImpl</class>

          <class>org.jbpm.services.task.impl.model.CommentImpl</class>

          <class>org.jbpm.services.task.impl.model.DeadlineImpl</class>

          <class>org.jbpm.services.task.impl.model.DelegationImpl</class>

          <class>org.jbpm.services.task.impl.model.EscalationImpl</class>

          <class>org.jbpm.services.task.impl.model.GroupImpl</class>

          <class>org.jbpm.services.task.impl.model.I18NTextImpl</class>

          <class>org.jbpm.services.task.impl.model.NotificationImpl</class>

          <class>org.jbpm.services.task.impl.model.EmailNotificationImpl</class>

          <class>org.jbpm.services.task.impl.model.EmailNotificationHeaderImpl</class>

          <class>org.jbpm.services.task.impl.model.PeopleAssignmentsImpl</class>

          <class>org.jbpm.services.task.impl.model.ReassignmentImpl</class>

         

          <class>org.jbpm.services.task.impl.model.TaskImpl</class>

          <class>org.jbpm.services.task.impl.model.TaskDataImpl</class>

          <class>org.jbpm.services.task.impl.model.UserImpl</class>

         

        

          <!-- Process Records  -->

          <class>org.drools.persistence.info.SessionInfo</class>

          <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

          <class>org.drools.persistence.info.WorkItemInfo</class>

            

          <class>org.jbpm.process.audit.ProcessInstanceLog</class>

          <class>org.jbpm.process.audit.NodeInstanceLog</class>

          <class>org.jbpm.process.audit.VariableInstanceLog</class>

         

          <class>org.sample.ksessionservice.SessionProcessXref</class>       

          <!-- End Process Records  -->

         

      <exclude-unlisted-classes/>

         

          <properties>

            <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>         

            <property name="hibernate.max_fetch_depth" value="3"/>

          <!--  @Note - It must be commented out after schema creation as per red hat support team to avoid the optimistic lock exception.

            <property name="hibernate.hbm2ddl.auto" value="update" />-->

            

            <property name="hibernate.show_sql" value="false" /> 

            <property name="hibernate.connection.release_mode" value="after_transaction"/>

            <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />

           

            <!-- BZ 841786: AS7/EAP 6/Hib 4 uses new (sequence) generators which seem to cause problems -->     

            <property name="hibernate.id.new_generator_mappings" value="false" />

          </properties>

        </persistence-unit>

       

       

      </persistence>

      =========================================================================================================================

       

      Taskorm-JPA2.xml

       

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

      <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"

                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_2_0.xsd"

                       version="2.0">

            <named-query name="TasksAssignedAsBusinessAdministrator">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner            

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity businessAdministrator

      where

          t.archived = 0 and

          businessAdministrator.id = :userId and

          businessAdministrator in elements ( t.peopleAssignments.businessAdministrators  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TasksAssignedAsExcludedOwner">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity excludedOwners

      where

          t.archived = 0 and

          excludedOwners.id = :userId and

          excludedOwners in elements ( t.peopleAssignments.excludedOwners  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TasksAssignedAsPotentialOwner">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity potentialOwners

      where

          t.archived = 0 and

          potentialOwners.id = :userId and

          potentialOwners in elements ( t.peopleAssignments.potentialOwners  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TasksAssignedAsPotentialOwnerByStatus">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity potentialOwners

      where

          t.archived = 0 and

          potentialOwners.id = :userId and

          potentialOwners in elements ( t.peopleAssignments.potentialOwners  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in (:status) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

                  <named-query name="TasksAssignedAsPotentialOwnerWithGroups">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity potentialOwners

      where

          t.archived = 0 and

          ( potentialOwners.id = :userId or potentialOwners.id in (:groupIds) ) and

          potentialOwners in elements ( t.peopleAssignments.potentialOwners )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

      <named-query name="TasksAssignedAsPotentialOwnerByStatusWithGroups">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity potentialOwners

      where

          t.archived = 0 and

          ( potentialOwners.id = :userId or potentialOwners.id in (:groupIds) ) and

          potentialOwners in elements ( t.peopleAssignments.potentialOwners )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in (:status) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

             <named-query name="TasksAssignedAsPotentialOwnerByGroup">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity potentialOwners

      where

          t.archived = 0 and

          potentialOwners.id = :groupId and

          potentialOwners in elements ( t.peopleAssignments.potentialOwners  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

       

            <named-query name="SubTasksAssignedAsPotentialOwner">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity potentialOwners

      where

          t.archived = 0 and

          t.taskData.parentId = :parentId and

          (potentialOwners.id = :userId or potentialOwners.id in (:groupIds)) and

          potentialOwners in elements ( t.peopleAssignments.potentialOwners  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

       

       

      <named-query name="GetSubTasksByParentTaskId">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name

      where

          t.archived = 0 and

          t.taskData.parentId = :parentId and

         

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

       

       

       

       

            <named-query name="TasksAssignedAsRecipient">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity recipients

      where

          t.archived = 0 and

          recipients.id = :userId and

          recipients in elements ( t.peopleAssignments.recipients  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TasksAssignedAsTaskInitiator">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner          

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity taskInitiator

      where

          t.archived = 0 and

          taskInitiator.id = :userId and

          taskInitiator = t.peopleAssignments.taskInitiator and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TasksAssignedAsTaskStakeholder">

                <query>

      select

           new org.jbpm.task.query.TaskSummary(

           t.id,

           t.taskData.processInstanceId,

           name.text,

           subject.text,

           description.text,

           t.taskData.status,

           t.priority,

           t.taskData.skipable,

           actualOwner,

           createdBy,

           t.taskData.createdOn,

           t.taskData.activationTime,

           t.taskData.expirationTime,

           t.taskData.processId,

           t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner          

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name,

          OrganizationalEntity taskStakeholder

      where

          t.archived = 0 and

          taskStakeholder.id = :userId and

          taskStakeholder in elements ( t.peopleAssignments.taskStakeholders  )  and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TasksOwned">

                <query>

      select

          new org.jbpm.task.query.TaskSummary(

          t.id,

          t.taskData.processInstanceId,

          name.text,

          subject.text,

          description.text,

          t.taskData.status,

          t.priority,

          t.taskData.skipable,

          actualOwner,

          createdBy,

          t.taskData.createdOn,

          t.taskData.activationTime,

          t.taskData.expirationTime,

          t.taskData.processId,

          t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name

      where

          t.archived = 0 and

          t.taskData.actualOwner.id = :userId and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

       

       

          <named-query name="TasksByStatus">

              <query>

                  select

                  new org.jbpm.task.query.TaskSummary(

                  t.id,

                  t.taskData.processInstanceId,

                  name.text,

                  subject.text,

                  description.text,

                  t.taskData.status,

                  t.priority,

                  t.taskData.skipable,

                  actualOwner,

                  createdBy,

                  t.taskData.createdOn,

                  t.taskData.activationTime,

                  t.taskData.expirationTime,

                  t.taskData.processId,

                  t.taskData.processSessionId)

                  from

                  Task t

                  left join t.taskData.createdBy as createdBy

                  left join t.taskData.actualOwner as actualOwner

                  left join t.subjects as subject

                  left join t.descriptions as description

                  left join t.names as name

                  where

                  t.archived = 0 and

                  t.taskData.status = :status and

       

       

                  (

                  name.language = :language

                  or t.names.size = 0

                  ) and

       

       

                  (

                  subject.language = :language

                  or t.subjects.size = 0

                  ) and

       

       

                  (

                  description.language = :language

                  or t.descriptions.size = 0

                  ) and

       

       

                  t.taskData.expirationTime is null

              </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

          </named-query>

          <named-query name="TasksByStatusByProcessId">

              <query>

                  select

                  new org.jbpm.task.query.TaskSummary(

                  t.id,

                  t.taskData.processInstanceId,

                  name.text,

                  subject.text,

                  description.text,

                  t.taskData.status,

                  t.priority,

                  t.taskData.skipable,

                  actualOwner,

                  createdBy,

                  t.taskData.createdOn,

                  t.taskData.activationTime,

                  t.taskData.expirationTime,

                  t.taskData.processId,

                  t.taskData.processSessionId)

                  from

                  Task t

                  left join t.taskData.createdBy as createdBy

                  left join t.taskData.actualOwner as actualOwner

                  left join t.subjects as subject

                  left join t.descriptions as description

                  left join t.names as name

                  where

                  t.archived = 0 and

                  t.taskData.status = :status and

                  t.taskData.processInstanceId = :processId and

                  (

                  name.language = :language

                  or t.names.size = 0

                  ) and

       

       

                  (

                  subject.language = :language

                  or t.subjects.size = 0

                  ) and

       

       

                  (

                  description.language = :language

                  or t.descriptions.size = 0

                  ) and

       

       

                  t.taskData.expirationTime is null

              </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

          </named-query>

          <named-query name="TasksByStatusSince">

              <query>

                  select

                  new org.jbpm.task.query.TaskSummary(

                  t.id,

                  t.taskData.processInstanceId,

                  name.text,

                  subject.text,

                  description.text,

                  t.taskData.status,

                  t.priority,

                  t.taskData.skipable,

                  actualOwner,

                  createdBy,

                  t.taskData.createdOn,

                  t.taskData.activationTime,

                  t.taskData.expirationTime,

                  t.taskData.processId,

                  t.taskData.processSessionId)

                  from

                  Task t

                  left join t.taskData.createdBy as createdBy

                  left join t.taskData.actualOwner as actualOwner

                  left join t.subjects as subject

                  left join t.descriptions as description

                  left join t.names as name

                  where

                  t.archived = 0 and

                  t.taskData.status = :status and

                 

                  (

                  name.language = :language

                  or t.names.size = 0

                  ) and

       

       

                  (

                  subject.language = :language

                  or t.subjects.size = 0

                  ) and

       

       

                  (

                  description.language = :language

                  or t.descriptions.size = 0

                  ) and

       

       

                  t.taskData.expirationTime is null

         

                  and

         

                  t.taskData.activationTime &lt; :since

              </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

          </named-query>

           

          <named-query name="ArchivedTasks">

              <query>

                  select

                  new org.jbpm.task.query.TaskSummary(

                  t.id,

                  t.taskData.processInstanceId,

                  name.text,

                  subject.text,

                  description.text,

                  t.taskData.status,

                  t.priority,

                  t.taskData.skipable,

                  actualOwner,

                  createdBy,

                  t.taskData.createdOn,

                  t.taskData.activationTime,

                  t.taskData.expirationTime,

                  t.taskData.processId,

                  t.taskData.processSessionId)

                  from

                  Task t

                  left join t.taskData.createdBy as createdBy

                  left join t.taskData.actualOwner as actualOwner

                  left join t.subjects as subject

                  left join t.descriptions as description

                  left join t.names as name

                  where

                  t.archived = 1 and

       

       

                  (

                  name.language = :language

                  or t.names.size = 0

                  ) and

       

       

                  (

                  subject.language = :language

                  or t.subjects.size = 0

                  ) and

       

       

                  (

                  description.language = :language

                  or t.descriptions.size = 0

                  ) and

       

       

                  t.taskData.expirationTime is null

              </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

          </named-query>

       

       

           

            <named-query name="TasksOwnedWithParticularStatus">

                <query>

      select

          new org.jbpm.task.query.TaskSummary(

          t.id,

          t.taskData.processInstanceId,

          name.text,

          subject.text,

          description.text,

          t.taskData.status,

          t.priority,

          t.taskData.skipable,

          actualOwner,

          createdBy,

          t.taskData.createdOn,

          t.taskData.activationTime,

          t.taskData.expirationTime,

          t.taskData.processId,

          t.taskData.processSessionId)

      from

          Task t

          left join t.taskData.createdBy as createdBy

          left join t.taskData.actualOwner as actualOwner

          left join t.subjects as subject

          left join t.descriptions as description

          left join t.names as name

      where

          t.taskData.actualOwner.id = :userId and

       

       

          t.taskData.status in (:status) and

       

       

          (

          name.language = :language

          or t.names.size = 0

          ) and

       

       

          (

          subject.language = :language

          or t.subjects.size = 0

          ) and

       

       

          (

          description.language = :language

          or t.descriptions.size = 0

          ) and

       

       

          t.taskData.expirationTime is null

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

           

        <named-query name="UnescalatedDeadlines">

                <query>

      select

           new org.jbpm.task.query.DeadlineSummary(

           t.id,

           d.id,

           d.date)

      from

          Task t,

          Deadline d

      where

          t.archived = 0 and

          (d in elements( t.deadlines.startDeadlines ) or d in elements( t.deadlines.endDeadlines ) ) and

          d.escalated = 0

      order by

          d.date

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

            <named-query name="TaskByWorkItemId">

                <query>

      select

          t

      from

          Task t

      where

          t.archived = 0 and

          t.taskData.workItemId = :workItemId

                </query>

                <!-- hint name="org.hibernate.timeout" value="200"/ -->

            </named-query>

      </entity-mappings>

        • 1. Re: Need help in doployin a war file
          ctomc

          Looks like you are trying to deploy Java EE 7 application, specifically JPA 2.1 that is part of it.

           

          For that you would need to use EE7 compatible application server.

          JBoss EAP 6.x is EE6 compatibile.

          for EE7 you would either need to use EAP 7.x or WildFly 8+ (12 preferably)