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] - Resources tag causes startup to fail
Date Tue, 27 Aug 2002 19:44:11 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

ken.pier@parc.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From ken.pier@parc.com  2002-08-27 19:44 -------
Repeating the docbase element in the Resources tag does not change the behavior-
 it still fails.  Instead of looking for TOMCAT_HOME/webapps/ROOT it is trying 
to find TOMCAT_HOME/ROOT which does not and should not exist:

<Context path="" docBase="ROOT" debug="9">
   <Resources className="org.apache.naming.resources.FileDirContext" docbase=
"ROOT" cached="false"/>
</Context>
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

Here is a more complete stack trace with my actual Context, which works 
properly whtn the Resources tag is commented out:

        <!-- Sparrow Context -->
          <Context path="/sparrow" docBase="sparrow" debug="9" 
crossContext="true" reloadable="true">
   <Resources className="org.apache.naming.resources.FileDirContext" 
docBase="sparrow" cached="false"/>
          </Context> 

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
java.lang.reflect.InvocationTargetException: 
java.lang.IllegalArgumentException: Document base sparrow does not exist or is 
not a readable directory
	at org.apache.naming.resources.FileDirContext.setDocBase
(FileDirContext.java:187)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty
(PropertyUtils.java:1612)
	at org.apache.commons.beanutils.PropertyUtils.setNestedProperty
(PropertyUtils.java:1506)
	at org.apache.commons.beanutils.PropertyUtils.setProperty
(PropertyUtils.java:1536)
	at org.apache.commons.beanutils.BeanUtils.setProperty
(BeanUtils.java:674)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:504)
	at org.apache.commons.digester.SetPropertiesRule.begin
(SetPropertiesRule.java:144)
	at org.apache.commons.digester.Digester.startElement(Digester.java:1030)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement
(AbstractSAXParser.java:434)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:216)
	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 - -Begin 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.startElement(Digester.java:1033)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement
(AbstractSAXParser.java:434)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(AbstractXMLDocumentParser.java:216)
	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