Content is not allowed in prolog -error - Weblogic
This is a discussion on Content is not allowed in prolog -error - Weblogic ; Hi,
I have problems with xml-files. This has happened with config.xml and=20
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=20
xml-editor which tells me that ...
-
Content is not allowed in prolog -error
Hi,
I have problems with xml-files. This has happened with config.xml and=20
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=20
xml-editor which tells me that the document is well formed and valid.=20
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=20
complete the
deployment task with ID 2 for the application kodo.
weblogic.management.ApplicationException:
Exception:weblogic.management.ApplicationException: Prepare failed. Task=20
Id =3D 2
Module: kodo Error: Error parsing file at line: 1 column: 1.=20
weblogi
c.xml.process.XMLParsingException: Error parsing file at line: 1 column:=20
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=20
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ser.java:1189)
at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
at=20
weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:154
)
at=20
weblogic.connector.deploy.dd.xml.RarLoader_Connector10.process(RarLoa
der_Connector10.java:202)
at=20
weblogic.connector.deploy.dd.xml.DDUtil.processDDFile(DDUtil.java:380
)
at=20
weblogic.connector.deploy.dd.xml.DDUtil.processRaDD(DDUtil.java:301)
at=20
weblogic.connector.deploy.dd.xml.DDUtil.processDDFiles(DDUtil.java:13
4)
at=20
weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
..java:602)
at=20
weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
..java:577)
at=20
weblogic.connector.deploy.ConnectorModule.loadConnectorDescriptors(Co
nnectorModule.java:689)
at=20
weblogic.connector.deploy.ConnectorModule.loadDescriptor(ConnectorMod
ule.java:202)
at=20
weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicatio
nContainer.java:1359)
at=20
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1184)
at=20
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
er.java:1031)
at=20
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
prepareContainer(SlaveDeployer.java:2602)
at=20
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
tainer(SlaveDeployer.java:2552)
at=20
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2474)
at=20
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:798)
at=20
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:507)
at=20
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:465)
at=20
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)
-
Re: Content is not allowed in prolog -error
Remove any blank spaces or empty lines before the xml declaration <?xml ver=
sion=3D"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=20
>complete the
>deployment task with ID 2 for the application kodo.
>weblogic.management.ApplicationException:
>Exception:weblogic.management.ApplicationException: Prepare failed. Task
>
>Id =3D 2
> Module: kodo Error: Error parsing file at line: 1 column:
>1.=20
> 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=20
>weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
>ser.java:1189)
> at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
> at=20
>weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:154
>)
> at=20
>weblogic.connector.deploy.dd.xml.RarLoader_Connector10.process(RarLoa
>der_Connector10.java:202)
> at=20
>weblogic.connector.deploy.dd.xml.DDUtil.processDDFile(DDUtil.java:380
>)
> at=20
>weblogic.connector.deploy.dd.xml.DDUtil.processRaDD(DDUtil.java:301)
> at=20
>weblogic.connector.deploy.dd.xml.DDUtil.processDDFiles(DDUtil.java:13
>4)
> at=20
>weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
>.java:602)
> at=20
>weblogic.connector.deploy.dd.xml.DDUtil.getConnectorDescriptor(DDUtil
>.java:577)
> at=20
>weblogic.connector.deploy.ConnectorModule.loadConnectorDescriptors(Co
>nnectorModule.java:689)
> at=20
>weblogic.connector.deploy.ConnectorModule.loadDescriptor(ConnectorMod
>ule.java:202)
> at=20
>weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicatio
>nContainer.java:1359)
> at=20
>weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
>er.java:1184)
> at=20
>weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
>er.java:1031)
> at=20
>weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
>prepareContainer(SlaveDeployer.java:2602)
> at=20
>weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon
>tainer(SlaveDeployer.java:2552)
> at=20
>weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
>laveDeployer.java:2474)
> at=20
>weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
>veDeployer.java:798)
> at=20
>weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
>oyer.java:507)
> at=20
>weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
>loyer.java:465)
> at=20
>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)