1 Reply Latest reply on Jun 7, 2004 10:25 AM by 3004

    Content is not allowed in prolog -error

    3004
      Hi,
      I have problems with xml-files. This has happened with config.xml and
      now I have problem with Kodo Jdo -configuration files.

      This happens when I edit these xml-files by hand. I've done it in an
      xml-editor which tells me that the document is well formed and valid.
      When trying to deploy Kodo I get the exception below.

      My server is WL8.1sp2.

      thanks for your help,
      Jari Rantala

      --- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8<

      <7.6.2004 9:55:16 EEST> <Error> <Deployer> <BEA-149201> <Failed to
      complete the
      deployment task with ID 2 for the application kodo.
      weblogic.management.ApplicationException:
      Exception:weblogic.management.ApplicationException: Prepare failed. Task
      Id = 2
      Module: kodo Error: Error parsing file at line: 1 column: 1.
      weblogi
      c.xml.process.XMLParsingException: Error parsing file at line: 1 column:
      1. Con
      tent is not allowed in prolog. - with nested exception:
      [org.xml.sax.SAXParseException: Content is not allowed in prolog.]
      org.xml.sax.SAXParseException: Content is not allowed in prolog.
      at
      weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
      ser.java:1189)
      at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
      at
      weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:154
      )
      at
      weblogic.connector.deploy.dd.xml.RarLoader_Connector10.process(RarLoa
      der_Connector10.java:202)
      at
      weblogic.connector.deploy.dd.xml.DDUtil.processDDFile(DDUtil.java:380
      )
      at
      weblogic.connector.deploy.dd.xml.DDUtil.processRaDD(DDUtil.java:301)
      at
      weblogic.connector.deploy.dd.xml.DDUtil.processDDFiles(DDUtil.java:13
      4)
      at
      weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
      .java:602)
      at
      weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
      .java:577)
      at
      weblogic.connector.deploy.ConnectorModule.loadConnectorDescriptors(Co
      nnectorModule.java:689)
      at
      weblogic.connector.deploy.ConnectorModule.loadDescriptor(ConnectorMod
      ule.java:202)
      at
      weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicatio
      nContainer.java:1359)
      at
      weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:1184)
      at
      weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
      er.java:1031)
      at
      weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
      prepareContainer(SlaveDeployer.java:2602)
      at
      weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
      tainer(SlaveDeployer.java:2552)
      at
      weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
      laveDeployer.java:2474)
      at
      weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
      veDeployer.java:798)
      at
      weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
      oyer.java:507)
      at
      weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
      loyer.java:465)
      at
      weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
      dler.java:25)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

        • 1. Re: Content is not allowed in prolog -error
          3004


          Remove any blank spaces or empty lines before the xml declaration <?xml version="1.0"?>

          Jari Rantala <jari.rantala@teliasonera.com.REMOVE_THIS> wrote:
          Hi,
          I have problems with xml-files. This has happened with config.xml and

          now I have problem with Kodo Jdo -configuration files.

          This happens when I edit these xml-files by hand. I've done it in an

          xml-editor which tells me that the document is well formed and valid.

          When trying to deploy Kodo I get the exception below.

          My server is WL8.1sp2.

          thanks for your help,
          Jari Rantala

          --- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8<

          <7.6.2004 9:55:16 EEST> <Error> <Deployer> <BEA-149201> <Failed to
          complete the
          deployment task with ID 2 for the application kodo.
          weblogic.management.ApplicationException:
          Exception:weblogic.management.ApplicationException: Prepare failed. Task

          Id = 2
          Module: kodo Error: Error parsing file at line: 1 column:
          1.
          weblogi
          c.xml.process.XMLParsingException: Error parsing file at line: 1 column:

          1. Con
          tent is not allowed in prolog. - with nested exception:
          [org.xml.sax.SAXParseException: Content is not allowed in prolog.]
          org.xml.sax.SAXParseException: Content is not allowed in prolog.
          at
          weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
          ser.java:1189)
          at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
          at
          weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:154
          )
          at
          weblogic.connector.deploy.dd.xml.RarLoader_Connector10.process(RarLoa
          der_Connector10.java:202)
          at
          weblogic.connector.deploy.dd.xml.DDUtil.processDDFile(DDUtil.java:380
          )
          at
          weblogic.connector.deploy.dd.xml.DDUtil.processRaDD(DDUtil.java:301)
          at
          weblogic.connector.deploy.dd.xml.DDUtil.processDDFiles(DDUtil.java:13
          4)
          at
          weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
          .java:602)
          at
          weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
          .java:577)
          at
          weblogic.connector.deploy.ConnectorModule.loadConnectorDescriptors(Co
          nnectorModule.java:689)
          at
          weblogic.connector.deploy.ConnectorModule.loadDescriptor(ConnectorMod
          ule.java:202)
          at
          weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicatio
          nContainer.java:1359)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:1184)
          at
          weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
          er.java:1031)
          at
          weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
          prepareContainer(SlaveDeployer.java:2602)
          at
          weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
          tainer(SlaveDeployer.java:2552)
          at
          weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
          laveDeployer.java:2474)
          at
          weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
          veDeployer.java:798)
          at
          weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
          oyer.java:507)
          at
          weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
          loyer.java:465)
          at
          weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
          dler.java:25)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)