ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Martin <>
Subject <java fork="true"> does not detect process termination
Date Mon, 23 Aug 2004 14:59:06 GMT

I start a weblogic managed server with the following target:

<target name="startwlm" if="" depends="init-wl">
  <java classname="weblogic.Server" fork="yes" dir="${applications.dir}/.."
    <sysproperty key="java.library.path" path="${weblogic.home}/bin"/>
    <classpath refid="weblogic.class.path"/>
    <jvmarg line="${weblogic.jvm.args}"/> 
    <jvmarg value="-Dbea.home=${bea.home}"/> 
    <jvmarg value="-Dweblogic.Domain=${}"/> 
    <jvmarg value="-Dweblogic.Name=${}"/> 
    <jvmarg value="-Ddomain.dir=${weblogic.domain.dir}"/>

In order to shutdown this process, I call an other target like this:

<target name="stopwlm" if="" depends="init">
  <taskdef resource="net/sf/antcontrib/"/> 
  <propertycopy name="port" from="${}.port"/>
  <java classname="weblogic.Admin" fork="yes" dir="${applications.dir}/..">
    <sysproperty key="java.library.path" path="${weblogic.home}/bin"/>
    <classpath location="${weblogic.home}/lib/weblogic.jar"/>
    <arg line="-url ${}:${port}"/> 
    <arg line="-username ${weblogic.server.username}"/> 
    <arg line="-password ${weblogic.server.password}"/> 
    <arg value="SHUTDOWN"/> 

The weblogic server instance shuts down correctly (the process ID
disappears) but the ant process that ran startwlm does not return and
continues waiting. This problem exists in ant 1.5.3 and 1.6.2.

I do the same thing with the admin server and it works fine.

Does anyone have an idea of what I am doing wrong here?

Thanks in advance,


Confidentiality Notice: The information contained in this e-mail message is
intended only for the personal and confidential use of the recipient(s)
named above. If the reader of this message is not the intended recipient or
an agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is strictly
prohibited. If you have received this communication in error, please notify
us immediately by e-mail, and delete the original message. 

Message confidentiel : Les informations contenues dans ce message sont
destinees a un usage personnel et confidentiel du destinataire indique
ci-dessus. Si le lecteur de ce message n'est pas le destinataire prevu, ou
n'est pas une personne en charge de le delivrer au destinataire voulu, vous
etes par la presente informe que vous avez recu ce document par erreur, et
que tout examen, transmission, distribution ou copie de ce message est
totalement interdit. Si vous avez recu cette communication par erreur, nous
vous remercions de bien vouloir nous avertir immediatement par e-mail et de
detruire le message d'origine.

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