users@glassfish.java.net

Re: Content is not allowed in prolog

From: Sahoo <sahoo_at_sun.com>
Date: Wed, 26 Nov 2008 20:53:17 +0530

The tag library XMl file seems to be having a problem. Open the XMl file
in an XML editor and fix the problem.

glassfish_at_javadesktop.org wrote:
> I see this error in my log file, but tag library seems to work fine. Is this a false positive? How do I make the error message go away?
>
> [#|2008-11-26T07:34:20.758-0500|SEVERE|sun-appserver9.1|com.sun.org.apache.commons.digester.Digester|_ThreadID=14;_ThreadName=pool-1-thread-6;_RequestID=37b6f663-f867-4e86-8272-f14da0eb98ae;|Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
> at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1038)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:656)
> at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:701)
> at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:442)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:5117)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
> at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
> at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
> at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> |#]
>
> [#|2008-11-26T07:34:20.758-0500|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=14;_ThreadName=pool-1-thread-6;_RequestID=37b6f663-f867-4e86-8272-f14da0eb98ae;|PWC1315: Error reading listeners from TLD
> javax.servlet.ServletException: PWC3037: Exception processing TLD at resource path /WEB-INF/lib/IPTTags.jar in context
> at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:703)
> at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:442)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:5117)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
> at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
> at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
> at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:656)
> at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:701)
> ... 12 more
> |#]
>
> [#|2008-11-26T07:34:20.773-0500|SEVERE|sun-appserver9.1|com.sun.org.apache.commons.digester.Digester|_ThreadID=13;_ThreadName=pool-1-thread-4;_RequestID=32c891e3-4457-43b3-8aff-4615adffdab9;|Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
> at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1038)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:656)
> at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:701)
> at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:442)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:5117)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
> at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
> at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
> at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
> at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
> at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
> at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
> at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
> at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> |#]
>
> [#|2008-11-26T07:34:20.804-0500|SEVERE|sun-appserver9.1|org.apache.catalina.core.StandardContext|_ThreadID=13;_ThreadName=pool-1-thread-4;_RequestID=32c891e3-4457-43b3-8aff-4615adffdab9;|PWC1315: Error reading listeners from TLD
> javax.servlet.ServletException: PWC3037: Exception processing TLD at resource path /WEB-INF/lib/IPTTags.jar in context /IPTWebCare
> at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:703)
> at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:442)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:5117)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
> at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
> at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
> at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
> at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
> at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
> at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
> at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
> at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> at com.sun.org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:656)
> at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:701)
> ... 19 more
> |#]
> [Message sent by forum member 'dcartee4' (dcartee4)]
>
> http://forums.java.net/jive/thread.jspa?messageID=318808
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>