Reputation: 773
I have this code snippet on my app:
def listeners = grailsApplication.mainContext.servletContext.context.context.listeners
and the listeners list is empty (but there is a running tomcat instance).
So I guessed that the code is reading the server.xml file of tomcat but when I search it on the plugin directory I can not find it.
Upvotes: 0
Views: 908
Reputation: 773
There is no server.xml in tomcat plugin actually. But there is a hook to it .
I found it here.
Upvotes: 2