Hi,
I have a problem with a webapp using RMI. When I try to shutdown Tomcat
instance, the JVM doesn't exit.
I have called jstack to see the thread dump :
http://pastebin.com/fa55647
There is a non-daemon thread : "RMI Reaper".
I've tried to add a servlet context listener to force RMI Object u
2010/1/22 Thomas Chabaud :
> I have a problem with a webapp using RMI. When I try to shutdown Tomcat
> instance, the JVM doesn't exit.
> I have called jstack to see the thread dump :
>
> http://pastebin.com/fa55647
>
> There is a non-daemon thread : "RMI Reaper".
>
> I've tried to add a servlet con
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
On 1/22/2010 11:25 AM, Thomas Chabaud wrote:
> There is a non-daemon thread : "RMI Reaper".
>
> I've tried to add a servlet context listener to force RMI Object
> unexport on shutdown, but it has no effect :
>
> http://pastebin.com/f324201e2
Hi, and thanks for your answer.
I've tried to call the setDaemon(true), but I get the following exception :
java.lang.IllegalThreadStateException
at java.lang.Thread.setDaemon(Thread.java:1232)
at
TestServletContextListener.contextDestroyed(TestServletContextListener.java:45)
Le 22/01/2010 18:13, Christopher Schultz wrote :
This thread over on the Sun forums
(http://forums.sun.com/thread.jspa?threadID=169975) says that you can
either unexport all your objects or call System.exit(). :(
Are there some objects that you may have forgotten to unexport?
I don't think so
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thomas,
On 1/25/2010 2:48 AM, Thomas Chabaud wrote:
> Le 22/01/2010 18:13, Christopher Schultz wrote :
>> This thread over on the Sun forums
>> (http://forums.sun.com/thread.jspa?threadID=169975) says that you can
>> either unexport all your objects o
Le 25/01/2010 20:53, Christopher Schultz a écrit :
You've reached way beyond my understanding of RMI at this point. Is it
possible that, like JNDI, you might have trees of objects instead of
just a flat list? In that case, you'd have to recursively
unexport/unbind objects to make sure you got eve
ew this message in context:
http://old.nabble.com/RMI-reaper-thread-prevents-JVM-from-exiting-tp27275944p30710220.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or
On 27/01/2010 07:43, Thomas Chabaud wrote:
Le 25/01/2010 20:53, Christopher Schultz a écrit :
You've reached way beyond my understanding of RMI at this point. Is it
possible that, like JNDI, you might have trees of objects instead of
just a flat list? In that case, you'd have to recursively
unex