2022-09-15 17:27:09 ERROR [main] SpringApplication:824 - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/xyz/abc/ra/amlnpl/config/PersistenceConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.boot.InvalidMappingException: Could not parse mapping document: jar:file:/C:/Users/myUser/.m2/repository/org/jbpm/jbpm-kie-services/7.72.0.Final/jbpm-kie-services-7.72.0.Final.jar!/META-INF/Servicesorm.xml (INPUT_STREAM)
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://xmlns.jcp.org/xml/ns/persistence/orm":named-query}'. One of '{"http://xmlns.jcp.org/xml/ns/persistence/orm":sql-result-set-mapping, "http://xmlns.jcp.org/xml/ns/persistence/orm":mapped-superclass, "http://xmlns.jcp.org/xml/ns/persistence/orm":entity, "http://xmlns.jcp.org/xml/ns/persistence/orm":embeddable, "http://xmlns.jcp.org/xml/ns/persistence/orm":converter}' is expected.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204) ~[?:?]
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:511) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3587) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1971) ~[?:?]
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:829) ~[?:?]
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:570) ~[?:?]
at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:71) ~[jaxb-runtime-2.3.6.jar:2.3.6]
at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:45) ~[jaxb-runtime-2.3.6.jar:2.3.6]
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXEventConnector.handleStartElement(StAXEventConnector.java:231) ~[jaxb-runtime-2.3.6.jar:2.3.6]
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXEventConnector.bridge(StAXEventConnector.java:100) ~[jaxb-runtime-2.3.6.jar:2.3.6]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:430) ~[jaxb-runtime-2.3.6.jar:2.3.6]
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:405) ~[jaxb-runtime-2.3.6.jar:2.3.6]
at org.hibernate.boot.jaxb.internal.AbstractBinder.jaxb(AbstractBinder.java:172) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.jaxb.internal.MappingBinder.doBind(MappingBinder.java:61) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.jaxb.internal.AbstractBinder.doBind(AbstractBinder.java:103) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.jaxb.internal.AbstractBinder.bind(AbstractBinder.java:58) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:43) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.jaxb.internal.InputStreamXmlSource.doBind(InputStreamXmlSource.java:38) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.spi.XmlMappingBinderAccess.bind(XmlMappingBinderAccess.java:79) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.model.process.internal.ScanningCoordinator.applyScanResultsToManagedResources(ScanningCoordinator.java:221) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.model.process.internal.ScanningCoordinator.coordinateScan(ScanningCoordinator.java:82) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.prepare(MetadataBuildingProcess.java:107) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:269) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:182) ~[hibernate-core-5.6.9.Final.jar:5.6.9.Final]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.