Accessing AliveServerCount for cluster, independent of Managed Servers

Hi,
I'm looking at a script to check the AliveServerCount value for a given cluster, but am only aware of this value existing within the scope of each ServerRuntime underneath the domainRuntime mode on the admin server. Is there not an authoritative place for this value? We monitor it via a BMC plugin, and it reports this value as a direct aatribute of the cluster, without referring to any servers specifically.
Any clues if I can get this value more easily? No sign of a getAliveServerCount()...
Additionally, if a Managed server is down, what would happen if I query it's ServerRuntime data via the domainRuntime from the admin server? An exception would be thrown? Mostly here i'm looking at JMSRuntime data, queue sizes etc, but also general data like Hogging Threads
Thanks
Chris

Hi Chris,
1).
If you want to get the AliveServerCount of your Cluster ...then you need to invoke getAliveServerCount() method on "*weblogic.management.runtime.ClusterRuntimeMBean*"
In the Following Link...there is a Program mentioned which displays the State of All the Servers Available in a Cluster:
http://jaysensharma.wordpress.com/2009/12/05/cluster-details-jmx/
The Program mentioned in the Above link has one line where it gets the ClusterRuntimeMBean object:
for(ObjectName cl:cluster_list)
System.out.println(“######### \n Cluster Name: ” + (String) connection.getAttribute(cl,”Name”));
ObjectName[] servers = (ObjectName[])connection.getAttribute(cl,”Servers”);
at this portion of the Code you can invoke the "AliveServerCount"
<font color=green>
*2). Mostly here i'm looking at JMSRuntime data, queue sizes etc, but also general data like Hogging Threads.* </font>
In the Following Link you will find the JMX code for JMS, JVM and ThreadPool Monitoring Script in a Single Code.
http://jaysensharma.wordpress.com/2009/12/06/jdbc_jms_threadpool_jvm-monitoring/
Thanks
Jay SenSharma

