Have a look at this tech tip:
http://developer.java.sun.com/developer/EJTechTips/2003/tt0626.html#2
Adi Katz wrote:
Hello,
I implemented org.apache.catalina.LifecycleListener and registered it in server.xml in the following way:
Context path=/myapp ...
...
Listener
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
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,
Eventually I used a servlet spec listener which is better to do from a
lot
of reasons.
Good.
...It seems there is an unbreakble wall between a web-app and tomcat
and
you can be either
in this side or the other.
You can be in the middle (common/lib), but all the classes that need