<!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: JBPM Console Process List Error (No Persistence provider for EntityManager named org.jbpm.persistence.jpa)
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/aapthorp">Adrian Apthorp</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/747614#747614">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Tim,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks - however I'm still having problems. Are you using the JBPMorm.xml as in your post with 5.4.Snapshot? I tried this and am getting all sorts of errors starting with an error on version=2.0</p><blockquote class="jive-quote"><p>Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource META-INF/JBPMorm.xml</p><p>&#160;&#160;&#160; at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:957) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:896) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]</p><p>&#160;&#160;&#160; ... 48 more</p><p>Caused by: org.hibernate.MappingException: invalid mapping</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:777) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:64) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; ... 50 more</p><p>Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.1: Value '2.0' of attribute 'version' of element 'entity-mappings' is not valid with respect to the corresponding attribute use. Attribute 'version' has a fixed value of '1.0'.</p><p>&#160;&#160;&#160; at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)</p><p>&#160;&#160;&#160; at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:446)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3271)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2899)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2811)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2136)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)</p><p>&#160;&#160;&#160; at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)</p><p>&#160;&#160;&#160; at org.dom4j.io.SAXReader.read(SAXReader.java:465) [dom4j-1.6.1.jar:1.6.1]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:773) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; ... 52 more</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When I fix this, I then get</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p>Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource META-INF/JBPMorm.xml</p><p>&#160;&#160;&#160; at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:957) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:896) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]</p><p>&#160;&#160;&#160; ... 48 more</p><p>Caused by: org.hibernate.MappingException: invalid mapping</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:777) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:64) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; ... 50 more</p><p><span>Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'element-collection'. One of '{"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":id, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":embedded-id, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":basic, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":version, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":many-to-one, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":one-to-many, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":one-to-one, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":many-to-many, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":embedded, "</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>":transient}' is expected.</span></p><p>&#160;&#160;&#160; at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)</p><p>&#160;&#160;&#160; at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:446)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3271)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1837)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)</p><p>&#160;&#160;&#160; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)</p><p>&#160;&#160;&#160; at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)</p><p>&#160;&#160;&#160; at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)</p><p>&#160;&#160;&#160; at org.dom4j.io.SAXReader.read(SAXReader.java:465) [dom4j-1.6.1.jar:1.6.1]</p><p>&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:773) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]</p><p>&#160;&#160;&#160; ... 52 more</p></blockquote><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any thoughts?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Adrian</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/747614#747614">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>