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 14193] New: - Tomcat doesn't restart if defined a new DefaultContext with a different Check Intervale time
Date Sat, 02 Nov 2002 18:06:12 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=14193>.
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=14193

Tomcat doesn't restart if defined a new DefaultContext with a different Check Intervale time

           Summary: Tomcat doesn't restart if defined a new DefaultContext
                    with a different Check Intervale time
           Product: Tomcat 4
           Version: 4.1.12
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mazzuca@rjnet.com.br


Trying to create a new "DefaultContext" to set Tomcat to be "Reloadable" with 
a "Check interval" different of the default 15s, using http://localhost/admin.

The Web application works right, and after saving and commiting the changes, 
the server.xml is updated with the following lines:

<DefaultContext className="org.apache.catalina.core.StandardDefaultContext" 
cookies="true" crossContext="true" name="defaultContext" reloadable="true" 
swallowOutput="false" useNaming="true" 
wrapperClass="org.apache.catalina.core.StandardWrapper">
        <Loader className="org.apache.catalina.loader.WebappLoader" 
checkInterval="10" debug="0" delegate="false" 
loaderClass="org.apache.catalina.loader.WebappClassLoader" reloadable="true"/>
</DefaultContext>

After that, Tomcat works well, but if you try to restart it, it crashes. At the 
end you can find the error message.

Also note that if you create a new "DefaultContext" and set "Reloadable" to 
true, but without altering the default "Check interval", Tomcat restarts 
without problems. However, in this case, if you enter again in the 
http://localhost/admin web application, and click the new icon "DefaultContext" 
in the left panel, you will receive the message "HTTP Status 500 - Error 
retrieving attribute debug".

Here is the error exception:

...
02/11/2002 14:55:55 org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassCastException
        at org.apache.catalina.startup.CreateLoaderRule.begin(ContextRuleSe
a:306)
        at org.apache.commons.digester.Digester.startElement(Digester.java:

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Abstrac
arser.java:454)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
ractXMLDocumentParser.java:217)
        at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamesp
nder.java:594)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDVa
or.java:777)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartE
t(XMLDocumentFragmentScannerImpl.java:748)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
LDocumentFragmentScannerImpl.java:333)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
a:524)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
a:580)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ava:1169)
        at org.apache.commons.digester.Digester.parse(Digester.java:1495)
        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: java.lang.ClassCastException
java.lang.ClassCastException
        at org.apache.commons.digester.Digester.createSAXException(Digester
:2312)
        at org.apache.commons.digester.Digester.createSAXException(Digester
:2332)
        at org.apache.commons.digester.Digester.startElement(Digester.java:

        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Abstrac
arser.java:454)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
ractXMLDocumentParser.java:217)
        at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamesp
nder.java:594)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDVa
or.java:777)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartE
t(XMLDocumentFragmentScannerImpl.java:748)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1453)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
LDocumentFragmentScannerImpl.java:333)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
a:524)
        at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
a:580)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ava:1169)
        at org.apache.commons.digester.Digester.parse(Digester.java:1495)
        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        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