Actually, this is not quite right. There is a bug in xerces 2.2.0 & 2.2.1 that causes this error with struts applications (such as the admin web-app). You can either use xerces 2.1.0 or the xerces nightly to make it go away (replace the files in $CATALINA_HOME/common/endorsed).
"Turner, John" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > This was answered already, yesterday. See this block of text in the error > message: > > [ERROR] Digester - -Parse Fatal Error at line 307 column 39: The string "--" > is not permitted within comments. <org.xml.sax.SAXParseException: The string > "--" is not permitted within comments.> > > In one of your XML files, probably server.xml, on line 307, you have the > string "--" inside of a comment. This is not permitted. > > If you do not have "--" on or near line 307, then what has probably happened > is that a XML element higher in the file (like line 300 or 250 or whatever) > was added and improperly terminated, throwing off the XML parser. > > Fix the comment string on or about line 307, or if there isn't one on or > about line 307, go through the file and make sure every element is properly > terminated. > > John > > > -----Original Message----- > > From: Carlos Alberto Pelaez Ayala [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, December 10, 2002 11:20 AM > > To: Tomcat Users List > > Subject: RE: Tomcat examples - reply to Carlos > > > > > > Dear Mark, thank?s for your help. Let me to say what is my > > problem. I have > > installed Tomcat 4.1.12 in Solaris 8 SPARC. I don?t use the > > binary. I use > > the source code and build my tomcat with ant and all > > libraries. Ok, i look > > the page http://localhost:8080 and my tomcat work?s fine. But > > when i try to > > see the examples (JSP examples, Servlet examples, and the > > administrator > > (/admin)) appear this message: > > > > HTTP Status 404 - /examples/jsp/ > > > > -------------------------------------------------------------- > > -------------- > > ---- > > > > type Status report > > > > message /examples/jsp/ > > > > description The requested resource (/examples/jsp/) is not available. > > > > > > -------------------------------------------------------------- > > -------------- > > ---- > > > > Apache Tomcat/4.1.12 > > > > in my directory logs, appear differents files and tells: > > > > localhost_log.txt tells: > > > > 2002-12-07 10:51:03 StandardHost[localhost]: Removing web > > application at > > context path /examples > > 2002-12-07 10:51:03 StandardHost[localhost]: > > ContainerBase.removeChild: > > stop: > > LifecycleException: Container StandardContext[/examples] has not been > > started > > at org.apache.catalina.core.StandardContext.stop > > (StandardContext.java:3569) > > at org.apache.catalina.core.ContainerBase.removeChild > > (ContainerBase.java:1036) > > at org.apache.catalina.core.StandardHostDeployer.remove > > (StandardHostDeployer.java:420) > > > > > > localhost_examples_logs.txt Tells: > > > > 2002-12-07 11:47:30 ContextConfig[/examples]: Marking this application > > unavailable due to previous error(s) > > 2002-12-07 11:47:30 StandardManager[/examples]: Seeding random number > > generator > > class java.security.SecureRandom > > 2002-12-07 11:47:30 StandardManager[/examples]: Seeding of > > random number > > generator has been completed > > 2002-12-07 11:47:30 StandardContext[/examples]: Context > > startup failed due > > to > > previous errors > > > > > > > > localhost_admin_log.txt Tells:2002-12-07 11:47:30 > > ContextConfig[/admin]: > > Marking this application unavailable due to previous error(s) > > 2002-12-07 11:47:30 StandardManager[/admin]: Seeding random > > number generator > > class java.security.SecureRandom > > 2002-12-07 11:47:30 StandardManager[/admin]: Seeding of random number > > generator > > has been completed > > 2002-12-07 11:47:30 StandardContext[/admin]: Context startup > > failed due to > > previous errors > > > > > > and catalina.out Tells: > > > > Starting service Tomcat-Standalone > > Apache Tomcat/4.1.12 > > org.xml.sax.SAXParseException: The string "--" is not permitted within > > comments. > > at > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException > > (Unknown Source) > > at > > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > > at > > org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) > > at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source) > > at > > org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown Source) > > at > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) > > at > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset > > (Unknown Source) > > at > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch > > (Unknown Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > (Unknown Source) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at > > org.apache.commons.digester.Digester.parse(Digester.java:1514) > > at org.apache.catalina.startup.ContextConfig.tldScanStream > > (ContextConfig.java:977) > > at org.apache.catalina.startup.ContextConfig.tldScanTld > > (ContextConfig.java:1006) > > at org.apache.catalina.startup.ContextConfig.tldScan > > (ContextConfig.java:870) > > at org.apache.catalina.startup.ContextConfig.start > > (ContextConfig.java:647) > > at org.apache.catalina.startup.ContextConfig.lifecycleEvent > > (ContextConfig.java:243) > > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > (LifecycleSupport.java:166) > > at org.apache.catalina.core.StandardContext.start > > (StandardContext.java:3493) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > at org.apache.catalina.core.StandardEngine.start > > (StandardEngine.java:347) > > at org.apache.catalina.core.StandardService.start > > (StandardService.java:497) > > at org.apache.catalina.core.StandardServer.start > > (StandardServer.java:2189) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:510) > > at > > org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > at > > org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > at java.lang.reflect.Method.invoke(Native Method) > > at > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > [ERROR] Digester - -Parse Fatal Error at line 307 column 39: > > The string "--" > > is > > not permitted within comments. > > <org.xml.sax.SAXParseException: The string > > "--" > > is not permitted within comments.> > > org.xml.sax.SAXParseException: The string "--" is not permitted within > > comments. > > at > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException > > (Unknown Source) > > at > > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) > > at > > org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) > > at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source) > > at > > org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown Source) > > at > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) > > at > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset > > (Unknown Source) > > at > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch > > (Unknown Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > (Unknown Source) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at > > org.apache.commons.digester.Digester.parse(Digester.java:1514) > > at org.apache.catalina.startup.ContextConfig.tldScanStream > > (ContextConfig.java:977) > > at org.apache.catalina.startup.ContextConfig.tldScanTld > > (ContextConfig.java:1006) > > at org.apache.catalina.startup.ContextConfig.tldScan > > (ContextConfig.java:870) > > at org.apache.catalina.startup.ContextConfig.start > > (ContextConfig.java:647) > > at org.apache.catalina.startup.ContextConfig.lifecycleEvent > > (ContextConfig.java:243) > > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > (LifecycleSupport.java:166) > > at org.apache.catalina.core.StandardContext.start > > (StandardContext.java:3493) > > at org.apache.catalina.core.ContainerBase.addChildInternal > > (ContainerBase.java:821) > > at org.apache.catalina.core.ContainerBase.addChild > > (ContainerBase.java:807) > > at > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) > > at org.apache.catalina.core.StandardHostDeployer.addChild > > (StandardHostDeployer.java:529) > > at java.lang.reflect.Method.invoke(Native Method) > > at org.apache.commons.beanutils.MethodUtils.invokeMethod > > (MethodUtils.java:250) > > at > > org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) > > at > > org.apache.commons.digester.Digester.endElement(Digester.java:1036) > > at > > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > > Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement > > (Unknown Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment > > ContentDispatc > > her. > > dispatch(Unknown Source) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > (Unknown Source) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > at > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > at > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > > at > > org.apache.commons.digester.Digester.parse(Digester.java:1514) > > at org.apache.catalina.core.StandardHostDeployer.install > > (StandardHostDeployer.java:335) > > at > > org.apache.catalina.core.StandardHost.install(StandardHost.java:803) > > at org.apache.catalina.startup.HostConfig.deployDescriptors > > (HostConfig.java:452) > > at org.apache.catalina.startup.HostConfig.deployApps > > (HostConfig.java:409) > > at > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) > > at org.apache.catalina.startup.HostConfig.lifecycleEvent > > (HostConfig.java:368) > > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > (LifecycleSupport.java:166) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) > > at > > org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > at > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > at org.apache.catalina.core.StandardEngine.start > > (StandardEngine.java:347) > > at org.apache.catalina.core.StandardService.start > > (StandardService.java:497) > > at org.apache.catalina.core.StandardServer.start > > (StandardServer.java:2189) > > at org.apache.catalina.startup.Catalina.start(Catalina.java:510) > > at > > org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > at > > org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > at java.lang.reflect.Method.invoke(Native Method) > > at > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > [ERROR] Digester - -Parse Fatal Error at line 307 column 39: > > The string "--" > > is > > not permitted within comments. > > <org.xml.sax.SAXParseException: The string > > "--" > > is not permitted within comments.> > > [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 > > [INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009 > > [INFO] JkMain - -Jk running ID=0 time=1/141 > > config=/www2/websev/uportal/tomcat/dist/conf/jk2.properties > > > > > > -----Mensaje original----- > > De: Mark Eggers [mailto:[EMAIL PROTECTED]] > > Enviado el: lunes, 09 de diciembre de 2002 18:26 > > Para: Tomcat Users List > > Asunto: Tomcat examples - reply to Carlos > > > > > > Carlos, > > > > My Spanish is nonexistent, so I hope I understand your > > problem. > > > > It appears that you are using Tomcat 4.1.12 with jdk > > 1.4.x. There is a different version of Tomcat 4.1.12 > > for jdk 1.3 and jdk 1.4. You will want to download > > the following file and install it (assuming you're on > > UNIX). > > > > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4 > > .1.12/bin/jaka > > rta-tomcat-4.1.12-LE-jdk14.tar.gz > > > > > > or > > > > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4 > > .1.12/bin/jaka > > rta-tomcat-4.1.12-LE-jdk14.exe > > > > for Windows. > > > > There are also some jar files you need to put in the > > <installation>/$TOMCAT_HOME/commons/endorsed. These > > jar files are: > > > > xercesImpl.jar > > xmlParserAPIs.jar > > > > If I've completely missed your question, I apologize. > > > > /mde/ > > > > just my two cents . . . . > > > > --- Carlos_Alberto_Pelaez_Ayala <[EMAIL PROTECTED]> > > wrote: > > > Gracias por tu ayuda alexander, eres muy amable. > > > Haber te comento. Lo que sucede es que instali el > > > Tomcat 4.1.12 y al parecer > > > esta corriendo, pero creo que hay algunas fallas. > > > Como te digo, cuando abro la pagina > > > http://localhost:8080, esta aparece > > > correctamente. En la parte inferior izquierda de esa > > > pagina hay unos enlaces > > > que referencian a los ejemplos, que estan en la > > > carpeta > > > /directorio_de_instalacisn/tomcat/webapps/examples. > > > Supuestamente estos > > > ejemplos ya deberman estar corriendo, pero no es > > > asm. > > > Aparecen estos errores: > > > > > > HTTP Status 404 - /examples/jsp/ > > > > > > > > -------------------------------------------------------------- > > -------------- > > > ---- > > > > > > type Status report > > > > > > message /examples/jsp/ > > > > > > description The requested resource (/examples/jsp/) > > > is not available. > > > > > > > > > > > -------------------------------------------------------------- > > -------------- > > > ---- > > > > > > Apache Tomcat/4.1.12 > > > > > > > > > Ademas de esto, aparecen unos logs que muestran > > > estos errores: > > > > > > > > > localhost_examples_logs.txt Tells: > > > > > > 2002-12-07 11:47:30 ContextConfig[/examples]: > > > Marking this application > > > unavailable due to previous error(s) > > > 2002-12-07 11:47:30 StandardManager[/examples]: > > > Seeding random number > > > generator > > > class java.security.SecureRandom > > > 2002-12-07 11:47:30 StandardManager[/examples]: > > > Seeding of random number > > > generator has been completed > > > 2002-12-07 11:47:30 StandardContext[/examples]: > > > Context startup failed due > > > to > > > previous errors > > > > > > > > > > > > localhost_admin_log.txt Tells:2002-12-07 11:47:30 > > > ContextConfig[/admin]: > > > Marking this application unavailable due to previous > > > error(s) > > > 2002-12-07 11:47:30 StandardManager[/admin]: Seeding > > > random number generator > > > class java.security.SecureRandom > > > 2002-12-07 11:47:30 StandardManager[/admin]: Seeding > > > of random number > > > generator > > > has been completed > > > 2002-12-07 11:47:30 StandardContext[/admin]: Context > > > startup failed due to > > > previous errors > > > > > > > > > and catalina.out Tells: > > > > > > Starting service Tomcat-Standalone > > > Apache Tomcat/4.1.12 > > > org.xml.sax.SAXParseException: The string "--" is > > > not permitted within > > > comments. > > > at > > > > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException > > > (Unknown Source) > > > at > > > > > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLScanner.scanComment(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset > > > (Unknown Source) > > > at > > > > > org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch > > > (Unknown Source) > > > at > > > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > > (Unknown Source) > > > at > > > > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > > Source) > > > at > > > > > org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > > Source) > > > at > > > org.apache.xerces.parsers.XMLParser.parse(Unknown > > > Source) > > > at > > > > > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown > > > Source) > > > at > > > > > org.apache.commons.digester.Digester.parse(Digester.java:1514) > > > at > > > > > org.apache.catalina.startup.ContextConfig.tldScanStream > > > (ContextConfig.java:977) > > > at > > > org.apache.catalina.startup.ContextConfig.tldScanTld > > > (ContextConfig.java:1006) > > > at > > > org.apache.catalina.startup.ContextConfig.tldScan > > > (ContextConfig.java:870) > > > at org.apache.catalina.startup.ContextConfig.start > > > (ContextConfig.java:647) > > > at > > > > > org.apache.catalina.startup.ContextConfig.lifecycleEvent > > > (ContextConfig.java:243) > > > at > > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > > > (LifecycleSupport.java:166) > > > at org.apache.catalina.core.StandardContext.start > > > (StandardContext.java:3493) > > > at > > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > > at > > > > > org.apache.catalina.core.StandardHost.start(StandardHost.java:738) > > > at > > > > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) > > > at org.apache.catalina.core.StandardEngine.start > > > (StandardEngine.java:347) > > > at org.apache.catalina.core.StandardService.start > > > (StandardService.java:497) > > > at org.apache.catalina.core.StandardServer.start > > > (StandardServer.java:2189) > > > at > > > > > org.apache.catalina.startup.Catalina.start(Catalina.java:510) > > > at > > > > > org.apache.catalina.startup.Catalina.execute(Catalina.java:400) > > > at > > > > > org.apache.catalina.startup.Catalina.process(Catalina.java:180) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at > > > > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) > > > [ERROR] Digester - -Parse Fatal Error at line 307 > > > column 39: The string "--" > > > is > > > not permitted within comments. > > > <org.xml.sax.SAXParseException: The string > > > "--" > > > is not permitted within comments.> > > > org.xml.sax.SAXParseException: The string "--" is > > > not permitted within > > > comments. > > > at > > > > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException > > > (Unknown Source) > > > at > > > > > org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLScanner.scanComment(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanComment(Unknown > > > Source) > > > at > > > > > org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown > > > Source) > > > > > > > > > > > Thank?s for try to help me, and i hope that you can found my problem. > > > > === message truncated === > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.com > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
