It shouldn't come as a surprise that that JRun-specific code doesn't work on Tomcat ;-)
I dunno the answer to your question, but googling "restart tomcat programmatically" sure comes up with a lot of results. I imagine one or more of those will point you in the right direction.
--
Adam