Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

ANT deploy remote

Thread view: 
abchilla - 02 Nov 2006 09:56 GMT
Dear group,

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.

i want to stop tomcat

delete the folder of my webapp

start tomcat

deploy the war on the server.

can anyone tell me if it is possible to stop and start tomcat, not the
application?

for any help i would be soooo thankful

thanks in advance

kind regards

asad bajwa
Simon Brooke - 03 Nov 2006 15:07 GMT
> Dear group,
>
[quoted text clipped - 10 lines]
> 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

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

  The Conservative Party now has the support of a smaller proportion of
  the electorate in Scotland than Sinn Fein have in Northern Ireland.

abchilla - 06 Nov 2006 07:45 GMT
hi,

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.

Simon Brooke schrieb:

> > Dear group,
> >
[quoted text clipped - 18 lines]
>    The Conservative Party now has the support of a smaller proportion of
>    the electorate in Scotland than Sinn Fein have in Northern Ireland.
Mark Jeffcoat - 06 Nov 2006 14:42 GMT
> hi,
>
[quoted text clipped - 4 lines]
> on the computer, the command was given from by just using the tomcat
> path as location.

You may have to find a German group to ask this in; it's
difficult to tell the difference between you being vague
about what you want and you having trouble with the language.

But I'll take one more shot: you were referred to the
manager documentation at
 http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html

The answer is in there. You need to read the section
"Executing Manager Commands With Ant".

Signature

Mark Jeffcoat
Austin, TX

Simon Brooke - 06 Nov 2006 21:06 GMT
> Simon Brooke schrieb:
>
[quoted text clipped - 19 lines]
> 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.

Signature

simon@jasmine.org.uk (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?

abchilla - 10 Nov 2006 07:46 GMT
Hi there,

i know this is a really bad solution. i am working on an application,
which i did not implement. If i stop the application with the manager
and try to delete the application, all files are deleted, but the Log
files. So the folder is not deleted, which i have to do after stopping
tomcat and deleting it manual (because it is used by tomcat during
running somehow). This is the reason why I wanted to know how to stop
tomcat, in order deleting that folder. I know it would be the better
way trying figurin out, why not the application is removed cleanly. But
i dont have any clue, why this is happening.

So thank you for your support.
Andy Dingley - 10 Nov 2006 12:36 GMT
> What i want to do now is to deploy this war on the remote server.

Try reading "Java Development with Ant" (Manning Press). This describes
most permutations of Tomcat deployment with Ant, and what you can do
with it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.