Hi Yoav, Eventually I used a servlet spec listener which is better to do from a lot of reasons. Regarding your suggestion on putting the listener in common/lib, It is the firest thing I try but then I have the opposite problem: my listener cannot call classes from my web-app. ...It seems there is an unbreakble wall between a web-app and tomcat and you can be either in this side or the other.
Thanks, Adi -----Original Message----- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 2:02 PM To: Tomcat Users List Subject: RE: LifecycleListener Do not work 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]