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 12059] New: - Resources tag causes startup to fail
Date Mon, 26 Aug 2002 22:19:08 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=12059>.
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=12059

Resources tag causes startup to fail

           Summary: Resources tag causes startup to fail
           Product: Tomcat 4
           Version: 4.1.8
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ken.pier@parc.com


Entry in server.xml:
        <!-- tomcat root context -->
          <context path="" docbase="root" debug="9">
          <resources classname="org.apache.naming.resources.filedircontext" 
cached="false"/>
          </context>

Causes Catalina to look for a bogus docbase that does not and should not exist.

catalina.out log entry is:
java.lang.reflect.InvocationTargetException: 
java.lang.IllegalArgumentException: Document 
base /tilde/pier/asd/CopyOf11Jun02_4.1.8/tomcat/ROOT does not exist or is not a 
readable directory
	at org.apache.naming.resources.FileDirContext.setDocBase
(FileDirContext.java:187)
	at org.apache.catalina.core.StandardContext.setResources
(StandardContext.java:1113)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java:216)
	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
(AbstractSAXParser.java:559)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:217)
	at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement
(XMLNamespaceBinder.java:594)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement
(XMLDTDValidator.java:817)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
(XMLDocumentFragmentScannerImpl.java:748)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(XMLDocumentFragmentScannerImpl.java:1454)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:333)
	at org.apache.xerces.parsers.StandardParserConfiguration.parse
(StandardParserConfiguration.java:529)
	at org.apache.xerces.parsers.StandardParserConfiguration.parse
(StandardParserConfiguration.java:585)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
	at org.apache.xerces.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1148)
	at org.apache.commons.digester.Digester.parse(Digester.java:1284)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
	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 - -End event threw exception 
<java.lang.reflect.InvocationTargetException>
Catalina.start: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
	at org.apache.commons.digester.Digester.createSAXException
(Digester.java:2033)
	at org.apache.commons.digester.Digester.createSAXException
(Digester.java:2053)
	at org.apache.commons.digester.Digester.endElement(Digester.java:833)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement
(AbstractSAXParser.java:559)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:217)
	at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement
(XMLNamespaceBinder.java:594)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement
(XMLDTDValidator.java:817)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
(XMLDocumentFragmentScannerImpl.java:748)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(XMLDocumentFragmentScannerImpl.java:1454)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:333)
	at org.apache.xerces.parsers.StandardParserConfiguration.parse
(StandardParserConfiguration.java:529)
	at org.apache.xerces.parsers.StandardParserConfiguration.parse
(StandardParserConfiguration.java:585)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
	at org.apache.xerces.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1148)
	at org.apache.commons.digester.Digester.parse(Digester.java:1284)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
	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)

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


Mime
View raw message