org.apache.openejb.OpenEJBException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Your current object model and mappings do not match the XML content. Check your JAXB annotations.


rprp

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Unmarshaling the Body from SOAP | Java.net
    via by Unknown author,
  • TomEE Users - SSL install config errors.
    via by Unknown author,
  • How to configure a datasource?
    via by satsuma,
  • Multi-Namespace XML Document with no prefixes
    via Stack Overflow by Ceniza
    ,
    • org.apache.openejb.OpenEJBException: Cannot unmarshall the openejb-cmp-orm.xml file: jar:f ile:/E:/Softwares/apache-tomee-1.5.1-plus/apache-tomee-plus-1.5.1/apps/EntityBean.jar!/MET A-INF/openejb-cmp-orm.xml: unexpected element (uri:"http://java.sun.com/xml
    • s/javaee", lo cal:"entity"). Expected elements are <{http://java.sun.com/xml
    • s/persistence/orm}package> ,<{http://java.sun.com/xml
    • s/persistence/orm}sequence-generator>,<{http://java.sun.com/xm l
    • s/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml
    • s/persistence/orm}named -query>,<{http://java.sun.com/xml
    • s/persistence/orm}access>,<{http://java.sun.com/xml
    • s/ persistence/orm}table-generator>,<{http://java.sun.com/xml
    • s/persistence/orm}persistence- unit-metadata>,<{http://java.sun.com/xml
    • s/persistence/orm}entity>,<{http://java.sun.com/ xml
    • s/persistence/orm}embeddable>,<{http://java.sun.com/xml
    • s/persistence/orm}catalog>,< {http://java.sun.com/xml
    • s/persistence/orm}named-native-query>,<{http://java.sun.com/xml/ ns/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml
    • s/persistence/orm}sc hema>,<{http://java.sun.com/xml
    • s/persistence/orm}description> at org.apache.openejb.config.ReadDescriptors.readCmpOrm(ReadDescriptors.java:473) at org.apache.openejb.config.ReadDescriptors.deploy(ReadDescriptors.java:95) at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:338) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:827) at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:674) at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:446) at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:364) at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:343) at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144) at org.apache.openejb.OpenEJB.init(OpenEJB.java:290) at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:233) at org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:130) at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110) at org.apache.catalina.startup.Catalina.load(Catalina.java:633) at org.apache.catalina.startup.Catalina.load(Catalina.java:658) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://java.sun.com /xml
    • s/javaee", local:"entity"). Expected elements are <{http://java.sun.com/xml
    • s/persi stence/orm}package>,<{http://java.sun.com/xml
    • s/persistence/orm}sequence-generator>,<{htt p://java.sun.com/xml
    • s/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml
    • s/pe rsistence/orm}named-query>,<{http://java.sun.com/xml
    • s/persistence/orm}access>,<{http://j ava.sun.com/xml
    • s/persistence/orm}table-generator>,<{http://java.sun.com/xml
    • s/persisten ce/orm}persistence-unit-metadata>,<{http://java.sun.com/xml
    • s/persistence/orm}entity>,<{h ttp://java.sun.com/xml
    • s/persistence/orm}embeddable>,<{http://java.sun.com/xml
    • s/persist ence/orm}catalog>,<{http://java.sun.com/xml
    • s/persistence/orm}named-native-query>,<{http: //java.sun.com/xml
    • s/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml
    • s /persistence/orm}schema>,<{http://java.sun.com/xml
    • s/persistence/orm}description> at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:253) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:120) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:105) at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:262) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:498) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:480) at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:150) at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) at org.apache.openejb.jee.JaxbJavaee$JavaeeNamespaceFilter.startElement(JaxbJavaee.java:284) at org.apache.xerces.parsers.AbstractSAXParser.startElement(UnknownSource) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(UnknownSource) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource) at org.apache.xerces.parsers.XML11Configuration.parse(UnknownSource) at org.apache.xerces.parsers.XML11Configuration.parse(UnknownSource) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(UnknownSource) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:218) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:196) at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:247) at org.apache.openejb.jee.JaxbJavaee.unmarshalJavaee(JaxbJavaee.java:132) at org.apache.openejb.config.ReadDescriptors.readCmpOrm(ReadDescriptors.java:468) ... 24 more

    Users with the same issue

    marcbouvierdavmarcbouvierdav
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    7 more bugmates