javax.xml.bind.UnmarshalException: unexpected element (uri:" ", local:"role"). Expected elements are <{ }Service>,<{ }Resource>,<{ }JndiProvider>,<{ }Connector>,<{ }Container>

nabble.com | 4 months ago
  1. 0

    TomEE Users - SSL install config errors.

    nabble.com | 4 months ago
    javax.xml.bind.UnmarshalException: unexpected element (uri:" ", local:"role"). Expected elements are <{ }Service>,<{ }Resource>,<{ }JndiProvider>,<{ }Connector>,<{ }Container>
  2. 0

    How to configure a datasource?

    openejb-users | 9 years ago | satsuma
    org.apache.openejb.OpenEJBException: Unable to read OpenEJB configuration file at /opt/openejb-3.0-beta-1/conf/openejb.xml: unexpected element (uri:"http://www.openejb.org/System/Configuration", local:"Resourse"). Expected elements are <{http://www.openejb.org/System/Configuration}Container>,<{http://www.openejb.org/System/Configuration}ConnectionManager>,<{http://www.openejb.org/System/Configuration}SecurityService>,<{http://www.openejb.org/System/Configuration}ProxyFactory>,<{http://www.openejb.org/System/Configuration}Resource>,<{http://www.openejb.org/System/Configuration}TransactionManager>,<{http://www.openejb.org/System/Configuration}JndiProvider>,<{http://www.openejb.org/System/Configuration}Connector>,<{http://www.openejb.org/System/Configuration}Deployments>
  3. 0

    Unmarshaling the Body from SOAP | Java.net

    java.net | 1 year ago
    javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"shipTo"). Expected elements are <{}address>,<{}comment>,<{}purchaseOrder>,<{}purchaseOrders>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Unmarshalling error when I rename my mapping file to make sure at runtime this mapping is referred not the generated one.

    openejb-users | 4 years ago | Bibhuti
    orm.xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee", lo cal:"entity"). Expected elements are <{http://java.sun.com/xml/ns/persistence/orm}package> ,<{http://java.sun.com/xml/ns/persistence/orm}sequence-generator>,<{http://java.sun.com/xm l/ns/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml/ns/persistence/orm}named -query>,<{http://java.sun.com/xml/ns/persistence/orm}access>,<{http://java.sun.com/xml/ns/ persistence/orm}table-generator>,<{http://java.sun.com/xml/ns/persistence/orm}persistence- unit-metadata>,<{http://java.sun.com/xml/ns/persistence/orm}entity>,<{http://java.sun.com/ xml/ns/persistence/orm}embeddable>,<{http://java.sun.com/xml/ns/persistence/orm}catalog>,< {http://java.sun.com/xml/ns/persistence/orm}named-native-query>,<{http://java.sun.com/xml/ ns/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml/ns/persistence/orm}sc hema>,<{http://java.sun.com/xml/ns/persistence/orm}description>
  6. 0

    Re: Unmarshalling error when I rename my mapping file to make sure at runtime this mapping is referred not the generated one.

    openejb-users | 4 years ago | Bibhuti
    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/ns/javaee", lo cal:"entity"). Expected elements are <{http://java.sun.com/xml/ns/persistence/orm}package> ,<{http://java.sun.com/xml/ns/persistence/orm}sequence-generator>,<{http://java.sun.com/xm l/ns/persistence/orm}mapped-superclass>,<{http://java.sun.com/xml/ns/persistence/orm}named -query>,<{http://java.sun.com/xml/ns/persistence/orm}access>,<{http://java.sun.com/xml/ns/ persistence/orm}table-generator>,<{http://java.sun.com/xml/ns/persistence/orm}persistence- unit-metadata>,<{http://java.sun.com/xml/ns/persistence/orm}entity>,<{http://java.sun.com/ xml/ns/persistence/orm}embeddable>,<{http://java.sun.com/xml/ns/persistence/orm}catalog>,< {http://java.sun.com/xml/ns/persistence/orm}named-native-query>,<{http://java.sun.com/xml/ ns/persistence/orm}sql-result-set-mapping>,<{http://java.sun.com/xml/ns/persistence/orm}sc hema>,<{http://java.sun.com/xml/ns/persistence/orm}description>

  1. davidvanlaatum 1 times, last 9 months ago
8 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.xml.bind.UnmarshalException

    unexpected element (uri:" ", local:"role"). Expected elements are <{ }Service>,<{ }Resource>,<{ }JndiProvider>,<{ }Connector>,<{ }Container>

    at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent()
  2. Old JAXB Runtime
    SAXConnector.startElement
    1. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:662)
    2. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:258)
    3. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:253)
    4. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:120)
    5. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:105)
    6. com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:262)
    7. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:498)
    8. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:480)
    9. com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:150)
    9 frames
  3. Java RT
    XMLFilterImpl.startElement
    1. org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:551)
    1 frame
  4. OpenEJB :: OSGi :: Core
    JaxbOpenejb$NamespaceFilter.startElement
    1. org.apache.openejb.config.sys.JaxbOpenejb$NamespaceFilter.startElement(JaxbOpenejb.java:350)
    1 frame
  5. Java RT
    XMLFilterImpl.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
    2. com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
    3. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:357)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2787)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    6. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
    7. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
    8. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
    9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
    10. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
    11. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
    12. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
    13. org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
    13 frames
  6. Old JAXB Runtime
    UnmarshallerImpl.unmarshal
    1. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:258)
    2. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:236)
    3. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:288)
    3 frames
  7. OpenEJB :: OSGi :: Core
    DeploymentLoader.load
    1. org.apache.openejb.config.sys.JaxbOpenejb.unmarshal(JaxbOpenejb.java:324)
    2. org.apache.openejb.config.sys.JaxbOpenejb.unmarshal(JaxbOpenejb.java:332)
    3. org.apache.openejb.config.ReadDescriptors.readResourcesXml(ReadDescriptors.java:255)
    4. org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:149)
    4 frames
  8. OpenEJB :: TomEE :: Catalina
    GlobalListenerSupport.lifecycleEvent
    1. org.apache.tomee.catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java:2054)
    2. org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:136)
    2 frames
  9. Glassfish Core
    ContainerBase$ContainerBackgroundProcessor.run
    1. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    2. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    3. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1371)
    4. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1543)
    5. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1553)
    6. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1521)
    6 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame