You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Gaywood <ri...@gmail.com> on 2005/08/24 11:18:33 UTC

Remotely restart Tomcat container (not just a context)

Hi List!

I have two Tomcat installs. One is on Windows, and hosts our build
system for our web service software. The other is on Linux, and is
where the build system deploys to. I want to run unit tests on the
Windows host that hit on the freshly deployed code on the Linux host.

So far, so good but there is a snag: the web service uses JNI. So,
whenever a new context is deployed, I have to restart the Tomcat
container to avoid classloader problems -- it tries to load the JNI
wrapper class twice, which causes it to just stop working.
Unfortunatly, the JNI is non-negotiable so I can't just remove it
(which is what I'd prefer to do anyway).

About the only way I can see out of this is with a SUID or suexec CGI
script run under Apache HTTPD on the Linux host to allow the Windows
host to remotely tear down and bring up Tomcat. The system is behind
firewalls and only used for development, so the security problems
aren't too much of an issue...

Actually, I just thought of a better way: use the Ant SSH task on the
Windows system with a passwordless certificate to allow logins to the
Linux host and arbitrary command line commands. That's neater than
CGI, at least.

Can anyone suggest any better methods I have overlooked?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


MAIL FAILURE

Posted by no...@ardiri.com.
*********************************************************************
           THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*********************************************************************

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to no-reply@ardiri.com
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri (aaron@ardiri.com),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.

  http://www.contactme.biz/

Thankyou.

*********************************************************************
           THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org