Hi,
I m using wlserver ant task to stop-deploy-start weblogic server after my build execution. But when I start weblogic after deployment and when the ant execution is complete the weblogic server autmatically shutdown the server. Why is it not running as a new process. Is there anything to be specificaly given in the ant task to start it as a different process.
My Ant build file is,
<project name="iRes" default="all" basedir=".">
<property name="WL_HOME" value="D:\bea8.1"/>
<property name="DOMAIN_HOME" value="D:\bea8.1\user_projects\domains\mydomain"/>
<property name="JAVA_HOME" value="D:\APPLNS\jdk1.4"/>
<target name="all" depends="stop-server,start-server,connect-server" />
<target name="init">
<taskdef name="wlserver"
classname="weblogic.ant.taskdefs.management.WLServer"/>
</target>
<target name="serverStart" depends="init">
<wlserver dir="D:\bea8.1\user_projects\domains\myClusterDomain"
host="192.168.8.66"
port="7010"
username="system"
password="weblogic"
servername="myManagedServer"
domainname="myClusterDomain"
weblogichome="D:\bea8.1\weblogic81"
beahome="D:\bea8.1"
adminserverurl="http://192.168.8.66:7001"
classpath="D:\bea8.1\jdk141_05\jre\lib\rt.jar; D:\bea8.1\weblogic81\server\lib\weblogic.jar; D:\bea8.1\weblogic81\server\lib\webservices.jar"
action="start"
fork="true"
/>
</target>
</project>
The output that I get while running the ant task is,
Buildfile: build.xml
serverStart:
[wlserver] <Aug 6, 2004 9:38:13 AM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.4.0-b92 from Sun Microsystems Inc.>
[wlserver] <Aug 6, 2004 9:38:14 AM IST> <Info> <Management> <BEA-141140> <The managed server is going to contact the admin server at
http://192.168.8.66:7001 to check if there exists a running admin
server at this URL.>
[wlserver] <Aug 6, 2004 9:38:15 AM IST> <Info> <Configuration Management> <BEA-150017> <This server is being started as a dependent managed server.>
[wlserver] <Aug 6, 2004 9:38:15 AM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284
[wlserver] WebLogic XMLX Module 8.1 SP2 Fri Dec 5 15:01:51 PST 2003 316284 >
[wlserver] <Aug 6, 2004 9:38:15 AM IST> <Info> <Configuration Management> <BEA-150015> <Connecting to the administration server
http://192.168.8.66:7001 to retrieve the initial configuration.>
[wlserver] <Aug 6, 2004 9:38:20 AM IST> <Notice> <Log Management> <BEA-170019> <The server log file D:\bea8.1\user_projects\domains\myClusterDomain\myManagedServer\myManagedServer.log is opened. All
server side log events will be written to this file.>
[wlserver] <Aug 6, 2004 9:38:50 AM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
[wlserver] <Aug 6, 2004 9:38:51 AM IST> <Notice> <WebLogicServer> <BEA-000328> <Starting WebLogic Managed Server "myManagedServer" for domain "myClusterDomain">
[wlserver] <Aug 6, 2004 9:39:02 AM IST> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class "com.sun.tools.javac.Main". Using the default javac compiler to compile JSPs.>
[wlserver] <Aug 6, 2004 9:39:04 AM IST> <Notice> <Cluster> <BEA-000138> <Listening for announcements from cluster myCluster on 237.0.0.1:7020.>
[wlserver] <Aug 6, 2004 9:39:04 AM IST> <Notice> <Cluster> <BEA-000133> <Waiting to synchronize with other running members of myCluster.>
[wlserver] <Aug 6, 2004 9:39:40 AM IST> <Notice> <Cluster> <BEA-000102> <Joining cluster myCluster on 237.0.0.1:7020>
[wlserver] <Aug 6, 2004 9:39:40 AM IST> <Notice> <WebLogicServer> <BEA-000332> <Started WebLogic Managed Server "myManagedServer" for domain "myClusterDomain" running in Development Mode>
[wlserver] <Aug 6, 2004 9:39:40 AM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
[wlserver] <Aug 6, 2004 9:39:56 AM IST> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7010, ip address 192.168.8.66>
BUILD SUCCESSFUL
Total time: 1 minute 55 seconds
[wlserver] <Aug 6, 2004 9:40:15 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to SUSPENDING>
[wlserver] <Aug 6, 2004 9:40:15 AM IST> <Notice> <HTTP> <BEA-101278> <There are no active sessions. The Web service is ready to suspend.>
[wlserver] <Aug 6, 2004 9:40:15 AM IST> <Error> <Cluster> <BEA-000103> <Disconnecting from cluster myCluster>
[wlserver] <Aug 6, 2004 9:40:15 AM IST> <Alert> <WebLogicServer> <BEA-000228> <The disabling of server logins has been requested by <WLS Kernel>>
[wlserver] <Aug 6, 2004 9:40:15 AM IST> <Alert> <WebLogicServer> <BEA-000229> <Server logins have been disabled.>
[wlserver] <Aug 6, 2004 9:40:16 AM IST> <Notice> <WebLogicServer> <BEA-000353> <Thread "ListenThread.Default" stopped listening on port 7010, ip address 192.168.8.66>
[wlserver] <Aug 6, 2004 9:40:16 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
[wlserver] <Aug 6, 2004 9:40:16 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to SHUTTING_DOWN>
Press any key to continue . . .
Thanks in advance