I want to listen to contextInitialized() and contextDestroyed() events. I created jetty.xml file where I want to specify the class that will be responsible for listening. The error message I get: Unknown tag: listener.
The content of the file:
<Configure class="org.eclipse.jetty.server.Server">
<listener>
<listener-class>test.Application</listener-class>
</listener>
</Configure>