tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elli Albek <>
Subject Re: starting tomcat from ant not working
Date Mon, 02 Nov 2009 09:33:37 GMT
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"
    <jvmarg value="-Dcatalina.home=${server}" />
    <arg line="start" />

Notice the startup folder and catalina home argument. This is to avoid
conflicts with other tomcat installations that may be on the system.


On Sun, Nov 1, 2009 at 9:16 PM, Dean Hiller <> 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?)

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message