tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amy Roh <amy...@apache.org>
Subject Re: Bug in Tomcat's admin application ?
Date Thu, 10 Apr 2003 01:34:14 GMT
Which version of tomcat are you using?  You shouldn't get the 
org.xml.sax.SAXParseException with the recent releases.  Try upgrading 
to the latest.

Amy

NAIK,ROSHAN (HP-Cupertino,ex1) wrote:
> 
>  I am not terrible sure this is a dev-list question. But my atttempts
> at user-lists and other java related lists turned out to be in vain.
> So plz dont shoot it down already ! Looking at the debug logs I feel 
> this might be a problem in some of the bundled sources. Here it goes..
> 
> Platform: java 1.4 / tomcat 4.1
> 
> Tersely, the problem is that the admin application does not
> seem to work beyond showing some of of the pages that allow you 
> to do things like "Create New Logger" etc. 
> 
> So when you try to click the "save" button on of the forms, you get this
> error on the browser. 
> 
> 
> 
> HTTP Status 404 - 
> /admin/SaveLogger
> -----------------------------------------------------
> type Status report
> message /admin/SaveLogger
> description The requested resource (/admin/SaveLogger) is not available.
> -----------------------------------------------------
> Apache Tomcat/4.1
> 
> 
> I set the debug level to 99 and the corresponding log generated is at the
> end. There it seems like
> some xml file has a "--" within comments. But I cant tell which !!
> struts-config.xml seems fine to me
> 
> 
>  web.xml & and  struts-config.xml  seem to have correct entries
> From the foll log you can see that some rogue xml file thats causing
> the problem (or the parser cant handle it). But which one ?
> or is it something else ... cuz struts-config.xml doesnt seem
> to have the error mentioned in the log.
> 
> --Roshan
> 
> 
> localhost_admin_log.*****.txt
> =========================================
> 
> 
> 2003-04-09 16:19:08 WebappLoader[/admin]: Deploying class repositories to
> work directory /opt/hpws/tomcat/work/Standalone/localhost/admin
> 2003-04-09 16:19:08 WebappLoader[/admin]: Deploy class files
> /WEB-INF/classes to
> /opt/hpws/tomcat/webapps/../server/webapps/admin/WEB-INF/classes
> 2003-04-09 16:19:08 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
> to /opt/hpws/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar
> 2003-04-09 16:19:09 ContextConfig[/admin]: Configured an authenticator for
> method FORM
> 2003-04-09 16:19:09 StandardManager[/admin]: Seeding random number generator
> class java.security.SecureRandom
> 2003-04-09 16:19:09 StandardManager[/admin]: Seeding of random number
> generator has been completed
> 2003-04-09 16:19:10 StandardWrapper[/admin:default]: Loading container
> servlet default
> 2003-04-09 16:19:10 action: Loading application resources from resource
> org.apache.webapp.admin.ApplicationResources
> 2003-04-09 16:19:10 action: Initializing configuration from resource path
> /WEB-INF/struts-config.xml
> 2003-04-09 16:19:10 action: null
> org.xml.sax.SAXParseException: The string "--" is not permitted within
> comments.
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at org.apache.struts.digester.Digester.parse(Digester.java:755)
>         at
> org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1434)
>         at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
>         at org.apache.webapp.admin.ApplicationServlet.init(Unknown Source)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown
> Source)
>         at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
> Source)
>         at org.apache.catalina.core.StandardContext.start(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
> Source)
>         at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
>         at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
>         at org.apache.catalina.core.StandardHostDeployer.addChild(Unknown
> Source)
>         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:228)
>         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>         at
> org.apache.commons.digester.Digester.endElement(Digester.java:830)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> 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:1302)
>         at org.apache.catalina.core.StandardHostDeployer.install(Unknown
> Source)
>         at org.apache.catalina.core.StandardHost.install(Unknown Source)
>         at org.apache.catalina.startup.HostConfig.deployDescriptors(Unknown
> Source)
>         at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
>         at org.apache.catalina.startup.HostConfig.start(Unknown Source)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
> Source)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>         at org.apache.catalina.core.StandardHost.start(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>         at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>         at org.apache.catalina.core.StandardService.start(Unknown Source)
>         at org.apache.catalina.core.StandardServer.start(Unknown Source)
>         at org.apache.catalina.startup.Catalina.start(Unknown Source)
>         at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>         at org.apache.catalina.startup.Catalina.process(Unknown Source)
>         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(Unknown Source)
> 
> 2003-04-09 16:19:10 action: Mapping for servlet 'action' = 'null'
> 2003-04-09 16:19:16 register('-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN',
> 'jar:file:/opt/hpws/tomcat/server/webapps/admin/WEB-INF/lib/struts.jar!/org/
> apache/struts/resources/struts-config_1_0.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
> 'jar:file:/opt/hpws/tomcat/server/webapps/admin/WEB-INF/lib/struts.jar!/org/
> apache/struts/resources/web-app_2_2.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'jar:file:/opt/hpws/tomcat/server/webapps/admin/WEB-INF/lib/struts.jar!/org/
> apache/struts/resources/web-app_2_3.dtd'
> resolveEntity('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'http://java.sun.com/dtd/web-app_2_3.dtd')
>  Resolving to alternate DTD
> 'jar:file:/opt/hpws/tomcat/server/webapps/admin/WEB-INF/lib/struts.jar!/org/
> apache/struts/resources/web-app_2_3.dtd'
> Parse Fatal Error at line 551 column 44: 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 javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at org.apache.struts.digester.Digester.parse(Digester.java:755)
>        at
> org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1434)
>         at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
>         at org.apache.webapp.admin.ApplicationServlet.init(Unknown Source)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown
> Source)
>         at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown
> Source)
>         at org.apache.catalina.core.StandardContext.start(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
> Source)
>         at org.apache.catalina.core.ContainerBase.addChild(Unknown Source)
>         at org.apache.catalina.core.StandardHost.addChild(Unknown Source)
>         at org.apache.catalina.core.StandardHostDeployer.addChild(Unknown
> Source)
>         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:228)
>         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>         at
> org.apache.commons.digester.Digester.endElement(Digester.java:830)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> 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:1302)
>         at org.apache.catalina.core.StandardHostDeployer.install(Unknown
> Source)
>         at org.apache.catalina.core.StandardHost.install(Unknown Source)
>         at org.apache.catalina.startup.HostConfig.deployDescriptors(Unknown
> Source)
>         at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source)
>         at org.apache.catalina.startup.HostConfig.start(Unknown Source)
>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(Unknown
> Source)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>         at org.apache.catalina.core.StandardHost.start(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.start(Unknown Source)
>         at org.apache.catalina.core.StandardEngine.start(Unknown Source)
>         at org.apache.catalina.core.StandardService.start(Unknown Source)
>         at org.apache.catalina.core.StandardServer.start(Unknown Source)
>         at org.apache.catalina.startup.Catalina.start(Unknown Source)
>         at org.apache.catalina.startup.Catalina.execute(Unknown Source)
>         at org.apache.catalina.startup.Catalina.process(Unknown Source)
>         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(Unknown Source)
> 2003-04-09 16:19:16 StandardWrapper[/admin:invoker]: Loading container
> servlet invoker
> 2003-04-09 16:19:16 StandardWrapper[/admin:cgi]: Loading container servlet
> cgi
> 2003-04-09 16:19:16 cgi: init: loglevel set to 6
> 2003-04-09 16:19:21 action: Processing a GET for /setUpTree
> 2003-04-09 16:19:21 action:  Looking for Action instance for class
> org.apache.webapp.admin.SetUpTreeAction
> 2003-04-09 16:19:21 action:   Double checking for Action instance already
> there
> 2003-04-09 16:19:21 action:   Creating new Action instance
> 2003-04-09 16:19:23 action: Processing a GET for /EditService
> 2003-04-09 16:19:23 action: Processing a GET for /treeControlTest
> 2003-04-09 16:19:23 action:  Looking for Action instance for class
> org.apache.webapp.admin.service.EditServiceAction
> 2003-04-09 16:19:23 action:  Looking for Action instance for class
> org.apache.webapp.admin.TreeControlTestAction
> 2003-04-09 16:19:23 action:   Double checking for Action instance already
> there
> 2003-04-09 16:19:23 action:   Creating new Action instance
> 2003-04-09 16:19:23 action:   Double checking for Action instance already
> there
> 2003-04-09 16:19:23 action:   Creating new Action instance
> 2003-04-09 16:19:23 action: Entered TreeControlTestAction:perform()
> 2003-04-09 16:19:23 action: tree param is null
> 2003-04-09 16:19:23 action: Select event on
> Catalina:type=Service,name=Tomcat-Standalone
> 2003-04-09 16:19:27 action: Processing a GET for /AddLogger
> 2003-04-09 16:19:27 action:  Looking for Action instance for class
> org.apache.webapp.admin.logger.AddLoggerAction
> 2003-04-09 16:19:27 action:   Double checking for Action instance already
> there
> 2003-04-09 16:19:27 action:   Creating new Action instance
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 




---------------------------------------------------------------------
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