Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-700

Must have java.sun.com access when online to deploy: Cannot unmarshall the ejb-jar.xml file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta-1, 3.0-beta-2
    • 3.0
    • deployment
    • None

    Description

      This looks like a bug in the org.apache.openejb.jee.JaxbJavaee.unmarshal code where xerces is attempting to pull down schemas from the internet.

      org.apache.openejb.OpenEJBException: Cannot unmarshall the
      ejb-jar.xml file:
      jar:file:/C:/VMZ/Temp/geronimo-deploymentUtil50850.jar!/META-INF/ejb-jar
      .xml: null
      at
      org.apache.openejb.config.ReadDescriptors.readEjbJar(ReadDescriptors.jav
      a:260)
      at
      org.apache.openejb.config.ReadDescriptors.deploy(ReadDescriptors.java:52
      )
      at
      org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(Ejb
      ModuleBuilder.java:237)
      ... 59 more
      Caused by: javax.xml.bind.UnmarshalException

      • with linked exception:
        [java.net.ConnectException: Connection timed out: connect]
        at
        com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unm
        arshallerImpl.java:196)
        at
        com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unma
        rshallerImpl.java:167)
        at
        javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmars
        hallerImpl.java:120)
        at
        javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmars
        hallerImpl.java:103)
        at
        org.apache.openejb.jee.JaxbJavaee.unmarshal(JaxbJavaee.java:103)
        at
        org.apache.openejb.config.ReadDescriptors.readEjbJar(ReadDescriptors.jav
        a:255)
        ... 61 more
        Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at
        java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
        at sun.net.www.http.HttpClient.New(HttpClient.java:304)
        at sun.net.www.http.HttpClient.New(HttpClient.java:316)
        at
        sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConn
        ection.java:817)
        at
        sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnecti
        on.java:769)
        at
        sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja
        va:694)
        at
        sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
        tion.java:938)
        at
        com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEnt
        ity(XMLEntityManager.java:973)
        at
        com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XML
        EntityManager.java:905)
        at
        com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(
        XMLEntityManager.java:872)
        at
        com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource
        (XMLDTDScannerImpl.java:282)
        at
        com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispat
        cher.dispatch(XMLDocumentScannerImpl.java:1021)
        at
        com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
        canDocument(XMLDocumentFragmentScannerImpl.java:368)
        at
        com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
        1Configuration.java:834)
        at
        com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
        1Configuration.java:764)
        at
        com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
        a:148)
        at
        com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
        actSAXParser.java:1242)
        at
        org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
        at
        com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unm
        arshallerImpl.java:194)
        ... 66 more

      Attachments

        Activity

          People

            dblevins David Blevins
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: