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>

openejb-users | satsuma | 9 years ago
  1. 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>
  2. 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>
  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:"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>

    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:523)
    2. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:199)
    3. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:194)
    4. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:71)
    5. com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:65)
    6. com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:209)
    7. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:366)
    8. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:347)
    9. com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:101)
    9 frames
  3. Java RT
    XMLFilterImpl.startElement
    1. org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
    1 frame
  4. OpenEJB :: OSGi :: Core
    JaxbOpenejb$NamespaceFilter.startElement
    1. org.apache.openejb.config.sys.JaxbOpenejb$NamespaceFilter.startElement(JaxbOpenejb.java:256)
    1 frame
  5. Java RT
    XMLFilterImpl.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
    2. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
    3. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
    5. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
    6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    7. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
    8. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
    9. org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
    9 frames
  6. Old JAXB Runtime
    UnmarshallerImpl.unmarshal
    1. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:194)
    2. com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
    2 frames
  7. Java RT
    AbstractUnmarshallerImpl.unmarshal
    1. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:120)
    2. javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:103)
    2 frames
  8. OpenEJB :: OSGi :: Core
    OpenEJB.init
    1. org.apache.openejb.config.sys.JaxbOpenejb.unmarshal(JaxbOpenejb.java:235)
    2. org.apache.openejb.config.sys.JaxbOpenejb.readConfig(JaxbOpenejb.java:124)
    3. org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:207)
    4. org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:206)
    5. org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:149)
    6. org.apache.openejb.OpenEJB.init(OpenEJB.java:293)
    6 frames
  9. OpenEJB :: Server :: Core
    Main.main
    1. org.apache.openejb.server.Server.init(Server.java:63)
    2. org.apache.openejb.server.Main.initServer(Main.java:155)
    3. org.apache.openejb.server.Main.main(Main.java:128)
    3 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  11. OpenEJB :: OSGi :: Core
    Bootstrap.main
    1. org.apache.openejb.cli.MainImpl.main(MainImpl.java:151)
    2. org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:102)
    2 frames