Hi, I am using ApacheDS 1.0.2 with Tomcat 5.5.20 and followed your embedded webapp example. Everything works great except for the server shutdown. ApacheDS appears to shutdown correctly with the following lines:
 
INFO: [org.apache.directory.server.jndi.ServerContextFactory] - Unbind of an LDAP service (10389) is complete.
INFO: [org.apache.directory.server.jndi.ServerContextFactory] - Sending notice of disconnect to existing clients sessions.
 
However, Tomcat doesn't completely shutdown. It appears there are a few non-daemon threads that are not being shutdown by ApacheDS causing Tomcat to not shutdown completely.
 
"pool-3-thread-1" prio=6 tid=0x0ae50c68 nid=0x898 in Object.wait() [0x0c3cf000..0x0c3cfa68] at java.lang.Object.wait(Native Method) - waiting on <0x0327ba80> (a edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue$SerializableLock) at java.lang.Object.wait(Object.java:474) at edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:316) - locked <0x0327ba80> (a edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue$SerializableLock) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:493) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:689) at java.lang.Thread.run(Thread.java:595)
 
Any ideas on how to get these threads to shutdown as well?
thanks
Jake


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.