Similar Messages

  • Command for STOPPING  admin and managed servers

    I am writing a script for our application, which apart from building and
    deploying application, also needs to stop and start both admin and managed
    servers. Is there any command available for properly stopping the weblogic
    servers? ( something that "initiates the shutdown")
    Thanks

    Scott, could you try specifying the protocol: t3 in the url of the
    servers.
    eg) java weblogic.Admin -url t3://172.17.13.46:7013 -username system
    -password
    xxx SHUTDOWN
    -mihir
    Scott Jones wrote:
    I have a script that shutsdown all my servers java weblogic.Admin -url
    neo.conway.acxiom.com:$S4_ONLINE_PORT SHUTDOWN -username system
    -password $S4_WLS_ADMIN_PW
    java weblogic.Admin -url neo.conway.acxiom.com:$S4_S4MT_PORT SHUTDOWN
    -username system -password $S4_WLS_ADMIN_PW
    java weblogic.Admin -url neo.conway.acxiom.com:$S4_WLS_ADMIN_PORT
    SHUTDOWN -username system -password $S4_WLS_ADMIN_PWThe first two
    lines shut down my managed server. The last shuts down my admin
    server. Scott [email protected]
    "Mihir Kulkarni" <[email protected]> wrote in
    message news:[email protected] here -
    Solaris 2.7 with WLS 60 sp1.
    I am not facing any problems, though!
    Fyi, my managed-server is not in a cluster.
    JD wrote:
    I am running on Solaris 2.7 using WL6.0sp1.
    Mihir Kulkarni <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0transitional//en">
    <html>
    Hi,
    <br>Could you please specify on which platform are youfacing this problem.Also,
    which sp of the WLS 60 are you using ?
    <p>I tried the weblogic.Admin SHUTDOWN command on NT andSolaris and
    it
    runs correctly on both. These are the results:
    <p><b>on NT:</b>
    <br>on the client:
    <br>java weblogic.Admin -url t3://172.17.13.46:7013-username system
    -password
    xxx SHUTDOWN
    <br>Shutdown initiated
    <br>The shutdown sequence has been initiated.
    <p>on the Managed server:
    <br><Jun 13, 2001 11:45:49 AM PDT> <Alert><WebLogicServer>
    <The
    disabling of server
    <br> logins has been requested by system>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Alert><WebLogicServer>
    <Server
    logins have been
    <br> disabled.>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Alert><WebLogicServer>
    <Server
    shutdown has bee
    <br>n requested by system>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Alert><WebLogicServer>
    <The
    shutdown sequence h
    <br>as been initiated.>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Info><WebLogicServer> <Server
    shutdown is comme
    <br>ncing NOW and is irreversible.>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Info> <HTTP> <[HTTPstandAloneServer]
    Destroying
    <br> servlets in default servlet context>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Info> <JMS><Undeployed
    4 default connection fac
    <br>tories.>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Info> <JMS> <JMSshutdown
    is complete.>
    <br><Jun 13, 2001 11:45:49 AM PDT> <Info><WebLogicServer> <Removing
    "ClientContext
    <br>- id: '#|standAloneServer|1.992457846784', bound:'false', dead:
    'false'"
    becaus
    <br>e of hard disconnect timeout.>
    <br><Jun 13, 2001 11:45:50 AM PDT> <Info><WebLogicServer> <Requesting
    all threads t
    <br>o perform their own shutdown.>
    <br><Jun 13, 2001 11:45:50 AM PDT> <Info><WebLogicServer> <Shutting
    down Thread[SSL
    <br>ListenThread,5,WebLogicServer]>
    <br><Jun 13, 2001 11:45:50 AM PDT> <Info><WebLogicServer> <Waiting
    20 seconds for t
    <br>hreads to complete shutdown.>
    <br><Jun 13, 2001 11:45:50 AM PDT> <Info><WebLogicServer> <Shutting
    down Thread[Lis
    <br>tenThread,5,WebLogicServer]>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Info><WebLogicServer> <Stopping
    execute threads
    <br>.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '0' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '1' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '2' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '3' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '4' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '5' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '6' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '7' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '8' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '9' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '10' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '11' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '12' for queue: 'default'' stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '0' for queue: '__weblogic_admin_html_queue''stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '1' for queue: '__weblogic_admin_html_queue''stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '0' for queue: '__weblogic_admin_rmi_queue''stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Critical> <Kernel><Execute
    Thread: 'ExecuteThre
    <br>ad: '1' for queue: '__weblogic_admin_rmi_queue''stopped.>
    <br><Jun 13, 2001 11:46:10 AM PDT> <Info><WebLogicServer> <Shutdown
    has completed.>
    <p><b>on Solaris platform:</b>
    <br>on client:
    <br>java weblogic.Admin -url t3://willard.beasys.com:7003-username system
    -xxx mihirk00 SHUTDOWN
    <br>Shutdown initiated
    <br>The shutdown sequence has been initiated.
    <p>on the Managed server:
    <br><Jun 13, 2001 11:52:26 AM PDT> <Alert><WebLogicServer>
    <Server
    shutdown has been requested by system>
    <br><Jun 13, 2001 11:52:26 AM PDT> <Alert><WebLogicServer>
    <The
    shutdown sequence has been initiated.>
    <br><Jun 13, 2001 11:52:26 AM PDT> <Emergency><WebLogicServer>
    <ListenThread.run() failed: java.lang.ThreadDeath>
    <br><Jun 13, 2001 11:52:27 AM PDT> <Emergency><WebLogicServer>
    <The WebLogic Server is no longer listening forconnections. You should
    probably restart it.>
    <br><Jun 13, 2001 11:52:27 AM PDT> <Alert><WebLogicServer>
    <Server
    shutdown has been requested by system>
    <br><Jun 13, 2001 11:52:27 AM PDT> <Alert><WebLogicServer>
    <The
    shutdown sequence has been initiated.>
    <p>So, it works fine for me.
    <br>Please let me know if I am missing something.
    <p>cheers,
    <br>Mihir
    <br>
    <p>Scott Simpson wrote:
    <blockquote TYPE=CITE>"JD" <[email protected]> wrote
    in message
    <br><a
    href="news:[email protected]">news:[email protected]</a>...
    <br>> I ran this problem past BEA support and as usualthey can not duplicate
    <br>the problem.
    <p>They can't duplicate the problem! Everybody on thisnewsgroup has
    the
    same
    <br>problem. How can they not duplicate it?!</blockquote>
    </html>
    [att1.html]

  • Commands for STOPPING admin and managed servers

    I am writing a script for our application, which apart from building and
    deploying application, also needs to stop and start both admin and managed
    servers. Is there any command available for properly stopping the weblogic
    servers? ( something that "initiates the shutdown")
    Thanks

    sorry i haven't moved up to 6.0 yet, so i don't know much about it :(
    hope someone else can help you there
    Manmari wrote:
    thanks bhavin. I will try this on my 6.0 However what is the command for
    stopping any of my "managed servers"? Is it the same or something like
    java weblogic.Managed "t3://managedserver:7003" SHUTDOWN
    Have you tried it. I founf a note on other newsgroup that this does not work
    for maged servers. Do you know the solution? Does it work for you?
    youe help is much appreciated
    Thanks
    "bhavin patel" <[email protected]> wrote in message
    news:[email protected]..
    i don't know if this is what you are looking for, but to stop wl 5.10
    you just need to run the weblogic.Admin class
    like this
    java weblogic.Admin "t3://yourserver:7001" SHUTDOWN <username> <password>
    hth
    Manmari wrote:
    I am writing a script for our application, which apart from building and
    deploying application, also needs to stop and start both admin and
    managed
    servers. Is there any command available for properly stopping theweblogic
    servers? ( something that "initiates the shutdown")
    Thanks

  • Unable to access WLS_FORMS for Work and asset management via weblogic

    **Hi All,**
    **I am in the process of installing Oracle WAM 10.3.4 on Windows x86 64bit, Oracle 11.2.0.1 database Java 1.6.0_23.**
    **I have already installed everything and have started the WLS_FORMS server from weblogic console. However when I am trying to access the forms website - I am just getting 404.**
    **Weblogic installed in : C:\SPL\Oracle\middleware\wlserver1034**
    **Instance in : C:\SPL\Oracle\middleware\wam_inst1**
    **server in : C:\SPL\Oracle\middleware\CCHDEV1**
    **here is my config.properties for WAM:**
    root_path=C:/SPL/WAMCCH/synergencchdev1/sia/
    app_server=http://ldelara-ph.splwg.com:9001/cchdev1/
    help_default_page=webhelp/wwhelp/wwhimpl/js/html/wwhelp.htm?context=Overview&topic=uo_whatsnew
    mail_server=mail.server.com
    asp_url=http://ldelara-ph.splwg.com:8001/
    init_integration_table=true
    chart_xml_path=C:/SPL/WAMCCH/synergencchdev1/sia/charts/data
    max_chart_records=20000
    forms_servlet=frmservlet?config=wam
    forms_server=http://ldelara-ph.splwg.com:9001/forms/
    forms_report_service_name=RptSvr_LDELARA-PH_wam_inst1
    forms_report_server_url=http://ldelara-ph.splwg.com:8888/reports/rwservlet
    forms_tnsname=cchdev1
    report_cgicmd_key=report_cgicmd_key1
    debug_session_level=INFO
    debug_session_filter=synergen
    debug_session_method_filter=
    application=synergen
    datasource=synergen
    default_locale=en-us
    charset_to_use=UTF-8
    file_prefix=documents
    log_requests=false
    move_requests_to_history=false
    home_page_url=Home?tgt=Main
    logon_page_url=Logon?tgt=Main
    logon_error_url=Logon?tgt=Failure
    logoff_page_url=Logon?tgt=Main
    ssoMode=false
    event_queue_module=EventQueue
    event_queue_page=Results
    default_username=synergenguest
    queue_retries=1
    auto_logon_expire=30
    max_user_windows=3
    db_proxy_session_helper_class=synergen.db.OracleAsDbProxySessionHelper
    sia_integration_url=http://ldelara-ph.splwg.com:9001/cchdev1/synergen/
    repair_revoked_metadata_age_in_days = 30
    WLS_FORMS.out
    the JEE version.>
    *************** Starting SIA Application Server ***************
    Configuring log4j...
    configuration file to be used = C:\SPL\WAMCCH\synergen\CCHDEVwaminst\sia\WEB-INF\classes\wam-log4j.properties
    Finished configuring log4j...
    ************* Started loading config properties *************
    Listing config properties
    forms_report_server_url=http://ldelara-ph.splwg.com:9001/reports/rwservlet
    forms_tnsname=WLS_FORMS
    asp_url=http://ldelara-ph.splwg.com:9001/
    log_requests=false
    forms_servlet=frmservlet?config=wam
    default_locale=en-us
    root_path=C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/
    logon_error_url=Logon?tgt=Failure
    file_prefix=documents
    queue_retries=1
    help_default_page=webhelp/wwhelp/wwhimpl/js/html/wwhelp.htm?context=Overview&topic=uo_whatsnew
    debug_session_method_filter=
    db_proxy_session_helper_class=synergen.db.OracleAsDbProxySessionHelper
    ssoMode=false
    home_page_url=Home?tgt=Main
    auto_logon_expire=30
    report_cgicmd_key=report_cgicmd_key1
    forms_server=http://ldelara-ph.splwg.com:9001/forms/
    init_integration_table=true
    logon_page_url=Logon?tgt=Main
    app_server=http://ldelara-ph.splwg.com:9001/wam_inst1/
    repair_revoked_metadata_age_in_days=30
    default_username=synergenguest
    forms_report_service_name=RptSvr_LDELARA-PH_wam_inst1
    application=synergen
    event_queue_page=Results
    charset_to_use=UTF-8
    event_queue_module=EventQueue
    move_requests_to_history=false
    debug_session_filter=synergen
    datasource=synergen
    logoff_page_url=Logon?tgt=Main
    mail_server=mail.server.com
    sia_integration_url=http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/
    debug_session_level=INFO
    chart_xml_path=C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/charts/data/
    max_user_windows=3
    max_chart_records=20000
    Setting derived paths
    xmlPath = C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/xml/
    logPath = C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/logs/
    debugPath = C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/debug/
    Chart Directory = C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/charts/
    Documents Path = C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/documents/
    Temporary Documents Path = C:/SPL/WAMCCH/synergen/CCHDEVwaminst/sia/tempdocs/
    Loading converted properties
    ************* Completed loading config properties *************
    Database Connection Factory Settings
    Accessing MetaData from Database
    Database jdbc:oracle:thin:@ldelara-ph.splwg.com:1521:CCHDEV
    JDBC Driver Oracle JDBC driver/11.2.0.2.0
    Database Name/Version: Oracle/Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Installation Parameters
    12.06.12.15:47:54.661 root
    [INFO] SQL Executed: select key_name, key_value from SA_INSTALLATION_PARAMETERS where key_name in ('PHONE_NUMBER_FORMAT', 'SCHEDULING TOTAL EST HRS DISP', 'ENABLE PASSWORD RESET')
    12.06.12.15:47:55.124 root
    Starting DatePrefereneces.initDatePreferences
    12.06.12.15:47:55.125 root
    [INFO] SQL Executed: select username, java_long_date_mask, oracle_long_date_mask, long_date_delimiter, java_short_date_mask, oracle_short_date_mask, short_date_delimiter, java_time_mask, oracle_time_mask, time_delimiter, skin, show_component_desc, short_date_mask_no from sv_preference where username in ('DEFAULT', 'DEFAULT')
    12.06.12.15:47:55.283 root
    Created session 13547800752830 at Thu Dec 06 15:47:55 SGT 2012
    12.06.12.15:47:55.283 root
    Session 13547800752830 is currently using username SYNERGENGUEST
    Enable password reset parameter is false
    12.06.12.15:47:55.371 db.DatabaseConnect
    [INFO] SQL Executed:select key_value from sa_installation_parameters where key_name = 'CHART THUMBNAIL GENERATION'
    Scheduling Total/Estimate Display is ON
    12.06.12.15:47:55.373 db.DatabaseConnect
    [INFO] SQL Executed:select key_name from sa_installation_parameters where key_value in ('SERVICE PACK', 'SERVICE PACK1', 'MAJOR RELEASE')and last_update_date in (select max(last_update_date) from sa_installation_parameters where key_value in ('SERVICE PACK', 'SERVICE PACK1', 'MAJOR RELEASE'))
    Product Version from Installation Parameters is 1.9.0.3.0
    SA_INTERNET_INTEGRATION initialization
    Deleting integration records for http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/
    12.06.12.15:47:55.374 db.DatabaseConnect
    [INFO] SQL Executed:delete from sa_internet_integration where sia_url='http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/'
    SIA URL = http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/
    Forms Server URL = http://ldelara-ph.splwg.com:9001/forms/
    Home Page URL = http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/Home?tgt=Main
    Event Queue Administration URL = http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/EventQueue?tgt=Results
    Event Queue Servlet URL = http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/EventServlet
    SIA Application Version = v1.9.0.3.201106221519
    SIA URL = http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/
    Timestamp = Thu Dec 06 15:47:55 SGT 2012
    Deleting all integration records
    12.06.12.15:47:55.382 db.DatabaseConnect
    [INFO] SQL Executed:delete from sa_internet_integration
    12.06.12.15:47:55.384 db.DatabaseConnect
    [INFO] SQL Executed:insert into sa_internet_integration (home_page_url, event_queue_admin_url, process_queue_url, sia_version, sia_url, forms_server_url, timestamp) select ?, ?, ?, ?, ?, ?, ? from dual where 0 = (select count(*) from sa_internet_integration where forms_server_url = ? and sia_url = ?)
    Completed initialization of integration table for http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/
    12.06.12.15:47:55.396 root
    Created session 13547800753961 at Thu Dec 06 15:47:55 SGT 2012
    12.06.12.15:47:55.396 root
    Session 13547800753961 is currently using username SYNERGENGUEST
    12.06.12.15:47:55.397 db.DatabaseConnect
    [INFO] SQL Executed:select sia_url from sa_internet_integration where timestamp in (select max(timestamp) from sa_internet_integration)
    12.06.12.15:47:55.398 net.EventManager
    Current server is "http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/".
    12.06.12.15:47:55.398 net.EventManager
    Primary server is "http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/".
    XT_EVENT_QUEUE Cleanup
    12.06.12.15:47:55.399 db.DatabaseConnect
    [INFO] SQL Executed:select status, status_date, status_message from xt_event_queue where status in ('processing')
    Initializing ApplicationMapData
    12.06.12.15:47:55.476 db.DatabaseConnect
    [INFO] SQL Executed:SELECT lower(r.primekey_name_1), lower(r.primekey_name_2), lower(r.primekey_name_3), lower(r.primekey_name_4), r.architecture_ind, r.form_name, r.sia_module, r.form_function FROM SA_FORM_NAMES r order by r.form_name
    Loading Named Query Cache...
    12.06.12.15:47:55.578 util.AbstractGeneralCache
    Initializing the NamedQueryInfoCache.
    Begin loading Table Metadata Cache...
    12.06.12.15:47:55.585 db.TableMetaDataCache
    Initializing the TableMetaData cache.
    Loaded metadata for 316 tables/views in 2156 milliseconds.
    Initializing Field MetaData Cache
    12.06.12.15:47:57.745 util.AbstractGeneralCache
    Initializing the FieldMetaDataCache cache.
    Loading Labels/Words Cache
    Strict English translations: false
    12.06.12.15:47:57.753 db.DatabaseConnect
    [INFO] SQL Executed:select field_name, locale_code, is_db_field, label, short_label, extended_label, hint from xt_application_labels
    Initializing UDF Attributes Cache
    12.06.12.15:47:57.758 util.AbstractGeneralCache
    Initializing the UdfAttributesCache cache.
    Begin loading Group Element Metadata Cache...
    12.06.12.15:47:57.766 util.AbstractGeneralCache
    Initializing the MetaDataGroupElementCache.
    12.06.12.15:47:57.942 util.AbstractGeneralCache
    No corresponding METADATA_GROUP_ELEMENT metadata was found for the XT_RESP_PAGE_RESTRICTIONS column name RESTRICT_INSERT.
    12.06.12.15:47:57.942 util.AbstractGeneralCache
    No corresponding METADATA_GROUP_ELEMENT metadata was found for the XT_RESP_PAGE_RESTRICTIONS column name RESTRICT_UPDATE.
    12.06.12.15:47:57.942 util.AbstractGeneralCache
    No corresponding METADATA_GROUP_ELEMENT metadata was found for the XT_RESP_PAGE_RESTRICTIONS column name RESTRICT_DELETE.
    12.06.12.15:47:58.515 util.AbstractGeneralCache
    No corresponding METADATA_GROUP_ELEMENT metadata was found for the SA_USER_PROFILE column name CUSTOMER_ID.
    12.06.12.15:47:58.743 util.AbstractGeneralCache
    No corresponding METADATA_GROUP_ELEMENT metadata was found for the SA_SERVICE_REQUEST column name ESTIMATE_TOTAL.
    Loaded metadata for 258 metadata groups in 1071 milliseconds.
    *************** Completed SIA Application Startup ***************
    12.06.12.15:47:58.848 root
    Event Servlet checking primary SIA server before attempting event queue processing
    12.06.12.15:47:58.848 root
    Created session 13547800788482 at Thu Dec 06 15:47:58 SGT 2012
    12.06.12.15:47:58.848 root
    Session 13547800788482 is currently using username SYNERGENGUEST
    12.06.12.15:47:58.848 db.DatabaseConnect
    [INFO] SQL Executed:select sia_url from sa_internet_integration where timestamp in (select max(timestamp) from sa_internet_integration)
    12.06.12.15:47:58.849 net.EventManager
    Current server is "http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/".
    12.06.12.15:47:58.849 net.EventManager
    Primary server is "http://ldelara-ph.splwg.com:9001/wam_inst1/synergen/".
    12.06.12.15:47:58.850 root
    Processing 'pending' event queue records
    12.06.12.15:47:58.850 root
    Created session 13547800788503 at Thu Dec 06 15:47:58 SGT 2012
    12.06.12.15:47:58.851 root
    Session 13547800788503 is currently using username SYNERGENGUEST
    12.06.12.15:47:58.852 db.DatabaseConnect
    [INFO] SQL Executed:select event_seq_no, event_type, event_title, status, status_date, status_message, event_interval, next_event_date, originator, recipients_to, recipients_cc, recipients_bcc, message_subject, content_type, request_xml, content, content_url, last_retry, read_receipt_ind, importance_ind, attachment_filename, last_update_date, last_update_user, created_date, created_by from xt_event_queue where status in ('pending')
    Starting FileClerk...
    FileClerk complete. 0 files deleted in 56.0 milliseconds.
    <12 6, 12 3:48:01 PM SGT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <12 6, 12 3:48:01 PM SGT> <Notice> <Cluster> <BEA-000197> <Listening for announcements from cluster using unicast cluster messaging>
    <12 6, 12 3:48:01 PM SGT> <Notice> <Cluster> <BEA-000133> <Waiting to synchronize with other running members of cluster_forms.>
    <12 6, 12 3:48:31 PM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <12 6, 12 3:48:31 PM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <12 6, 12 3:48:31 PM SGT> <Notice> <Cluster> <BEA-000162> <Starting "async" replication service with remote cluster address "null">
    <12 6, 12 3:48:31 PM SGT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.186.252.165:9001 for protocols iiop, t3, CLUSTER-BROADCAST, ldap, snmp, http.>
    <12 6, 12 3:48:31 PM SGT> <Notice> <WebLogicServer> <BEA-000330> <Started WebLogic Managed Server "WLS_FORMS" for domain "ClassicDomain" running in Production Mode>
    <12 6, 12 3:48:32 PM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <12 6, 12 3:48:32 PM SGT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    Any suggestions how I can fix this? I am lost as there are no errors on WLS_FORMS.out

    Hi Kal,
    thanks for your reply, but I apologize for the Newbie question ( fairly new at weblogic) but from which tab can I find/change initial connect value?
    thanks,
    Lui

  • OSB Managed Servers - How to add one to the OSB Cluster

    Hi,
    I have an OSB Cluster of two managed servers. There is an Admin Server that controls the two.
    On the Admin Server I see that there are about 137 odd Applications and a list of Libraries installed.
    However on the Managed Servers I see there is not a single application.
    Does Managed Server show only the Custom applications? I feel not. Applications like AQAdapter, MQ Adapter, ALSB Routing, etc. should they all not be present on the Managed Servers?
    If I create a new Managed Server that I want to Add to the Cluster there is no option to deploy those applications to the newly created Managed server in one shot. The only time it can get those applications is if the Applications were deployed to the OSB Cluster and not to the managed servers.
    Is there a way (apart from extending the domains again and having those applications deployed to the OSB cluster) to have all these applications running on the Managed servers as well?

    Does Managed Server show only the Custom applications? I feel not. Applications like AQAdapter, MQ Adapter, ALSB Routing, etc. should they all not be present on the Managed Servers?Your understanding is correct. Managed server should have libraries and adapters targetted to it.
    Is there a way (apart from extending the domains again and having those applications deployed to the OSB cluster) to have all these applications running on the Managed servers as well? Yes, manually you have to target each and every application to the cluster but it may not be an effective process. The basic funda of cluster is to make applications independent of managed server, so that if you add/remove a managed server then it does not affect the existing configuration. I think you should follow the standard practice and always create a clustered domain where all applications are targetted to cluster and NOT to the managed server. You may like to refer -
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15022/config.htm#i1531648
    Regards,
    Anuj

  • Scripts for starting/stopping managed servers

    All,
    Could someone provide me with some sample scripts for starting/stopping managed Weblogic servers?  I'm specifically looking for ways to start/stop them WITHOUT starting the AdminServer.  I'm running WLS 10.3.6 on Windows Server 2003, and I have NodeManager set to start automatically as a Windows service.
    I know how to set my managed servers up as Windows services so that they will start automatically at boot, but this requires the AdminServer to be running, which I do not want.  I just want a few scripts for starting/stopping the managed servers (and maybe some hints as to how to make them start automatically without starting the AdminServer).
    Thanks in advance,
    Tom

    Hello Puneet,
    Admin console is an web application deployed into AdminServer. Hence if you shutdown AdminServer then you wouldn't able to access Admin console.
    Managed Server would function in MSI mode, however you will not be able to make any configuration or administration activities like deployment , any configuration changes , etc.
    Hello PRISM,
    Can you confirm your requirement about why you don't want AdminServer to be running?
    As I said,  you will loose the administration capability if you don't have admin server running.
    Regards
    Rosario

  • WebLogic Cluster 2 Managed Servers

    Hi all,
    Description: 2 virtual machines configured in cluster:
    ManagedServer1: 172.31.10.76 on port 7780 (here is also AdminServer on port 7001)
    ManagedServer2: 172.31.10.77 on port 7780
    Everything seems to be working. I was able to deploy a war file which could tell me the ip address of the server. Everything seems to be all right. However I have some questions:
    On a third machine I have Oracle 11g and I want to deploy application through the AdminServer to both of my ManagedServers but to use the db of the third server 172.31.10.78. Well I managed to do this however I can not log in through the login page of my web application. I get the following error:
    <Aug 30, 2011 11:13:13 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@1072316483[app:manager module:manager.war path:/manager spec-version:2.5]] Servlet failed with Exception
    org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
    at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:375)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    Truncated. see log file for complete stacktrace
    Caused By: javax.persistence.PersistenceException: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:307)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:151)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:207)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:195)
    at org.springframework.orm.jpa.JpaTransactionManager.createEntityManagerForTransaction(JpaTransactionManager.java:392)
    Truncated. see log file for complete stacktrace
    Caused By: Exception [EclipseLink-28013] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.EntityManagerSetupException
    Exception Description: Attempted to deploy PersistenceUnit [ApplicationEntityManager] while being in the wrong state [DeployFailed]. Close all factories for this PersistenceUnit.
    at org.eclipse.persistence.exceptions.EntityManagerSetupException.cannotDeployWithoutPredeploy(EntityManagerSetupException.java:170)
    at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:307)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:151)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:207)
    at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:195)
    Truncated. see log file for complete stacktrace
    I have also setup a DataSources with the appropriet settings - from tests I see I am able to connect to the db however I can not log in so I think there is something with the db. I`m not sure if I have Cluster with 2 Managed Servers which option I need to use DataSources or MultiData Sources. I may be wrong I do not know I`m new to clusters and weblogic but I`m very happy that after 2 days I was able to do all this :).
    Any help is much appreciated.
    Thank you.

    Do you have any rewrites configured in Apache?
    This (Middleware Snippets: Session Management Using WebLogic 12c) includes some examples to configure the WebLogic plug-in.
    LoadModule weblogic_module modules/mod_wl.so
    <IfModule weblogic_module>
      ConnectTimeoutSecs 10
      ConnectRetrySecs 2
      DebugConfigInfo ON
      WLSocketTimeoutSecs 2
      WLIOTimeoutSecs 300
      Idempotent ON
      FileCaching ON
      KeepAliveSecs 20
      KeepAliveEnabled ON
      DynamicServerList ON
      WLProxySSL OFF
    </IfModule>
    <Location /SessionTest>
      SetHandler weblogic-handler
      WebLogicCluster <%= @WEBLOGIC_CLUSTER_ADDRESS %>
    </Location>
    <Location /SpringHibernate>
      SetHandler weblogic-handler
      WebLogicCluster <%= @WEBLOGIC_CLUSTER_ADDRESS %>
    </Location>

  • Can on one domain coexist managed servers for ADF11g and Forms&Reports 11g

    Is it possible on one Weblogic Domain to exist both Managed server for ADF 11g and Managed servers for Forms 11g and Reports 11g?
    How to install on one Weblogic server these two things? Is it possible and what is recommended in this case?
    Thnx in advance!

    Hi Rade,
    Yes, i think it is possible. In my case I have one Weblogic Server Domain with 3 Managed Server,one for deploy application and the others are the Forms & Reports 11g.
    For that you have to install Fusion Middlware 11g.
    For ADF 11g i think you have to install Oracle Fusion Application.
    Edit:
    Please read the note: Installing ADF 11.1.1.3 Runtime into WebLogic 11gR1 Patchset 2 (10.3.3) [ID 1094153.1]
    Hope this help
    Regards
    Edited by: scapy on 6/Out/2011 3:14

  • Singleton deployed in cluster runs in both managed servers

    Hi,
    I have deployed a singleton service in a Weblogic (9.2) cluster. This cluster has two managed servers.
    Recently we saw instances of this singleton services running on both these managed servers, which resulted in a lot of duplicate data in our system.
    Is this a bug in the system? How can we prevent this?

    Hi,
    Could you please refer the following links and confirm me if you had defined and configured the singleton service as mentioned in the links:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/ConsoleHelp/taskhelp/clusters/ConfigureSingletonService.html
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/ConsoleHelp/taskhelp/clusters/DefineSingletonService.html
    regards,
    Zeno

  • Weblogic managed servers question

    Hi all,
    I'm trying to set up a 3 machines , one having weblogic admin
    server and two machines having managed weblogic servers.what i'm not
    undersatnding is :
    1. Do i have to install the weblogic software on all machines with the same
    domain name .?
    2. Do i have to deploy my components/web applications on all machines?
    3. Do i have to put the above machines in a cluster to achieve load
    balancing etc.
    4. How will i access my manage servers considering that they will have 2
    different ips (since they are installed on 2 different
    machines)?
    5.Does anyone know any dosc online which explains these matters.I have gone
    through the weblogic server administrator
    guide , but could not find the information i'm looking for (or have i
    missed any section)?
    Thanks in advance
    Prashant

    Hi.
    My answers are embedded:
    Prashant S wrote:
    Hi all,
    I'm trying to set up a 3 machines , one having weblogic admin
    server and two machines having managed weblogic servers.what i'm not
    undersatnding is :
    1. Do i have to install the weblogic software on all machines with the same
    domain name .?I'm not sure what you mean. The managed servers need to be in the same
    weblogic domain (ie directory under config) if you are using clustering. Also
    if you are using clustering the cluster members (managed servers) need to be on
    the same LAN/subnet.
    >
    2. Do i have to deploy my components/web applications on all machines?You do not have to deploy your applications on your admin server. Typically I
    install a webapp (or whatever) on the admin server then select the targets for
    deployment to the managed servers.
    >
    3. Do i have to put the above machines in a cluster to achieve loadbalancing
    etc.Yes.
    >
    4. How will i access my manage servers considering that they will have 2
    different ips (since they are installed on 2 different machines)?For web applications the standard practice is to use a proxy front-end to the
    cluster. We offer plugin's for Netscape, Apache and IIS that handle
    loadbalancing and failover for weblogic clusters. We also offer the
    HttpClusterServlet if you prefer to use an instance of WLS to proxy to your
    cluster. Use your browser to hit the proxy, which will pass your request on to
    a cluster member. See the following link for details:
    http://edocs.bea.com/wls/docs61/adminguide/http_proxy_cluster.html
    >
    5.Does anyone know any dosc online which explains these matters.I have gone
    through the weblogic server administrator
    guide , but could not find the information i'm looking for (or have i
    missed any section)?
    Thanks in advance
    Prashantnot sure if you have seen this but
    http://edocs.bea.com/wls/docs61/cluster/index.html contains links to docs
    discussing most cluster administration issues.
    Hope this helps.
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Bridge already registered when using two managed servers

    I have defined a messaging bridge with a target of my cluster in Weblogic 9.0 (upgraded from 7.0). My cluster has two managed servers. The bridge and resource adapter also have targets of the cluster. When I start the first managed server, everything works fine. The bridge works. When I bring up the second managed server, I repeatedly get the following:
              javax.jms.JMSException: SJMSBridge is already registered
              Is there something new that I need to define in the config to make this work?

    Here is the full error. I can understand what you are saying about the cluster, but I get this message even when only one server of the cluster is running. That doesn't make sense to me.
              ####<Nov 15, 2005 2:30:36 PM PST> <Info> <MessagingBridge> <PFRIMER> <ManagedServer2> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1132093836274> <BEA-200030> <Bridge "SJMSBridge" is configured to work in "Exactly-once" mode, and it is actually working in "Duplicate-okay" mode.>
              ####<Nov 15, 2005 2:30:36 PM PST> <Info> <MessagingBridge> <PFRIMER> <ManagedServer2> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1132093836805> <BEA-200028> <The bridge "SJMSBridge" has started transferring messages.>
              ####<Nov 15, 2005 2:30:38 PM PST> <Warning> <MessagingBridge> <PFRIMER> <ManagedServer2> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1132093838008> <BEA-200026> <Bridge "SJMSBridge" encountered some problems in one of its adapters or underlying systems. It stopped transferring messages and will try to reconnect to the adapters shortly. (The exception caught was java.lang.Exception: javax.resource.ResourceException: Error setting message listener
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1457)
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1437)
                   at weblogic.jms.adapter.JMSBaseConnection.setMessageListener(JMSBaseConnection.java:1201)
                   at weblogic.jms.adapter.JMSConnectionHandle.setMessageListener(JMSConnectionHandle.java:134)
                   at weblogic.jms.bridge.internal.MessagingBridge.beginForwarding(MessagingBridge.java:951)
                   at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1038)
                   at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              -------------- Linked Exception ------------
              javax.resource.ResourceException: Error creating asynchronous consumer
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1457)
                   at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1437)
                   at weblogic.jms.adapter.JMSBaseConnection.createConsumer(JMSBaseConnection.java:1299)
                   at weblogic.jms.adapter.JMSBaseConnection.access$400(JMSBaseConnection.java:84)
                   at weblogic.jms.adapter.JMSBaseConnection$11.run(JMSBaseConnection.java:1183)
                   at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
                   at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
                   at weblogic.jms.adapter.JMSBaseConnection.setMessageListener(JMSBaseConnection.java:1180)
                   at weblogic.jms.adapter.JMSConnectionHandle.setMessageListener(JMSConnectionHandle.java:134)
                   at weblogic.jms.bridge.internal.MessagingBridge.beginForwarding(MessagingBridge.java:951)
                   at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1038)
                   at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
                   at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
                   at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
              -------------- Linked Exception 2 ------------
              javax.jms.JMSException: SJMSBridge is already registered
                   at org.exolab.jms.messagemgr.ConsumerManager.createDurableConsumerEndpoint(ConsumerManager.java:404)
                   at org.exolab.jms.server.JmsServerSession.createSubscriber(JmsServerSession.java:771)
                   at org.exolab.jms.server.mipc.IpcJmsSessionConnection.createSubscriber(IpcJmsSessionConnection.java:588)
                   at org.exolab.jms.server.mipc.IpcJmsSessionConnection.notify(IpcJmsSessionConnection.java:165)
                   at org.exolab.jms.server.mipc.IpcJmsReceiver.notify(IpcJmsReceiver.java:100)
                   at org.exolab.jms.server.mipc.IpcServerChannel.run(IpcServerChannel.java:161)
              .)>

  • Log4j and managed servers

    This seems somewhat obvious, but...
              I have a Solaris based WLS 8.1.6 cluster with two managed servers.
              In the log4j.xml for BOTH managed servers, the logs for output from both go to the same file.
              What happens is one managed server writes to dctm_api.log and one writes to the previous log file.
              Is this as simple as Log4J in one of the Managed Servers has the file open and Log4J from two process can't have the same file open and write to it at the same time?
              Thanks,
              Michael Geiser

    Static fields won't get serialized.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com/coherence.jsp
              Tangosol Coherence: Clustered Replicated Cache for Weblogic
              "rohit" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Hi, can someone please advice if using log4j in the clustered environment
              would
              > in any way result in the failure of in memory session replication. We are
              using
              > WL 7.0 and log4j is installed on each managed servers. The log4j class
              "org.apache.log4j.Logger"
              > is used as a static reference within java classes which are put in the
              session.
              > Any response greatly appreciated. Thanks. Rohit
              

  • How to start managed servers in parallel?

    Hello everyone,
    I am developing a wlst script that would start all managed servers on a particular machine (machine_name should be provided) from the admin server side. The script works fine. However, since there were some domains that have 25+ managed servers for a single machine, it takes some time to start all of them in sequence. Is there a way to trigger a start command for each of the managed servers that I need to start just like what the node manager does when i start them through admin console? Something like triggering parallel processes running on background. Here is my code snippet:
                    #It focuses only on all managed servers defined within the listen address provided
                    if (server_listenaddress == managed_server) and (server_name != admin_name):
                            if (execute_command == "start"):
                                    print 'About to start',server_name,'on',server_listenaddress,'...'
                                    print
                                    try:
                                            start(server_name)
                                            print
                                            state(server_name,'Server')
                                            print
                                            nmDisconnect()
                                    except WLSTException:
                                            print 'Server instance',server_name,'could not be started. Skipping this server..'
                                            print
                                            state(server_name,'Server')
                            else:
                                    print 'About to stop',server_name,'on',server_listenaddress,'...'
                                    print
                                    try:
                                            shutdown(server_name,force='true')
                                            print
                                            state(server_name,'Server')
                                            print
                                    except WLSTException:
                                            print 'Server instance',server_name,'could not be stopped. Skipping this server..'
                                            print
                                            state(server_name,'Server')
                    elif (server_name == admin_name):
                            #It skips to restart the admin server since this script it only to restart managed servers.
                            print 'Server',server_name,'is the admin server. Skipping...'
                            print
                    else:
                            print 'Managed server',server_name,'is not configured with',managed_server,'listen address. Skipping this server..'
    Thanks in advance for all your help!!
    regards,
    Rustan

    Works perfectly, thanks!!!
    In summary, I just modified this line:
    start(server_name)
    and changed it to:
    start(server_name, block='false')
    In Admin Console, it is set to false but in WLST, it is defaulted to true so we need to explicitly set it to false.
    "Oracle Fusion Middleware Oracle WebLogic Scripting Tool, block is always set to true."

  • Node Manager installed as service does not start managed servers. WLS 10.3

    Hi All,
    I have installed the node manager as a windows service. When the service starts up it does start the managed servers.
    In the nodemanager.log file it shows that the node manager is reading the startup.properties file for all of the managed servers.
    <Jul 24, 2009 6:38:13 AM> <INFO> <Loading domains file: C:\bea\WLSERV~1.3\common\NODEMA~1\nodemanager.domains>
    <Jul 24, 2009 6:38:13 AM> <INFO> <Loaded node manager configuration properties from 'C:\bea\WLSERV~1.3\common\nodemanager\nodemanager.properties'>
    <Jul 24, 2009 6:38:13 AM> <Info> <SalesIllustrationDomain> <IntegrationServer> <Startup configuration properties loaded from "C:\bea\user_projects\domains\SalesIllustrationDomain\servers\IntegrationServer\data\nodemanager\startup.properties">
    <Jul 24, 2009 6:38:13 AM> <Info> <SalesIllustrationDomain> <ProdBackupServer> <Startup configuration properties loaded from "C:\bea\user_projects\domains\SalesIllustrationDomain\servers\ProdBackupServer\data\nodemanager\startup.properties">
    <Jul 24, 2009 6:38:13 AM> <Info> <SalesIllustrationDomain> <QAServer> <Startup configuration properties loaded from "C:\bea\user_projects\domains\SalesIllustrationDomain\servers\QAServer\data\nodemanager\startup.properties">
    <Jul 24, 2009 6:38:13 AM> <INFO> <Plain socket listener started on port 5556, host localhost>
    The node manager properties file contains the following
    #Mon Apr 20 10:54:45 PDT 2009
    DomainsFile=C\:\\bea\\WLSERV~1.3\\common\\NODEMA~1\\nodemanager.domains
    LogLimit=0
    PropertiesVersion=10.3
    JavaHome=C\:\\bea\\JROCKI~1
    AuthenticationEnabled=false
    NodeManagerHome=C\:\\bea\\WLSERV~1.3\\common\\NODEMA~1
    LogLevel=INFO
    DomainsFileEnabled=true
    StartScriptEnabled=false
    StartScriptName=startWebLogic.cmd
    ListenAddress=localhost
    NativeVersionEnabled=true
    ListenPort=5556
    LogToStderr=true
    SecureListener=false
    LogCount=1
    StopScriptEnabled=false
    QuitEnabled=false
    LogAppend=true
    StateCheckInterval=500
    CrashRecoveryEnabled=true
    LogFile=C\:\\bea\\WLSERV~1.3\\common\\NODEMA~1\\nodemanager.log
    LogFormatter=weblogic.nodemanager.server.LogFormatter
    ListenBacklog=50
    The managed servers' boot.properties file and startup file are below
    boot.properties:
    #Thu Jul 23 13:48:26 PDT 2009
    CustomTrustKeyStoreFileName=C\:\\bea\\wlserver_10.3\\common\\ssl\\supportTrust2008.jks
    TrustKeyStore=CustomTrust
    password={3DES}mvtUK8oB8JEiQoVES4AQIQ\=\=
    CustomTrustKeyStorePassPhrase={3DES}34+15HRlP6qqpZX3bTPp+Q\=\=
    CustomTrustKeyStoreType=JKS
    username={3DES}P5mMHiWLnf2UtssZbQtezkDtIS0COiHW
    startup.properties:
    #Server startup properties
    #Thu Jul 23 13:48:27 PDT 2009
    Arguments=-Xms1024m -Xmx1024m -Xnohup
    JavaHome=C\:\\bea\\jrockit_160_05
    SSLArguments=-Dweblogic.security.SSL.ignoreHostnameVerification\=false -Dweblogic.ReverseDNSAllowed\=false
    RestartMax=2
    RestartDelaySeconds=0
    RestartInterval=3600
    BeaHome=C\:\\bea
    ClassPath=C\:\\bea\\user_projects\\domains\\SalesIllustrationDomain\\servers\\lib\\itext\\WEB-INF\\lib\\itext.jar;C\:\\bea\\wlserver_10.3\\server\\lib\\weblogic_sp.jar;C\:\\bea\\wlserver_10.3\\server\\lib\\weblogic.jar;C\:\\bea\\user_projects\\domains\\SalesIllustrationDomain\\servers\\ProdBackupServer\\applications\\massmutual\\WEB-INF\\classes\\;C\:\\bea\\user_projects\\domains\\SalesIllustrationDomain\\servers\\ProdBackupServer\\applications\\assuritylife\\WEB-INF\\classes\\;C\:\\bea\\user_projects\\domains\\SalesIllustrationDomain\\servers\\ProdBackupServer\\applications\\minnesotalife\\WEB-INF\\classes\\;C\:\\bea\\user_projects\\domains\\SalesIllustrationDomain\\servers\\ProdBackupServer\\lib\\ltclibrary\\WEB-INF\\classes\\
    AdminURL=http\://localhost\:7001
    JavaVendor=BEA
    AutoRestart=true
    AutoKillIfFailed=false
    I am wondering if I left out a parameter some where.
    Any help would be greatly appreciated.
    Thanks,
    Greg

    First of all, I assume you mean "... up it does NOT start ..."?
    It might be helpful to point out that the purpose of the NodeManager is not to start the servers, but to "control" the servers through remote commands. When the NodeManager starts back up, it tries to reset the servers to the last known state it set them to, based on remote commands.
    For instance, if your system was running and you stopped the servers through the admin console and then restarted the machine, the NodeManager would not start the servers on machine startup, because the last controlled state of the servers was down. If all of your WebLogic servers were running as a result of NodeManager commands, and you pulled the plug on the box, when you restarted the machine, the NodeManager probably would restart the servers.

  • Have NodeManager start managed servers on machine reboot

    Is there any way to have the Node Manager start all the managed servers belonging to a domain when a server reboots?
    I know I could create a separate Windows service for each of the managed servers I want running when the server comes on-line, or I could do some fancy scripting at start-up to connect to the Node Manager and have it start the managed servers.
    But I was hoping there would be a more elegant way of having the NM start them when it comes on-line.
    Ideas appreciated,
    dmac.

    Hi Dmac,
    To achieve this in Windows, you must consider the following WLS Components:
    1. Node Manager
    2. Admin Server
    3. Managed Server
    Node Manager
    For Node Manager, if you want the component to start automatically on boot up, your best option is to create a Windows Service. You may have selected the option to create a service for Node Manager during the WebLogic Server installation. Use Start -> Run -> services.msc from the Start menu to load the Windows Services Manager. If there is no service for Node Manager, use the following steps to create one.
    Create a Windows service for Node Manager:
    1. WL_HOME\server\bin\installNodeMgrSvc.cmd
    2. Verify in Windows Services that a service was created.
    Admin Server
    For the Admin Server, you can also create a Windows Service. Here are the steps for doing so:
    Create a Windows service for the Admin Server
    1. Create a text file named %MIDDLEWARE_HOME%\user_projects\domains\<domain name>\servers\AdminServer\security\boot.properties. Add the following lines:
    username=weblogic
    password=<the weblogic username password>
    2. Create a command script called installAdmServer_Service.cmd which you will want to make sure has lines like:
    SETLOCAL
    set DOMAIN_NAME=<your wls domain>
    set USERDOMAIN_HOME=<path to domain> # e.g., C:\middleware\FMW11g\user_projects\domains\ClassicDomain
    set SERVER_NAME=AdminServer
    set PRODUCTION_MODE=true
    cd %USERDOMAIN_HOME%
    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
    call "<your middleware home>\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    3. For troubleshooting/debugging purposes it is helpful to redirect standard out and error to a text file. Although most information is captured in the AdminServer server log files, you will not see all standard out and error when the server is started via a MS Windows Service (unlike when you start an AdminServer from the command prompt using startWebLogic.cmd). To redirect standard out to a text file, backup and edit installSvc.cmd and change the line at the bottom of the file so it includes the -log parameter, e.g.
    "%WL_HOME%\server\bin\beasvc" -install -svcname:"%DOMAIN_NAME%_%SERVER_NAME%" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%" -cmdline:%CMDLINE% -log:"<your middleware home>\user_projects\domains\<your wls domain name>\servers\AdminServer\logs\AdminServer-stdout.txt"
    4. Now run "installAdmServer_Service.cmd." The Service should be installed. It will have a name like "beasvc %DOMAIN_NAME%_%SERVER_NAME%" (e.g. beasvc ClassicDomain_AdminServer). The Service "Startup Type" will be "Automatic." Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for the admin server to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.
    Managed Server
    For the Managed Server, you can also create a Windows Service. Here are the steps for doing so:
    Create a Windows service for the Managed Server (using wls_forms as an example)
    1. Create a text file named %MIDDLEWARE_HOME%\user_projects\domains\<domain name>\servers\WLS_FORMS\security\boot.properties. Add the following lines:
    username=weblogic
    password=<the weblogic username password e.g manager11g>
    2. Create a command script called installWLSFORMS_Service.cmd which has lines like
    SETLOCAL
    set DOMAIN_NAME=<your wls domain>
    set USERDOMAIN_HOME=<path to domain> # e.g. C:\middleware\FMW11g\user_projects\domains\ClassicDomain
    set SERVER_NAME=WLS_FORMS
    set PRODUCTION_MODE=true
    set ADMIN_URL=http://mymachine.mycompany.com:7001
    cd %USERDOMAIN_HOME%
    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
    call "<your middleware home>\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    NOTES:
    a. The ADMIN_URL value should reference the AdminServer hostname and listen port.
    b. The SERVER_NAME value is case sensitive. For example, if you are creating a MS Windows service for a different managed server such as 'wls_ods1' then the value needs to match the case of the server name otherwise the startup of the server via the MS Windows service will fail.
    c. Be careful that there are no trailing spaces after each line in the command file - trailing spaces will cause the managed server to fail at startup. For example a trailing space in the ADMIN_URL value will result in the error
    <19-Jan-2010 11:37:58 o'clock GMT> <Error> <EmbeddedLDAP> <BEA-171524> <Cannot determine the Listen address for the Admin server
    3. Now run "installWLSFORMS_Service.cmd." The Service should be installed, it will have a name like "beasvc %DOMAIN_NAME%_%SERVER_NAME%" (e.g. beasvc ClassicDomain_WLS_FORMS). The Service "Startup Type" will be "Automatic." Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for the managed server to start and reach a state of 'RUNNING' will be longer - perhaps two or three minutes. The state of the server can be monitored by reviewing the stdout txt file.
    Configuring the Windows service to restart upon failure
    As with any Windows Service, it is possible to configure the service to restart itself upon failure. These are standard options available when configuring a Windows Service in the context of Windows Services Manager. However, it is important to understand that Windows Services Manager only monitors the JVM process. If the JVM process fails (shuts down), then Windows Services Manager will attempt to restart it. But there are some scenarios where the Admin Server or Managed Server may go into an unhealthy or failed state but the JVM is still running. The Windows Service will not know to restart the process in these cases, whereas if the Admin Server and Managed Server had been started using Node Manager, Node Manager would recognize such a state and restart the process accordingly. So it may be desirable to start Node Manager with a Windows Service and then start the Admin Server and Managed Servers with Node Manager to take advantage of this monitoring feature. Below you will find one such example of how to do this.
    Example of starting the Admin Server and a Managed Server using Node Manager
    1. Create a batch script similar to this:
    Myscript.cmd
    call D:\Product\Oracle\Middleware\user_projects\domains\base_domain\bin\setDomainEnv.cmd
    java weblogic.WLST D:\Product\Oracle\Middleware\user_projects\domains\base_domain\ServerStart.py
    2. Create a Python script similar to this:
    ServerStart.py
    nmConnect('weblogic', 'welcome1', '192.168.0.101', '5556', 'base_domain','D:\Product\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1','ssl')
    nmStart('AdminServer')
    connect ('weblogic','welcome1','t3://192.168.0.101:7001')
    nmstart('myserver','Server','t3://192.168.0.101:7002')
    If you want this to happen automatically on boot up, you can run the script (myscript.cmd) from the Windows Scheduler. You must configure the scheduler to run the script on system startup. This will execute the script without requiring an interactive login to Windows (unattended).
    Some Additional Information to Remember
    The startup.properties file for the Admin and Managed servers must have "AutoRestart=true." This can be set in the "Health Monitoring" tab for each respective server in the WLS console.
    The boot.properties file must be configured and present for each server that you plan to start automatically so that you are not prompted for the user name and password each time. If you are not currently prompted when you start the servers then it is already done.
    The nodemanager.properties file must have "StartScriptEnabled=true" and "StartScriptName=StartWeblogic.cmd" in place.

Maybe you are looking for

  • How Do I Use the TCallback parameter in ibnotify for Delphi in dpib32.pas​?

    I'm having some troubles. I've been using the dpib32.pas library for at least 2 years now with no troubles. Now I need to handle some oddball stuff using Async Callbacks. I've referred to App Note 100 and am 98% there... I just can't figure out how t

  • IPod touch sync problem

    Hi I am trying to sync my ipod touch and it keeps telling me a session cannot be started. Can anyone help?,

  • Scripting to load all pdfs in a month into the place command?

    Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be

  • IE 5.0 and java Studio Creator

    hi, i am creating a web site with Java Studio creator, the pages are displayed well with Firefox and IE 6.But IE 5 displays only the header and the footer.Curiously,when i "reload" the page everything works. If someone has an idea, it will be very us

  • Nokia 2600 classic - how do I get the back cover o...

    I have just bought my first mobile phone ever, so am a complete novice; I have tried to follow the instructions to press the release button and take off the back cover to fit the battery, but I cannot get the cover to open. The main question is, am I