用ant写了个发布脚本
<target name="81.deploy.dispatch">
<wldeploy action="undeploy" name="${Dispatch.ear.name}" targets="${weblogic.GW.target}"
user="${weblogic.AP.username}" password="${weblogic.AP.password}"
adminurl="${weblogic.GW.adminurl}"
debug="false" verbose="false" failonerror="false" />
<wldeploy action="deploy" name="${Dispatch.ear.name}"
source="${dist.home}/${Dispatch.ear.name}.ear" targets="${weblogic.GW.target}"
user="${weblogic.AP.username}" password="${weblogic.AP.password}"
adminurl="${weblogic.GW.adminurl}"
debug="true" verbose="true" failonerror="true"/>
</target>
执行后Colsole显示
81.deploy.dispatch:
[wldeploy] weblogic.Deployer -noexit -name dispatch -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -password ******** -undeploy
[wldeploy] weblogic.Deployer invoked with options: -noexit -name dispatch -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -undeploy 就停滞不动啦,Weblogic窗口一直开着,也没有任何异常显示见鬼了。 高分 SOS!
<target name="81.deploy.dispatch">
<wldeploy action="undeploy" name="${Dispatch.ear.name}" targets="${weblogic.GW.target}"
user="${weblogic.AP.username}" password="${weblogic.AP.password}"
adminurl="${weblogic.GW.adminurl}"
debug="false" verbose="false" failonerror="false" />
<wldeploy action="deploy" name="${Dispatch.ear.name}"
source="${dist.home}/${Dispatch.ear.name}.ear" targets="${weblogic.GW.target}"
user="${weblogic.AP.username}" password="${weblogic.AP.password}"
adminurl="${weblogic.GW.adminurl}"
debug="true" verbose="true" failonerror="true"/>
</target>
执行后Colsole显示
81.deploy.dispatch:
[wldeploy] weblogic.Deployer -noexit -name dispatch -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -password ******** -undeploy
[wldeploy] weblogic.Deployer invoked with options: -noexit -name dispatch -targets AdminServer -adminurl t3://localhost:7001 -user weblogic -undeploy 就停滞不动啦,Weblogic窗口一直开着,也没有任何异常显示见鬼了。 高分 SOS!
<wldeploy action="deploy" name="${Dispatch.ear.name}"
source="${dist.home}/${Dispatch.ear.name}.ear" targets="${weblogic.GW.target}"
user="${weblogic.AP.username}" password="${weblogic.AP.password}"
adminurl="${weblogic.GW.adminurl}"
debug="true" verbose="true" failonerror="true"/>
放到undeploy之前,先部署再反部署。
还不行的话去控制台发布试试