Note: Transfer: http://dsna.iteye.com/blog/707460
spring combination proxool start tomcat connection pool error:
Attempt to refer to a unregistered pool by its alias .....
the reason:
org.springframework.web.context.ContextLoaderListener loaded prior to proxool
Workaround: proxool also changed listener loaded and before the spring
Since proxool not yet implemented the listener, so he wrote a patch to load the listener to achieve proxool way proxool-listenerCfg.jar
Download the patch modify web.xml
<servlet>
<servlet-name>ServletConfigurator</servlet-name>
<servlet-class>
org.logicalcobwebs.proxool.configuration.ServletConfigurator
</servlet-class>
<init-param>
<param-name>xmlFile</param-name>
<param-value>WEB-INF/proxool.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Read:
<context-param>
<param-name>proxoolConfigLocation</param-name>
<param-value>WEB-INF/proxool.xml</param-value>
</context-param>
<listener>
<listener-class>org.logicalcobwebs.proxool.configuration.ListenerConfigurator</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
Reproduced in: https: //my.oschina.net/u/2552902/blog/543870