0 Replies Latest reply on Mar 13, 2007 3:57 PM by 666705

    Weblogic 9.2 on solaris hangs while deploying application using(wlconfig)

    666705
      Hi Guys,
      I am trying to deploy my application (EAR) using the weblogic ant commands (wlconfig and wldeploy).As a part of deployment I create JDBC connection pools dynamically.In the process of deployment,weblogic server seems to hang and it fails to create the jdbc connection pool throwing out an error
      connection manager to ConnectionManager for: 'weblogic.rjvm.RJVMImpl ....has already been shut down
      THIS HAPPENS ONLY WITH WEBLOGIC 9.2 ON SOLARIS ,IT WORKS FINE ON WINDOWS
      here are my ant targets in build.xml

      ===========================build.xml====================
      <target name="init">
           <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer"/>
           <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"/>
      </target>

      <target name="all" depends="init">

      <wlserver username="${username}" password="${password}" servername="${domain}Server" domainname="${domain}" dir="${domain.dir}" host="${app.svr.host}" port="${app.svr.port}" generateconfig="true"/>

      <wlconfig url="t3://${app.svr.host}:${app.svr.port}" username="${username}" password="${password}">

      <query domain="${domain}" type="Server" name="${domain}Server" property="com.domain.server"/>
      <create type="JDBCConnectionPool" name="COM_XA_ConnectionPool" property="com.xa.pool">
                <set attribute="CapacityIncrement" value="2"/>
                <set attribute="DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
                <set attribute="InitialCapacity" value="1"/>
                <set attribute="MaxCapacity" value="20"/>
                <set attribute="Password" value="${com.password}"/>
                <set attribute="Properties" value="user=${com.user}"/>
                <set attribute="URL" value="jdbc:oracle:thin:@${com.host}:${com.port}:${com.sid}"/>
                <set attribute="Targets" value="${com.domain.server}"/>
                <set attribute="KeepXAConnTillTxComplete" value="true"/>
                <set attribute="RemoveInfectedConnectionsEnabled" value="false"/>
           </create>
      <create type="JDBCTxDataSource" name="COM Tx DataSource">
                <set attribute="JNDIName" value="com/OracleDS_COM"/>
                <set attribute="PoolName" value="COM_XA_ConnectionPool"/>
                <set attribute="Targets" value="${com.domain.server}"/>
      </create>
      <create type="JDBCConnectionPool" name="COM_NONXA_ConnectionPool" property="com.nonxa.pool">
                <set attribute="CapacityIncrement" value="2"/>
                <set attribute="DriverName" value="oracle.jdbc.driver.OracleDriver"/>
                <set attribute="InitialCapacity" value="1"/>
                <set attribute="MaxCapacity" value="20"/>
                <set attribute="Password" value="${com.password}"/>
                <set attribute="Properties" value="user=${com.user}"/>
                <set attribute="URL" value="jdbc:oracle:thin:@${com.host}:${com.port}:${com.sid}"/>
                <set attribute="Targets" value="${com.domain.server}"/>
           </create>
      <create type="JDBCDataSource" name="Non XA Datasource">
                <set attribute="JNDIName" value="com/OracleDS_AUDIT"/>
                <set attribute="PoolName" value="COM_NONXA_ConnectionPool"/>
                <set attribute="Targets" value="${com.domain.server}"/>
      </create>
      <create type="JDBCConnectionPool" name="SW_XA_ConnectionPool" property="com.nonxa.pool">
                <set attribute="CapacityIncrement" value="2"/>
                <set attribute="DriverName" value="oracle.jdbc.xa.client.OracleXADataSource"/>
                <set attribute="InitialCapacity" value="1"/>
                <set attribute="MaxCapacity" value="20"/>
                <set attribute="Password" value="${ssolite.password}"/>
                <set attribute="Properties" value="user=${ssolite.user}"/>
                <set attribute="URL" value="jdbc:oracle:thin:@${ssolite.host}:${ssolite.port}:${ssolite.sid}"/>
                <set attribute="Targets" value="${com.domain.server}"/>
                <set attribute="KeepXAConnTillTxComplete" value="true"/>
                <set attribute="RemoveInfectedConnectionsEnabled" value="false"/>
           </create>

           <create type="JDBCTxDataSource" name="SSOLite Tx DataSource">
                <set attribute="JNDIName" value="com/OracleDS_SSOLITE"/>
                <set attribute="PoolName" value="SW_XA_ConnectionPool"/>
                <set attribute="Targets" value="${com.domain.server}"/>
           </create>

      <create type="JMSFileStore" name="COMJMSFileStore" property="com.file.store">
                <set attribute="Directory" value="JMSFileStore"/>
           </create>

      <create type="JMSConnectionFactory" name="ComQueueFactory">
                <set attribute="JNDIName" value="ConnectionFactory"/>
                <set attribute="Targets" value="${com.domain.server}"/>
                <set attribute="XAConnectionFactoryEnabled" value="true"/>
           </create>
           <create type="JMSServer" name="COMJMSServer">
                <set attribute="Store" value="${com.file.store}"/>
                <set attribute="Targets" value="${com.domain.server}"/>
                <create type="JMSQueue" name="COMOrchExceptionQueue" property="orch.exception.queue">
                     <set attribute="JNDIName" value="queue/COMOrchExceptionQueue"/>
                </create>
                <create type="JMSQueue" name="COMOrderExceptionQueue" property="order.exception.queue">
                     <set attribute="JNDIName" value="queue/COMOrderExceptionQueue"/>
                </create>
                <create type="JMSQueue" name="COMRequestInjectorQueue">
                     <set attribute="JNDIName" value="queue/COMRequestInjectorQueue"/>
                </create>
                <create type="JMSQueue" name="COMProcessQueue">
                     <set attribute="JNDIName" value="queue/COMProcessQueue"/>
                </create>
                <create type="JMSQueue" name="COMOrderRequestInjectorQueue">
                     <set attribute="JNDIName" value="queue/COMOrderRequestInjectorQueue"/>
                </create>
                <create type="JMSQueue" name="AOPDProcessQueue">
                     <set attribute="JNDIName" value="AOPDProcessQueue"/>               
                </create>
                <create type="JMSQueue" name="AOPDResponseQueue">
                     <set attribute="JNDIName" value="AOPDResponseQueue"/>               
                </create>
                <create type="JMSTopic" name="COMOrchestratorTopic">
                     <set attribute="JNDIName" value="topic/COMOrchestratorTopic"/>
                     <set attribute="RedeliveryLimit" value="3"/>
                </create>
                <create type="JMSTopic" name="COMOrderManagerTopic">
                     <set attribute="JNDIName" value="topic/COMOrderManagerTopic"/>               
                     <set attribute="RedeliveryLimit" value="3"/>
                </create>
                <create type="JMSTopic" name="IPCJeopardyTopic">
                     <set attribute="JNDIName" value="topic/IPCJeopardyTopic"/>
                     <set attribute="RedeliveryLimit" value="3"/>
                </create>
           </create>
      </wlconfig>

      </target>


      <target name="deploy" depends="init">

           <wldeploy action="deploy"
                     source="${sw.ear.dir}"
                     name="${orch.app.name}"
                          user="${username}"
                password="${password}"
                     verbose="true"
                     adminurl="t3://${app.svr.host}:${app.svr.port}"
                     debug="true"
                     targets="${domain}Server"/>
      </target>
      ====================build.xml ends======================
      ==================log file output=======================
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:53:53 PM GMT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
      [WLServer IPCDomainwl9xtestServer] /opt/wl9/weblogic92/platform/lib/p13n/p13n-schemas.jar:/opt/wl9/weblogic92/platform/lib/p13n/p13n_common.jar:/opt/wl9/weblogic92/platform/lib/p13n/p13n_system.jar:/opt/wl9/weblogic92/platform/lib/wlp/netuix_common.jar:/opt/wl9/weblogic92/platform/lib/wlp/netuix_schemas.jar:/opt/wl9/weblogic92/platform/lib/wlp/netuix_system.jar:/opt/wl9/weblogic92/platform/lib/wlp/wsrp-common.jar>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:53:54 PM GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Server VM Version 1.5.0_06-b05 from Sun Microsystems Inc.>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:53:57 PM GMT> <Info> <Management> <BEA-140013> </opt/wl9/user_projects/domains/IPCDomainwl9xtest/config/config.xml not found>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:53:57 PM GMT> <Info> <Management> <BEA-141254> <Generating new domain directory in /opt/wl9/user_projects/domains/IPCDomainwl9xtest>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:19 PM GMT> <Info> <Management> <BEA-141255> <Domain generation completed in 21,844 milliseconds.>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:19 PM GMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP1 Sun Jan 7 00:56:31 EST 2007 883308 >
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:27 PM GMT> <Info> <WebLogicServer> <BEA-000215> <Loaded License : /opt/wl9/license.bea>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:27 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:27 PM GMT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:28 PM GMT> <Notice> <Log Management> <BEA-170019> <The server log file /opt/wl9/user_projects/domains/IPCDomainwl9xtest/servers/IPCDomainwl9xtestServer/logs/IPCDomainwl9xtestServer.log is opened. All server side log events will be written to this file.>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:35 PM GMT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:45 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:45 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:54 PM GMT> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:55 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:55 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:57 PM GMT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:8001 for protocols iiop, t3, ldap, http.>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:57 PM GMT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "IPCDomainwl9xtestServer" for domain "IPCDomainwl9xtest" running in Development Mode>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:57 PM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
      [WLServer IPCDomainwl9xtestServer] <Mar 13, 2007 2:54:57 PM GMT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
      [WLServer IPCDomainwl9xtestServer] querying
      [WLServer IPCDomainwl9xtestServer] got a response of 1
      [WLServer IPCDomainwl9xtestServer] got a response of IPCDomainwl9xtest:Name=IPCDomainwl9xtestServer,Location=IPCDomainwl9xtestServer,Type=ServerRuntime
      [wlconfig] Ok
      [wlconfig] Ok
      [wlconfig] Ok
      [wlconfig] Ok
      [wlconfig] Ok
      [wlconfig] Ok
      [wlconfig] <Mar 13, 2007 3:00:01 PM GMT> <Info> <RJVM> <BEA-000513> <Failure in heartbeat trigger for RJVM: -982335330675998003S:localhost:[8001,-1,-1,-1,-1,-1,-1]:IPCDomainwl9xtest:IPCDomainwl9xtestServer
      [wlconfig] java.io.IOException: The connection manager to ConnectionManager for: 'weblogic.rjvm.RJVMImpl@14e0e90 - id: '-982335330675998003S:localhost:[8001,-1,-1,-1,-1,-1,-1]:IPCDomainwl9xtest:IPCDomainwl9xtestServer' connect time: 'Tue Mar 13 14:54:59 GMT 2007'' has already been shut down.
      [wlconfig] java.io.IOException: The connection manager to ConnectionManager for: 'weblogic.rjvm.RJVMImpl@14e0e90 - id: '-982335330675998003S:localhost:[8001,-1,-1,-1,-1,-1,-1]:IPCDomainwl9xtest:IPCDomainwl9xtestServer' connect time: 'Tue Mar 13 14:54:59 GMT 2007'' has already been shut down
      [wlconfig] at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.java:1678)
      [wlconfig] at weblogic.rjvm.ConnectionManager.createHeartbeatMsg(ConnectionManager.java:1621)
      [wlconfig] at weblogic.rjvm.ConnectionManager.sendHeartbeatMsg(ConnectionManager.java:611)
      [wlconfig] at weblogic.rjvm.RJVMImpl$HeartbeatChecker.timerExpired(RJVMImpl.java:1521)
      [wlconfig] at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:265)
      [wlconfig] at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
      [wlconfig] at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
      [wlconfig] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
      [wlconfig] >

      BUILD FAILED
      /export/home/gsriniva/ipcwl9xtest/iProcessConductor/BEAWeblogic/build.xml:78: weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception

      Total time: 6 minutes 32 seconds
      ==========================================================