https://issues.apache.org/bugzilla/show_bug.cgi?id=56401
--- Comment #7 from Konstantin Kolinko <knst.koli...@gmail.com> --- > I took a quick look at refactoring the AprLifecycleListener but that > is tied up with the Connector constructors and would be hard to untangle. Ack. Agreed. For a record, the call chain to AprLifecycleListener.init() is the following. [[[ at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:181) at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:96) at org.apache.catalina.connector.Connector.setProtocol(Connector.java:564) at org.apache.catalina.connector.Connector.<init>(Connector.java:66) at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:62) ]]] When parsing server.xml one needs to set properties on a Connector. Majority of those properties are propagated further to a ProtocolHandler class. Configuring a ProtocolHandler by default auto-selects between APR and non-APR implementation. That auto-selection relies on response from AprLifecycleListener.isAprAvailable(). Thus init() method is triggered. So I agree that it is difficult to untangle it. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org