Starting a Clean-up program

2003-01-29 Thread Chandra Gottipati
I have a static method that starts a thread with a class that does some
clean-up tasks.

  public static void init(){
Thread t = new Thread( new ClearUserHashMapClient() );
t.start();
  }//init

How can I configure my webapp to call this init() method when I deploy my
war file on Tomcat.


Thanks,

Chandra.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Configuring error page in web.xml

2003-01-22 Thread Chandra Gottipati
I validated the web.xml file with XMLSpy and it says the file is valid!


- Original Message -
From: Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 8:55 PM
Subject: Re: Configuring error page in web.xml



 Find an IDE to validate your web.xml such as XMLSpy.  You will probably
 find that the problem is either the xml file is not well formed and/or the
 xml file is not valid based on the provided DTD.

 Jake

 At 04:44 PM 1/21/2003 -0600, you wrote:
 I am trying to configure a custom error page for 404 errors in the
web.xml
 file under \jakarta-tomcat-4.1.12\conf
 and I keep getting the following exception:
 
 
 ERROR [main] (Digester.java:1038) - End event threw exception
 java.lang.IllegalArgumentException: argument type mismatch
  at java.lang.reflect.Method.invoke(Native Method)
  at

org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
  at
 org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:491)
  at
 org.apache.commons.digester.Digester.endElement(Digester.java:1036)
  at

org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.ja
v
 a:579)
  at

org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.jav
a
 :646)
  at

org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator
.
 java:1972)
  at

org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:
8
 78)
  at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLD
o
 cumentFragmentScannerImpl.java:1144)
  at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDoc
u
 mentFragmentScannerImpl.java:987)
 
 
 this is what I have at the end of the web.xml file
 
  welcome-file-list
  welcome-fileindex.html/welcome-file
  welcome-fileindex.htm/welcome-file
  welcome-fileindex.jsp/welcome-file
  /welcome-file-list
 
error-page
  error-code404/error-code
  location/errors/errorPage.html/location
/error-page
 
 /web-app
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Configuring error page in web.xml

2003-01-21 Thread Chandra Gottipati
I am trying to configure a custom error page for 404 errors in the web.xml
file under \jakarta-tomcat-4.1.12\conf
and I keep getting the following exception:


ERROR [main] (Digester.java:1038) - End event threw exception
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at
org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:491)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
a:579)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
:646)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:1972)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:8
78)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java:1144)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:987)


this is what I have at the end of the web.xml file

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

  error-page
error-code404/error-code
location/errors/errorPage.html/location
  /error-page

/web-app


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]