Howdy, You're on the right track: tomcat needs the class on startup. Put your listener (and any classes it needs) in $CATALINA_HOME/common/lib instead of your webapp's WEB-INF/lib.
As always, I ask: can you justify using a Catalina-specific LifecycleListener and not a spec-standard ServletContextListener? Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Adi Katz [mailto:[EMAIL PROTECTED] >Sent: Wednesday, July 23, 2003 4:21 AM >To: [EMAIL PROTECTED] >Subject: LifecycleListener Do not work > >Hello, > >I implemented org.apache.catalina.LifecycleListener and registered it in >server.xml in the following way: > ><Context path="/myapp" ...> > ... > <Listener className="mypackage.MyListener"/> > ... ></Context> > >Naturally mypackage.MyListener is in my webapp but it seems that when >server.xml is being parsed on tomcat startup my listener class is not >accessible from catalina side. and i get a classNotFound Exception. > >I feel there is something very messy with the class loading going on in >tomcat side. > >Does anybody have an idea/examople how to implement a >org.apache.catalina.LifecycleListener and to use it in server.xml ? > >Thanks, >Adi > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]