Hi, This is how we start tomcat from ant. ${server} is your tomcat installation directory. Then we have a condition on a URL, so we know tomcat actually starts and handling HTTP requests.
<java jar="${server}/bin/bootstrap.jar" fork="true" spawn="true" dir="${server}/bin"> <jvmarg value="-Dcatalina.home=${server}" /> <arg line="start" /> </java> Notice the startup folder and catalina home argument. This is to avoid conflicts with other tomcat installations that may be on the system. E On Sun, Nov 1, 2009 at 9:16 PM, Dean Hiller <d...@alvazan.com> wrote: > I have tried from ant and programmed up a main class to start tomcat via > "catalina.bat start" and tried "catalina.bat start" from ant as well. > Lastly, I finally tried directly running the exact command that > catalina.bat > start tries to run and then ended up with classnotfound which makes no > sense > since I thought the bootstrap class is supposed to put that > together.....(any ideas?) > >