Hey all, I've recently started working with Tomcat for work. I was using Tomcat 6.0 but I've moved to Tomcat 5.5 as I was hoping my issue would be resolved be migrating. The issue is that, in my ANT script, I'm trying to stop Tomcat, do some stuff (i.e. publish a webapp), start Tomcat, and do some more stuff (i.e. publish some web services via Axis). The problem seems to be that any time I try to execute bootstrap.jar Tomcat does it's thing and then just...kind of ....hangs there. It looks like it has successfully shut down or started Tomcat as the associated behavior is reflected when I visit the site...
Anyway, if anyone can provide some pointers/tips/whatever, that would be great! Below is relevant portions of my ANT script and below that is my output from bootstrap.jar's startup process. Portions of build.xml ------------------------------------------------------------------------------------------------------ <target name="clean"> <!-- stop tomcat --> <java jar="${tomcat.home}/bin/bootstrap.jar" fork="true" failonerror="false"> <jvmarg value="-Dcatalina.home=${tomcat.home}"/> <arg line="stop"/> </java> <delete dir="${build.dir}" includeEmptyDirs="true" /> <delete dir="${services.output.dir}" includeEmptyDirs="true"/> <delete dir="${war.output.dir}" includeEmptyDirs="true" /> </target> <target name="deploy" depends="generate-wsdd"> <echo message="Deploying WAR file..."/> <copy todir="${deploy.dir}"> <fileset dir="${war.output.dir}" includes="${war.file.name}"/> </copy> <!-- start tomcat --> <java jar="${tomcat.home}/bin/bootstrap.jar" fork="true" failonerror="true"> <jvmarg value="-Dcatalina.home=${tomcat.home}"/> </java> <echo message="Deploying services..."/> <axis-admin hostname="${host}" port="${port}" xmlfile="${service.deploy.file}" failonerror="true" username="admin" password="************************" /> </target> Relevant output from bootstrap.jar ------------------------------------------------------------------------------------------------------ deploy: [echo] Deploying WAR file... [java] Jun 12, 2009 10:54:29 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent [java] INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program Files\Windows Resource Kits\Tools\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Common Files\Intuit\QBPOSSDKRuntime;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Program Files\CA\eTrust Antivirus;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Windows Imaging\;C:\Program Files\Microsoft Network Monitor 3\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\1E\NomadBranch\;C:\Program Files\QuickTime\QTSystem\ [java] Jun 12, 2009 10:54:29 AM org.apache.coyote.http11.Http11BaseProtocol init [java] INFO: Initializing Coyote HTTP/1.1 on http-8080 [java] Jun 12, 2009 10:54:29 AM org.apache.catalina.startup.Catalina load [java] INFO: Initialization processed in 393 ms [java] Jun 12, 2009 10:54:29 AM org.apache.catalina.core.StandardService start [java] INFO: Starting service Catalina [java] Jun 12, 2009 10:54:29 AM org.apache.catalina.core.StandardEngine start [java] INFO: Starting Servlet Engine: Apache Tomcat/5.5.27 [java] Jun 12, 2009 10:54:29 AM org.apache.catalina.core.StandardHost start [java] INFO: XML validation disabled [java] - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd [java] Jun 12, 2009 10:54:30 AM org.apache.catalina.core.ApplicationContext log [java] INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] [java] Jun 12, 2009 10:54:30 AM org.apache.coyote.http11.Http11BaseProtocol start [java] INFO: Starting Coyote HTTP/1.1 on http-8080 [java] Jun 12, 2009 10:54:30 AM org.apache.jk.common.ChannelSocket init [java] INFO: JK: ajp13 listening on /0.0.0.0:8009 [java] Jun 12, 2009 10:54:30 AM org.apache.jk.server.JkMain start [java] INFO: Jk running ID=0 time=0/17 config=null [java] Jun 12, 2009 10:54:30 AM org.apache.catalina.storeconfig.StoreLoader load [java] INFO: Find registry server-registry.xml at classpath resource [java] Jun 12, 2009 10:54:30 AM org.apache.catalina.startup.Catalina start [java] INFO: Server startup in 1095 ms Thanks, Brad Heller