Tim,
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
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource META-INF/JBPMorm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:957) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:896) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]
... 48 more
Caused by: org.hibernate.MappingException: invalid mapping
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:777) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:64) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
... 50 more
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'.
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$XSIErrorReporter.reportError(XMLSchemaValidator.java:446)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3271)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2899)
at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2811)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2136)
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) [dom4j-1.6.1.jar:1.6.1]
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:773) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
... 52 more
When I fix this, I then get
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource META-INF/JBPMorm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
at org.hibernate.cfg.AnnotationConfiguration.addResource(AnnotationConfiguration.java:957) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:896) [hibernate-entitymanager-3.4.0.GA.jar:3.4.0.GA]
... 48 more
Caused by: org.hibernate.MappingException: invalid mapping
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:777) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:64) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
at org.hibernate.cfg.Configuration.addResource(Configuration.java:613) [hibernate-core-3.3.2.GA.jar:3.3.2.GA]
... 50 more
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'element-collection'. One of '{"http://java.sun.com/xml/ns/persistence/orm":id, "http://java.sun.com/xml/ns/persistence/orm":embedded-id, "http://java.sun.com/xml/ns/persistence/orm":basic, "http://java.sun.com/xml/ns/persistence/orm":version, "http://java.sun.com/xml/ns/persistence/orm":many-to-one, "http://java.sun.com/xml/ns/persistence/orm":one-to-many, "http://java.sun.com/xml/ns/persistence/orm":one-to-one, "http://java.sun.com/xml/ns/persistence/orm":many-to-many, "http://java.sun.com/xml/ns/persistence/orm":embedded, "http://java.sun.com/xml/ns/persistence/orm":transient}' is expected.
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$XSIErrorReporter.reportError(XMLSchemaValidator.java:446)
at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3271)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1837)
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.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)
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) [dom4j-1.6.1.jar:1.6.1]
at org.hibernate.cfg.AnnotationConfiguration.addInputStream(AnnotationConfiguration.java:773) [hibernate-annotations-3.4.0.GA.jar:3.3.2.GA]
... 52 more
Any thoughts?
Adrian