tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adi Katz" <>
Subject RE: LifecycleListener Do not work
Date Wed, 23 Jul 2003 14:22:06 GMT
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
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.


-----Original Message-----
From: Shapira, Yoav []
Sent: Wednesday, July 23, 2003 2:02 PM
To: Tomcat Users List
Subject: RE: LifecycleListener Do not work

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 []
>Sent: Wednesday, July 23, 2003 4:21 AM
>Subject: LifecycleListener Do not work
>I implemented org.apache.catalina.LifecycleListener and registered it
>server.xml in the following way:
><Context path="/myapp" ...>
>  ...
>  <Listener className="mypackage.MyListener"/>
>  ...
>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 ?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message