• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Starting/stopping Tomcat 5.5 from Ant 1.6.2

 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys!
I start/stop Tomcat 5.5 from Ant 1.6.2 using the following tasks:


This works but I have a few questions:
1. is there any better solution?
2. is it possible not to print in output all those messages that come from the execution of the jar?
3. is there a way to check from Ant if Tomcat is already running or not? I asked this because now my start-tomcat task depends on stop-tomcat, but if the server is NOT running when the stop-tomcat is executed I get error messages (and then the build continues).

Thank you in advance
Giovanni :-)
[ April 07, 2005: Message edited by: Giovanni De Stefano ]
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am deploying my application after shutting down tomcat and restarting it later. I tried out your method and had a problem this approach, in that tomcat threw an error that it was unable to find the java compiler in order to compile my jsps.

I have tried the <exec> task of ant and it works fine for me


Can anyone let me know why I was getting the error using the earlier approach and if it is advisable to use <exec> instead of <java>

Thanks in advance
-Vinayak
 
reply
    Bookmark Topic Watch Topic
  • New Topic