tags:

views:

399

answers:

2

Hi, I'm following this link (http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks) to try and figure out how to start/stop tomcat service remotely and currently I'm getting an error saying none of the taskdef class can be found. I already have ant installed, what else am I missing? And is the link a good way to start/stop tomcat service?

Thanks in advance.

+1  A: 

You need to put the catalina-ant.jar in your ant's lib directory. It comes with Tomcat.

stevedbrown
A: 

With ANT you don't need an external task. ;)

Simply use SSHExec task to start and stop (service or shell) and SCP task to copy WAR (or anything).

Quick, native and clean!

Wanderson Santos