| Christian |
Thu Feb 05 15:22:03 GMT 2009 |
| |
Hi,
I'm facing a problem using PrimRose in a Tomcat web application.
I configured the usage of PrimRose as specified in the Documentation section on this site (customizing server.xml).
I also added a destroy() method in a "loaded at start up" servlet, that performs WebConsole and Pool termination.
When I try to hot deploy a new version of the webapp (copying a WAR file), I'm getting the exception : "PoolException: access to is locked", at getConnection invocation.
I tried to remove the WebConsole and Pool termination. In this case, the hot deploy is working fine, but TomCat never stops (some PrimRose threads are not stopped).
Is anybody facing the same problem ? What is the solution ?
Thanks in advance for your help
Christian
|
| |
| sedj |
Sat Feb 07 13:48:19 GMT 2009 |
| |
If you need to hot deploy, then add the following to tomcat's global web.xml in tomcat_home/conf/web.xml :
<servlet>
<servlet-name>PoolDestructorServlet</servlet-name>
<servlet-class>uk.org.primrose.PoolDestructorServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
|