Re: ANT deploy remote



in message <1162799141.442416.117980@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
abchilla ('abchilla@xxxxxxxx') wrote:

Simon Brooke schrieb:

in message <1162457794.324213.274360@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
abchilla ('abchilla@xxxxxxxx') wrote:

i am issuing a big problem. I want to do following.

I am working on a server, where Tomcat is installed. On my local
server i am programming with eclipse. I am using a build.xml file to
compile the code as a WAR and stuff. What i want to do now is to
deploy this war on the remote server. I know there are commands for
this. I am able to stop the application on the server. I am using a
Log File and the thing is, when i undeploy the application on remote,
the app is deleted, but not the whole path, because it is being used
by tomcat somehow. So i cant deploy the application again. Therefore i
need to stop tomcat via remote, not the application (manager) i dont
know how to do this.

http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html

this was not a really a help, due i said, i need to stop the tomcat on
remote, not working with the manager ! as is said before, it is no
problem for me deploying, stopping, applications, but i need to stop
tomcat on the remote server. if i use the exec it starts, stops tomcat
on the computer, the command was given from by just using the tomcat
path as location.

OK, why do you need to stop Tomcat on the remote server? I confess this is
something I frequently do do, but I think it is lazy and bad practice.
Does deleting the application through the manager app, and then
reinstalling the application through the manager app, not work? If not,
what precisely is the error message?

When I need to restart any of my tomcats it's a matter of

ssh <servername> -l root
/etc/init.d/tomcat5 restart

but, like I say, I don't see this as good practice and don't recommend you
do it (and, in any case, the precise command will depend on the operating
system you are using server side).

Oh, and, no, you can't ssh to my servers from outside my firewall, so it's
reasonably safe to allow root ssh.

--
simon@xxxxxxxxxxxxxx (Simon Brooke) http://www.jasmine.org.uk/~simon/
/-\ You have discovered a security flaw in a Microsoft product. You
|-| can report this issue to our security team. Would you like to
| | * Be completely ignored (default)?
| | * Receive a form email full of platitudes about how much we care?
\_/ * Spend hours helping us fix this problem on your own phone bill?
.



Relevant Pages

  • Re: Developing Web Services in JAVA using Apache Soap on a tomcat server
    ... > web server's classpath for tomcat server. ... > Apache SOAP can be used as both a client and provider of SOAP web ... > that supports Servlets and Java Server Pages, such as Apache's Tomcat ...
    (comp.lang.java.programmer)
  • RE: Tomcat issues with SBS 2003 and ISA
    ... there are any issues to use Tomcat on SBS with ISA. ... Do you have Tomcat server installed on SBS? ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • Re: Tomcat issues with SBS 2003 and ISA
    ... CA use Tomcat and though I've not used it in production, just test, there ... should be no problem AS LONG AS it doesn't want to use a port SBS IIS uses. ... there are any issues to use Tomcat on SBS with ISA. ... Do you have Tomcat server installed on SBS? ...
    (microsoft.public.windows.server.sbs)
  • Re: Virtual Network Interface
    ... High availability TomCat, you can run more than one Tomcat service for ... which in fact can be running on your secondary server all ... In regards to your backup and monitoring solution, I am not an expert in ... doing is to create a standby-server for the Tomcat service. ...
    (microsoft.public.windows.server.general)
  • RE: [PHP] Communicating with remote server
    ... On the database server, under the control of it's web server, the script ... Communicating with remote server ... both my server and the remote server have webservers with PHP ...
    (php.general)