Posted on 2007-01-16 09:09
rednight 阅读(1342)
评论(0) 编辑 收藏
问题描述:
<[ServletContext(id=18489944,name=EBLGWeb,context-path=/)]: Deployment descriptor "/WEB-INF/bhr-tags-pagination.tld" is malformed. Check against the DTD: Content is not allowed in prolog. (line 1, column 1).>
<[ServletContext(id=18489944,name=EBLGWeb,context-path=/)]: Error while parsing the Tag Library Descriptor at "/WEB-INF/bhr-tags-pagination.tld".
org.xml.sax.SAXException: [HTTP:101248][ServletContext(id=18489944,name=EBLGWeb,context-path=/)]: Deployment descriptor "/WEB-INF/bhr-tags-pagination.tld" is malformed. Check against the DTD: Content is not allowed in prolog. (line 1, column 1).
at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java:285)
at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
at weblogic.servlet.jsp.dd.JSPEntityResolver.load(JSPEntityResolver.java:81)
at weblogic.servlet.jsp.dd.JSPEntityResolver.load(JSPEntityResolver.java:96)
at weblogic.servlet.internal.WebAppHelper.registerTagLibListeners(WebAppHelper.java:293)
at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptors(WebAppServletContext.java:2530)
at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:6163)
at weblogic.servlet.internal.WebAppServletContext.setActive(WebAppServletContext.java:6141)
at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:836)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3322)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2201)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2174)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2122)
at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3099)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1768)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:351)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
at weblogic.Server.main(Server.java:32)
>
原因分析和解决方法:
是由于某些文本编辑器(UltraEdit)存文本的时候产生的问题。可以使用text pad, word pad编辑XML格式的文件。