tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19454] New: - Exception during start up of tomcat: SAXParseException: The string "--" is not permitted within comments
Date Wed, 30 Apr 2003 00:27:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19454>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19454

Exception during start up of tomcat: SAXParseException: The string "--" is not permitted within
comments

           Summary: Exception during start up of tomcat: SAXParseException:
                    The string "--" is not permitted within comments
           Product: Tomcat 4
           Version: 4.1.24
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tamdi007@yahoo.com


Hi,

I am trying out tomcat, for the very first time. I unzipped the jar available 
on the jakarta site. 
Made the following changes:
1) Enable the ROOT context. Edit install_dir/conf/server.xml and uncomment  
   this  line: <Context path="" docBase="ROOT" debug="0"/>. Not necessary in  
   Tomcat 4.0.3 and earlier. 
2) Enable the invoker servlet. Go to install_dir/conf/web.xml and uncomment the 
   servlet-mapping element that maps the invoker servlet to /servlet/*. Not  
   necessary prior to Tomcat 4.1.12. 
3) Change the port to 80. Edit install_dir/conf/server.xml and change the port 
   attribute of the Connector element from 8080 to 80. 
4) Turn on servlet reloading. Edit install_dir/conf/server.xml and add a 
   DefaultContext subelement to the main Service element and supply true for 
   the reloadable attribute. 
5) Set the JAVA_HOME variable. Set it to refer to the base JDK directory, not 
   the bin subdirectory. 

And I started it up using the startup.bat. I got the following error. I did 
some research, and found out that the solution involved in modifying some 
DTD'd, but there were no DTD's in the extracted zip file for tomcat.

Can anyone pls guide me ?

The error snippet is as followds:

Apr 29, 2003 5:10:47 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Apr 29, 2003 5:10:47 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Apr 29, 2003 5:10:48 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Apr 29, 2003 5:10:49 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 81
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Apr 29, 2003 5:10:50 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 271 column 9: 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.XMLDocumentFragmentScannerImpl.scanComment
(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
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:1543)
        at org.apache.catalina.startup.ContextConfig.defaultConfig
(ContextConfig.java:548)
        at org.apache.catalina.startup.ContextConfig.start
(ContextConfig.java:638)
        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:3567)
        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:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Apr 29, 2003 5:10:51 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 271 column 9: 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.XMLDocumentFragmentScannerImpl.scanComment
(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
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:1543)
        at org.apache.catalina.startup.ContextConfig.defaultConfig
(ContextConfig.java:548)
        at org.apache.catalina.startup.ContextConfig.start
(ContextConfig.java:638)
        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:3567)
        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:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Apr 29, 2003 5:10:51 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 271 column 9: 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.XMLDocumentFragmentScannerImpl.scanComment
(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
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:1543)
        at org.apache.catalina.startup.ContextConfig.defaultConfig
(ContextConfig.java:548)
        at org.apache.catalina.startup.ContextConfig.start
(ContextConfig.java:638)
        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:3567)
        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:700)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java:252)
        at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
        at org.apache.commons.digester.Rule.end(Rule.java:276)
        at org.apache.commons.digester.Digester.endElement(Digester.java:1064)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
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:1562)
        at org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:385)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
        at org.apache.catalina.startup.HostConfig.deployDescriptors
(HostConfig.java:442)
        at org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:399)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:358)
        at 

.....................

org.apache.catalina.util.LifecycleSupport.fireLifecycleEventina.startup.Catalina
.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Apr 29, 2003 5:10:54 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 81
Apr 29, 2003 5:10:54 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 29, 2003 5:10:54 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=11/130  config=C:\jakarta-tomcat-4.1.24
\bin\..\conf\jk2.properties


Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message