ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16118] New: - Exec/Java tasks hangwhen starting Tomcat.
Date Wed, 15 Jan 2003 17:28:20 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16118>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16118

Exec/Java tasks hangwhen starting Tomcat.

           Summary: Exec/Java tasks hangwhen starting Tomcat.
           Product: Ant
           Version: 1.5.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: jfarcand@apache.org


Platform: Cygwin/win32 (win2k)

Using exec or java from a build.xml file, Ant always hangs when Tomcat 4.1.x/5
is started. As an example (trying to find a worksaround), I have written a class
that start process (similar to Exec). When I'm doing:

        <java classname="RuntimeProcess" fork="true">
            <arg value="catalina start"/>
            <arg value="c:/src/jakarta-tomcat-5/build/bin"/>
            <arg value="Catalina 5.0"/>
       </java>

Tomcat starts but Ant hangs. The same behaviour occurs using the Exec task. The
timeout aatribute doesn't work for both command (java and exec). Any help will
be appreciated (if it's not a bug). I'm trying to automate the Tomcat startup
and then run jakarta-watchdog automatically, but Ant hang just after starting
Tomcat (waiting for some signal I guess) 

Another example is if you download jakarta-tomcat-5 and do ant watchdog, the
same problem will happen (this time using commons-launcher).

Thanks

-- Jeanfrancois

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message