Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2271

Java11: can't resolve old sun JavaEE namespaces correctly

    XMLWordPrintableJSON

Details

    Description

      Just start an application with tomee-embedded-maven-plugin and the following will occur:

      NOTE: this errors will be thrown for XMLs in the tomcat libs and also for beans.xml/web-fragements in DS:

      javax.xml.bind.UnmarshalException: unerwartetes Element (URI:"http://java.sun.com/xml/ns/javaee", lokal:"interceptors"). Erwartete Elemente
       sind <{}trim>,<{}decorators>,<{}scan>,<{}alternatives>,<{}interceptors>
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent (UnmarshallingContext.java:744)
          at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError (Loader.java:262)
          at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError (Loader.java:257)
          at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement (Loader.java:124)
          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:268)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement (UnmarshallingContext.java:574)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement (UnmarshallingContext.java:556)
          at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement (SAXConnector.java:168)
          at org.xml.sax.helpers.XMLFilterImpl.startElement (XMLFilterImpl.java:551)
          at org.apache.openejb.jee.JaxbJavaee$JavaeeNamespaceFilter.startElement (JaxbJavaee.java:293)
          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:510)
          at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement (XMLNSDocumentScannerImpl.java:374)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next (XMLDocumentFragmentScannerImpl.java:2708)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:605)
          at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next (XMLNSDocumentScannerImpl.java:112)
          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:534)
          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:888)
          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:824)
          at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:141)
          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1216)
          at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse (SAXParserImpl.java:635)
          at org.xml.sax.helpers.XMLFilterImpl.parse (XMLFilterImpl.java:357)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0 (UnmarshallerImpl.java:258)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal (UnmarshallerImpl.java:236)
          at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal (UnmarshallerImpl.java:288)
          at org.apache.openejb.jee.JaxbJavaee.unmarshalJavaee (JaxbJavaee.java:133)
          at org.apache.openejb.config.ReadDescriptors.readBeans (ReadDescriptors.java:691)
          at org.apache.openejb.config.DeploymentLoader.mergeBeansXml (DeploymentLoader.java:1196)
          at org.apache.openejb.config.DeploymentLoader.addBeansXmls (DeploymentLoader.java:1184)
          at org.apache.openejb.config.DeploymentLoader.createWebModule (DeploymentLoader.java:1098)
          at org.apache.openejb.config.DeploymentLoader.createWebModule (DeploymentLoader.java:823)
          at org.apache.openejb.config.DeploymentLoader.load (DeploymentLoader.java:234)
          at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication (TomcatWebAppBuilder.java:2347)
          at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal (TomcatWebAppBuilder.java:1197)
          at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart (TomcatWebAppBuilder.java:1130)
          at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent (GlobalListenerSupport.java:133)
          at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (LifecycleBase.java:123)

      Attachments

        Activity

          People

            Unassigned Unassigned
            tandraschko Thomas Andraschko
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: