Weblogic.admin script to alert server status

Hi,
Can anybody share a weblogic.admin utility script for alerting the server status in unix ?

Below is the solaris shell script integrated with weblogic.admin utility....
If the server status is other than running it will sends a alert mail to you.
Sometime your server may be in shutdown mode and if you execute the below script, it says destination not reachable on specified port and then also it sends a alert mail.
Change it according to ur env and execute...
set -x
export CLASSPATH=”/wl_home/server/lib/weblogic.jar”
declare -a Port=( 8003 7072 8201 )
declare -a ServerState[]
declare -a ServerName[]
declare -a ObjectName[]
i=”0″
IP=Weblogic host address
while [ $i -lt 5 ]
do
ServerState[$i]=`java weblogic.Admin -url $IP:${Port[$i]} -username weblogic -password weblogic GET -pretty -type ServerRuntime -property State |grep -i State |awk ‘{print $2}’`
ObjectName[$i]=`java weblogic.Admin -url $IP:${Port[$i]} -username weblogic -password password GET -pretty -type JVMRuntime -property ObjectName |grep -i ObjectName |awk ‘{print $2}’`
if [ "${ServerState[$i]}” != “RUNNING” ] ;
then
mailx -s ” Weblogic Server Staus- $IP ” [email protected]<<EOF
Weblogic Managed server ${Port[$i]} is in SHUTDOWN state
EOF
fi
i=`expr $i + 1`
done
Thanks,
Kartheek
Troubleshooting in weblogic gives thrilling experience .......

Similar Messages

  • Need a bat script to check Server status remotly.

    Hi,
    I need bat script to check server status remotly (Ping) for multiple servers. It should generate a txt file for result.
    Thanks.

    Hi Ravi,
    To ping multiple computers and generate report cia cmd, please refer to the script below, the "fnm" is computer name list and the "lnm" is the result, and you can save the script below as .bat file:
    @echo off
    set fnm=d:\test1\computers.txt
    set lnm=d:\test1\ping.txt
    if exist %fnm% goto Label1
    echo.
    echo Cannot find %fnm%
    echo.
    Pause
    goto :eof
    :Label1
    echo PingTest STARTED on %date% at %time% > %lnm%
    echo ================================================= >> %lnm%
    echo.
    for /f %%i in (%fnm%) do call :Sub %%i
    echo.
    echo ================================================= >> %lnm%
    echo PingTest ENDED on %date% at %time% >> %lnm%
    echo ... now exiting
    goto :eof
    :Sub
    echo Testing %1
    set state=alive
    ping -n 1 %1
    if errorlevel 1 set state=dead
    echo %1 is %state% >> %lnm%
    Refer to:
    Explain the Batch script to ping multiple computers
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Weblogic Startup script auto on server boot

    Hi All,
    I have a start up script on /etc/init.d called "wlsstart".
    The script is linked to a file called S99weblogic under /etc/rc3.d
    The OEL is 5.6 version.
    After reboots, the script does not run for some reason.
    But manual invocation works fine.
    I also entered in /etc/inittab as :
    h3:35:respawn:/etc/init.d/wlsstart >/dev/null 2>&1 </dev/null
    any ideas?

    Hi,
    You have to create Soft Links in /etc/rc3.d
    If you do ls -lrt in /etc/rc3.d , you will see how soft links are created for rest of the processes.
    Once you created start ans stop soft link , your script will be automatically started after machine reboot.
    Cheers !
    /Hammad

  • Weblogic Admin Server not starting after Virtual Server move

    Hi, we've migrated a VMware virtual server, and our Weblogic Admin (and managed IRM server) no longer start. The associated log files don't get updated and only the following info is present in the Command window, which I can only see if I use the /k switch, otherwise the windows shut immediately.
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~3\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar
    ;C:\Oracle\MIDDLE~3\patch_wls1033\profiles\default\sys_manifest_classpath\weblog
    ic_patch.jar;C:\Oracle\MIDDLE~3\patch_oepe1033\profiles\default\sys_manifest_cla
    sspath\weblogic_patch.jar;C:\Oracle\MIDDLE~3\patch_ocp353\profiles\default\sys_m
    anifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~3\JDK160~1\lib\tools.jar;C
    :\Oracle\MIDDLE~3\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~3\WLSER
    V~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~3\modules\features\weblogic.serve
    r.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~3\WLSERV~1.3\server\lib\webservices.jar;
    C:\Oracle\MIDDLE~3\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~3\modules
    \NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~3\ORACLE~1\soa\modules\common
    s-cli-1.1.jar;C:\Oracle\MIDDLE~3\ORACLE~1\soa\modules\oracle.soa.mgmt_11.1.1\soa
    -infra-mgmt.jar;C:\Oracle\MIDDLE~3\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:
    \Oracle\MIDDLE~3\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~3\
    WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~3\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~3
    \patch_oepe1033\profiles\default\native;C:\Oracle\MIDDLE~3\patch_ocp353\profiles
    \default\native;C:\Oracle\MIDDLE~3\WLSERV~1.3\server\native\win\32;C:\Oracle\MID
    DLE~3\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~3\modules\ORGAPA~1.1\bin;C:\Oracle\
    MIDDLE~3\JDK160~1\jre\bin;C:\Oracle\MIDDLE~3\JDK160~1\bin;C:\oraclexe\app\oracle
    \product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wb
    em;C:\Program Files\Java\jdk1.6.0_20\bin;C:\Program Files\Apache Software Founda
    tion\Apache2.2\modules;C:\Oracle\MIDDLE~3\WLSERV~1.3\server\native\win\32\oci920
    _8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~3\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThre
    shold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -
    Djava.security.policy=C:\Oracle\MIDDLE~3\WLSERV~1.3\server\lib\weblogic.policy
    -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~3\WLSERV~1.3 -Dwls.home=C:\O
    racle\MIDDLE~3\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~3\WLSERV~1.3\s
    erver -Ddomain.home=C:\Oracle\MIDDLE~3\USER_P~1\domains\IRM_DO~1 -Dcommon.compo
    nents.home=C:\Oracle\MIDDLE~3\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons
    .logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Or
    acle\MIDDLE~3\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.do
    main.config.dir=C:\Oracle\MIDDLE~3\USER_P~1\domains\IRM_DO~1\config\FMWCON~1 -Do
    racle.server.config.dir=C:\Oracle\MIDDLE~3\USER_P~1\domains\IRM_DO~1\config\FMWC
    ON~1\servers\AdminServer -Doracle.security.jps.config=C:\Oracle\MIDDLE~3\USER_P~
    1\domains\IRM_DO~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=
    oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~3\USER_P~1\
    domains\IRM_DO~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MIDDLE~
    3\USER_P~1\domains\IRM_DO~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateT
    ypesDirectory=C:\Oracle\MIDDLE~3\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracl
    e\MIDDLE~3\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEna
    bled=false -Dirm.oracle.home=C:\Oracle\MiddlewareNew\Oracle_ECM1 -Dem.oracle.ho
    me=C:\Oracle\MiddlewareNew\oracle_common -Djava.awt.headless=true -Dweblogic.man
    agement.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToC
    onsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~3\patch_wls1033\profiles\default\sy
    sext_manifest_classpath;C:\Oracle\MIDDLE~3\patch_oepe1033\profiles\default\sysex
    t_manifest_classpath;C:\Oracle\MIDDLE~3\patch_ocp353\profiles\default\sysext_man
    ifest_classpath weblogic.Server
    Is there another log file I could look at to get more info? None of the domain log files are updated.
    Thanks

    Thanks for the reply, this looks fine (I think)..the below is the output
    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.
    C:\Users\Administrator.SEALEDINFO-PROD>cd C:\Oracle\MiddlewareNew\user_projects\
    domains\irm_domain\bin
    C:\Oracle\MiddlewareNew\user_projects\domains\irm_domain\bin>setdomainenv.cmd
    C:\Oracle\MiddlewareNew\user_projects\domains\irm_domain>java -version
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
    C:\Oracle\MiddlewareNew\user_projects\domains\irm_domain>java weblogic.version
    WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401
    Use 'weblogic.version -verbose' to get subsystem information
    Use 'weblogic.utils.Versions' to get version information for all modules
    C:\Oracle\MiddlewareNew\user_projects\domains\irm_domain>

  • How to get stop script for the server

    Hello everyone,
    I installed weblogic server8.1 on my Linux machine and used $WL_HOME/server/bin/startWLS.sh
    to create a new domain and server. But I did not find any stop script(like stopWLS.sh)
    which can stop myserver. How can I get it?
    Thanks for your helps.
    Iris

    which can stop myserver. How can I get it?Here's an etc/rc3.d script I use for my RH9 server. You'll notice there is
    a line in there for stop(), you can run that manually if you so choose, or
    you can use it via the xinetd (I think that's what it's called?). Good luck.
    # processname: weblogic
    # pidfile: /var/run/weblogic.pid
    PIDFILE=/var/run/weblogic.pid
    # Source function library
    . /etc/init.d/functions
    #check to see if we can write to config.xml...so non-root uses stop here
    [ -w /Domain/config.xml ] || exit 0
    #setup the environment for the java commands
    . /bea/weblogic81/server/bin/setWLSEnv.sh
    cd /Domain
    start(){
    echo "Starting WebLogic for Domain"
    cd /Domain
    daemon ./startWebLogic.sh &
    echo $! > $PIDFILE
    RETVAL=$?
    echo "WebLogic Server started."
    return $RETVAL
    stop(){
    echo "Stopping WebLogic for Domain"
    rm -f $PIDFILE
    java weblogic.Admin -url localhost:80 FORCESHUTDOWN
    status(){
    echo "Getting Weblogic status for Domain"
    java weblogic.Admin -url localhost:80 GETSTATE
    restart(){
    echo -n "Restarting WebLogic for Domain"
    stop
    start
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart|reload)
    stop
    start
    status)
    status
    echo $"usage: $0 {start|stop|status|restart|reload}"
    exit 1
    esac
    exit $RETVAL

  • Installing Weblogic Admin Server as service -  service won't start

    I'm installing Weblogic Admin Server as a Service in Weblogic 10 on a Windows 2008 R2 box.
    The service installs correctly, but when I start it, it immeidately stops with this error:
    "The <service name> service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the performance logs and alerts service."
    Also, sometimes it gives me this error:
    "Error 1053: The service did not respond to the start or control request in a timely fashion"
    Thanks in advance for any help.  Here is my installSvc.cmd:
    @echo off
    SETLOCAL
    set PRODUCTION_MODE=true
    SET JAVA_VENDOR=BEA
    SET JAVA_HOME=C:\bea10_64\jr
    set USERDOMAIN_HOME=C:\PA_Prod
    set SERVER_NAME=AdminServer
    set DOMAIN_NAME=PA_domain
    set HOST=10.0.1.28
    set PORT=7001
    set WL_HOME=C:\bea10_64\wlserver_10.3
    call "%WL_HOME%\common\bin\commEnv.cmd"
    @rem Check that the WebLogic classes are where we expect them to be
    :checkWLS
    if exist "%WL_HOME%\server\lib\weblogic.jar" goto checkJava
    echo The WebLogic Server wasn't found in directory %WL_HOME%\server.
    echo Please edit your script so that the WL_HOME variable points
    echo to the WebLogic installation directory.
    goto finish
    @rem Check that java is where we expect it to be
    :checkJava
    if exist "%JAVA_HOME%\bin\java.exe" goto runWebLogic
    echo The JDK wasn't found in directory %JAVA_HOME%.
    echo Please edit your script so that the JAVA_HOME variable
    echo points to the location of your JDK.
    goto finish
    :runWebLogic
    if not "%JAVA_VM%" == "" goto noResetJavaVM
    if "%JAVA_VENDOR%" == "BEA" set JAVA_VM=-jrocket
    if "%JAVA_VENDOR%" == "HP" set JAVA_VM=-server
    if "%JAVA_VENDOR%" == "Sun" set JAVA_VM=-server
    :noResetJavaVM
    if not "%MEM_ARGS%" == "" goto noResetMemArgs
    set MEM_ARGS=-Xms32m -Xmx200m
    :noResetMemArgs
    @echo on
    set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%
    if "%ADMIN_URL%" == "" goto runAdmin
    @echo on
    set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
    goto finish
    :runAdmin
    @echo on
    set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -classpath \"%CLASSPATH%\" -Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
    :finish
    rem *** Set up extrapath for win32 and win64 platform separately
    if "%WL_USE_X86DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\32;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\32\oci920_8
    if "%WL_USE_IA64DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\64\;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\64\oci920_8
    if "%WL_USE_AMD64DLL%" == "true" set EXTRAPATH=%WL_HOME%\server\native\win\x64\;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%WL_HOME%\server\native\win\x64\oci920_8
    rem *** Install the service
    "%WL_HOME%\server\bin\beasvc" -install -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%" -javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%" -maxconnectretries:"%MAX_CONNECT_RETRIES%" -host:"%HOST%" -port:"%PORT%" -extrapath:"%EXTRAPATH%" -password:"%WLS_PW%" -cmdline:%CMDLINE%
    ENDLOCAL

    The problem lies in your additions to the script installSvc.cmd
    Say we have for example the following directory as our middleware-home
    c:\bea. In this directory we also have installed a JVM say C:\bea\jrockit_160_05_R27.6.2-20.
    When you create a domain (by using the config.cmd script) the domain you created
    is placed in the directory c:\bea\user_projects\domain\base_domain (assuming we have
    called the domain base_domain).
    Now we have to add the following parameter definitions to installSvc.cmd
    @rem JAVA_VENDOR and JAVA_HOME are set in the call to commEnv.cmd
    @rem JAVA_VENDOR is checked in commEnv.cmd to be Oracle or Sun
    set JAVA_VENDOR=Oracle
    set JAVA_HOME=C:\bea\jrockit_160_05_R27.6.2-20
    set USERDOMAIN_HOME=C:\bea\user_projects\domains\base_domain
    set SERVER_NAME=AdminServer
    set DOMAIN_NAME=base_domain
    @rem i am assuming it is running on localhost
    set HOST=127.0.0.1
    set PORT=7001In your case it becomes (just a guess)
    @rem use Oracle instead of BEA
    set JAVA_VENDOR=Oracle
    @rem the location where your JVM is installed
    set JAVA_HOME=C:\bea10_64\jr
    @rem if bea10_64 is your middleware home and PA_domain is your domain name
    set USERDOMAIN_HOME=C:\bea10_64\user_projects\domains\PA_domain
    @rem the rest should be alright
    set SERVER_NAME=AdminServer
    set DOMAIN_NAME=PA_domain
    set HOST=10.0.1.28
    set PORT=7001If you add the following to uninstallSvc.cmd you can uninstall the service
    set SERVER_NAME=AdminServer
    set DOMAIN_NAME=base_domain

  • Weblogic admin server stops running after a while

    Hi,
    we have a distributed environment 11.1.2. On the server where we have weblgic admin server running, it seems to stop running everytime I disconnect from the server. I end up starting it everytime I login to the server. How can I keep it running all the time?Doesn't it start as part of the 'start EPM' script?
    here is the error I am getting:
    Caused By: javax.management.RuntimeMBeanException: ODL-52055: The handler 'epmcs
    s-handler' is already defined.
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean
    .doInvoke(OracleStandardEmitterMBean.java:885)
    at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMB
    eanInterceptor.internalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterce
    ptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.interceptors.MBeanRestartIntercep
    tor.internalInvoke(MBeanRestartInterceptor.java:116)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterce
    ptor.doInvoke(AbstractMBeanInterceptor.java:245)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.IllegalArgumentException: ODL-52055: The handler 'epmcss-ha
    ndler' is already defined.
    at oracle.as.management.logging.impl.LogConfig._updateHandler(LogConfig.
    java:564)
    at oracle.as.management.logging.impl.LogConfig.addHandler(LogConfig.java
    :236)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    Truncated. see log file for complete stacktrace
    >
    <Dec 22, 2010 5:11:46 PM EST> <Warning> <RMI> <BEA-080003> <RuntimeException thr
    own by rmi server: javax.management.remote.rmi.RMIConnectionImpl.invoke(Ljavax.m
    anagement.ObjectName;Ljava.lang.String;Ljava.rmi.MarshalledObject;[Ljava.lang.St
    ring;Ljavax.security.auth.Subject;)
    javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException:
    ODL-52059: The logger 'oracle.EPMREG' already has handler 'epmreg-handler'..
    javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException:
    ODL-52059: The logger 'oracle.EPMREG' already has handler 'epmreg-handler'.
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(Default
    MBeanServerInterceptor.java:856)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBe
    anException(DefaultMBeanServerInterceptor.java:869)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
    BeanServerInterceptor.java:838)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBea
    nServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:349)
    Truncated. see log file for complete stacktrace
    Caused By: javax.management.RuntimeMBeanException: ODL-52059: The logger 'oracle
    .EPMREG' already has handler 'epmreg-handler'.
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean
    .doInvoke(OracleStandardEmitterMBean.java:885)
    at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMB
    eanInterceptor.internalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterce
    ptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.interceptors.MBeanRestartIntercep
    tor.internalInvoke(MBeanRestartInterceptor.java:116)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterce
    ptor.doInvoke(AbstractMBeanInterceptor.java:245)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.IllegalArgumentException: ODL-52059: The logger 'oracle.EPM
    REG' already has handler 'epmreg-handler'.
    at oracle.core.ojdl.logging.config.LoggingConfigurationDocument.addHandl
    erToLogger(LoggingConfigurationDocument.java:644)
    at oracle.core.ojdl.logging.config.LoggingConfigurationDocument.addHandl
    erToLogger(LoggingConfigurationDocument.java:283)
    at oracle.as.management.logging.impl.LogConfig._updateLogger(LogConfig.j
    ava:541)
    at oracle.as.management.logging.impl.LogConfig.updateLogger(LogConfig.ja
    va:201)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
    >
    <Dec 22, 2010 5:11:46 PM EST> <Warning> <RMI> <BEA-080003> <RuntimeException thr
    own by rmi server: javax.management.remote.rmi.RMIConnectionImpl.invoke(Ljavax.m
    anagement.ObjectName;Ljava.lang.String;Ljava.rmi.MarshalledObject;[Ljava.lang.St
    ring;Ljavax.security.auth.Subject;)
    javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException:
    ODL-52059: The logger 'oracle.EPMCSS' already has handler 'epmcss-handler'..
    javax.management.RuntimeMBeanException: javax.management.RuntimeMBeanException:
    ODL-52059: The logger 'oracle.EPMCSS' already has handler 'epmcss-handler'.
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(Default
    MBeanServerInterceptor.java:856)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBe
    anException(DefaultMBeanServerInterceptor.java:869)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
    BeanServerInterceptor.java:838)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBea
    nServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:349)
    Truncated. see log file for complete stacktrace
    Caused By: javax.management.RuntimeMBeanException: ODL-52059: The logger 'oracle
    .EPMCSS' already has handler 'epmcss-handler'.
    at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean
    .doInvoke(OracleStandardEmitterMBean.java:885)
    at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMB
    eanInterceptor.internalInvoke(ContextClassLoaderMBeanInterceptor.java:94)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterce
    ptor.doInvoke(AbstractMBeanInterceptor.java:245)
    at oracle.as.jmx.framework.generic.spi.interceptors.MBeanRestartIntercep
    tor.internalInvoke(MBeanRestartInterceptor.java:116)
    at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterce
    ptor.doInvoke(AbstractMBeanInterceptor.java:245)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.IllegalArgumentException: ODL-52059: The logger 'oracle.EPM
    CSS' already has handler 'epmcss-handler'.
    at oracle.core.ojdl.logging.config.LoggingConfigurationDocument.addHandl
    erToLogger(LoggingConfigurationDocument.java:644)
    at oracle.core.ojdl.logging.config.LoggingConfigurationDocument.addHandl
    erToLogger(LoggingConfigurationDocument.java:283)
    at oracle.as.management.logging.impl.LogConfig._updateLogger(LogConfig.j
    ava:541)
    at oracle.as.management.logging.impl.LogConfig.updateLogger(LogConfig.ja
    va:201)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Truncated. see log file for complete stacktrace
    >
    Edited by: 784749 on Dec 22, 2010 2:14 PM

    I've never seen this and we've been running 8.1.5 for a while. Have you tried dumping threads to see what the admin server is doing? On UNIX, run 'kill -QUIT <admserv_pid>'. Can't remember if/how this can be done on Win32. I believe Console requests use the weblogic.admin.HTTP execute queue and it only has two threads. Could be that something is blocking those threads leading to this.
    I would also look into why your admin server takes 2 minutes to discover your managed servers. That seems unseemly long to me. Mine takes a few seconds at most. Since the Console does cause the admin server to talk to the managed servers, these two things might be related. Maybe you've got some kind of network/DNS lag that could be eliminated.

  • Cloned OMS - WebLogic Admin Server not available....

    Greetings,
    We are working our way through an active active R4 OMS setup, and we just successfully cloned oms1 to oms2 via cloud control, and executed the post install steps. We now need to access each of the OMSs WebLogic Admin Server Console to confirm LDAP settings, and the oms2 WebLogic Admin Server Console is unavailable. The oms2 clone has the same WebLogic Admin Server details as oms1 (see below).
    Is that by design, i.e. only one WebLogic Admin Server Console with two load balanced OMSs?
    Which files do we need to edit on oms2 to get oms2's WebLogic Admin Server on-line?
    oms1:
    /u01/app/oracle/product/middleware_r4/oms/bin/emctl status oms -details
    WLS Domain Information
    Domain Name            : GCDomain
    Admin Server Host      : oms1.mastec.com
    Admin Server HTTPS Port: 7102
    Admin Server is RUNNING
    oms2:
    WLS Domain Information
    Domain Name            : GCDomain
    Admin Server Host      : oms1.mastec.com
    Admin Server HTTPS Port: 7102
    Thank you,

    The WLS admin server only exists on the first OMS host. Usually an SLB is used for load balancing.
    For information on HA (High Availability) solutions, see:
    http://docs.oracle.com/cd/E24628_01/install.121/e24089/ha_intro.htm#EMADV9611
    Regards,
    - Loc

  • Need to write start up scrits for weblogic admin server on Linux

    Hi,
    I am new to weblogic i have Installed wls1035 on Linux Created Managed servers,but i want write start up and stop scripts for weblogic admin server please let me know how to write.
    My weblogic server is Running on Linux..please help me its very urgent for me.....

    Put something like this into a startAll.py file (excluding the ---):
    startNodeManager(verbose='false',NodeManagerHome=localWlsHome + '/common/nodemanager',ListenPort=5556,ListenAddress=localhost)
    nmConnect('weblogic','password','localhost','5556','domain_name')
    nmStart('AdminServer','/path-to-domain-dir')     
    nmStart('my_server_1','/path-to-domain-dir')     
    nmStart('my_server_2','/path-to-domain-dir')     
    nmDisconnect()
    exit()
    source /path-to-domain-dir/bin/setDomainEnv.sh
    $JAVA_HOME/bin/java weblogic.WLST startAll.py
    Similar for stop (stopAll.py):
    nmConnect('weblogic','password','localhost','5556','domain_name')
    nmKill('my_server_1')     
    nmKill('my_server_2')     
    nmKill('AdminServer')
    stopNodeManager()
    exit()
    source /path-to-domain-dir/bin/setDomainEnv.sh
    $JAVA_HOME/bin/java weblogic.WLST stopAll.py
    You might have issues with the Nodemanager having an autogenerated username and password. That can be fixed like this:
    In the AdminServer console, click on Lock & Edit
    In the AdminServer console, go to <domain> -> Security -> General -> Advanced and update the Node Manager username and password to use the same values as the WebLogic server.
    In the AdminServer console, apply the changes.
    Start WLST: $WL_HOME/common/bin/wlst.sh
    Connect to the AdminServer: connect('weblogic','password','t3://<adminserver-hostname>:<adminserver-port>')
    Enroll: nmEnroll('/path-to-domain-dir')
    Exit WLST: CTRL^D
    You might also look into customizing the nodemanager's property file:
    Edit $WL_HOME/common/nodemanager/nodemanager.properties
    StopScriptEnabled=true
    CrashRecoveryEnabled=true
    StartScriptEnabled=true
    For further reading, please take a look at: http://docs.oracle.com/cd/E15051_01/wls/docs103/config_scripting/reference.html
    Edited by: 925121 on Apr 3, 2012 2:16 AM

  • Automatic startup of weblogic admin server of OBIEE11g on linux box

    We stopped Admin server from weblogic admin console, now when we tried to start the admin server we are able to start it, but when we close the command line the Admin server stopped automatically, unable to access Console/EM, how to make Admin server to run as a background process on Linux box,
    If anyone has any thoughts on what might be going on here I'd greatly appreciate it.

    Have you tried to nohup the start script? I use this on AIX to start the apps. I don't have a Linux server but I think it would work there, too. At the command line you would type 'nohup start.sh &'. Replace start.sh with the name of your start script. This will run the script in the background and it will keep running even after you log off.
    Jerry

  • Start/Stop Weblogic Admin Server

    Hello,
    I have installed Forms 11g in my home Pc, so is it possible to Start/Stop Weblogic Admin Server and the Dos window that appears, not to ask me about username and password?
    I mean like a bat file (script), to enter the username and password in a text file
    if yes, also the same in WLS_FORMS?
    Thank you.

    Starting an Administration Server with a Startup Script
    An Administration Server is a WebLogic Server instance that maintains configuration data for a domain. In a development environment, it is usually sufficient to start an Administration Server and deploy your applications directly onto the Administration Server. In a production environment, you create Managed Servers to run applications. For more information about Administration Servers and Managed Servers, see "Understanding WebLogic Server Domains" in Understanding Domain Configuration for Oracle WebLogic Server.
    You can start an Administration Server with a default startup script or create your own. To start an Administration Server with the WebLogic Server-included startup script:
    If you have not already done so, use the Configuration Wizard or WebLogic Scripting Tool (WLST) to create a domain.
    See Creating Domains Using the Configuration Wizard or "Creating Domains Using WLST Offline" in Oracle WebLogic Scripting Tool.
    Open a shell (command prompt) on the computer on which you created the domain.
    Change to the directory in which you located the domain.
    By default, this directory is MW_HOME\user_projects\domains\DOMAIN_NAME, where DOMAIN_NAME is the root directory of the domain. (The name of this directory is the name of the domain.)
    Run one of the following scripts:
    bin/startWebLogic.cmd (Windows)
    bin\startWebLogic.sh (UNIX and Windows. On Windows, this script supports the MKS and Cygnus BASH UNIX shell emulators.)
    Note:
    If you use a Configuration Wizard template that is provided by WebLogic Server, your domain directory includes a start script named startWebLogic. If you use a domain template from another source, the wizard might not create a start script, or it might create a script with a different name. The template designer determines whether the wizard creates a start script and the name of the script.
    The startWebLogic script does the following:
    Sets environment variables by invoking DOMAIN_NAME\bin\setDomainEnv.cmd (setDomainEnv.sh on UNIX), where DOMAIN_NAME is the directory in which you located the domain; for example, WL_HOME\user_projects\domains\DOMAIN_NAME, and where WL_HOME is the location in which you installed WebLogic Server.
    Invokes the java weblogic.Server command, which starts a JVM that is configured to run a WebLogic Server instance.
    When the server successfully completes its startup process, it writes the following message to standard out (which, by default, is the command window):
    <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    Starting an Administration Server from the Windows Start Menu
    When you create an Administration Server on a Windows computer, the Configuration Wizard creates a shortcut on the Start Menu for starting the server (User Projects > DOMAIN_NAME > Start Admin Server for WebLogic Server Domain).
    The command that the Configuration Wizard adds to the Start menu opens a command window and calls the startup script that is described in Starting an Administration Server with a Startup Script. When the server has successfully completed its startup process, it writes the following message to standard out (which, by default, is the command window):
    <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    Mark this helpful/correct to help others too

  • Cannot access weblogic admin server console

    All,
    I am not able to access https://<myhostname>:7001/console URL after sucessfull installation of web logic server on linux. During installation I also created base_domain.
    Here is the log during the AdminServer startup :-
    <Oct 4, 2009 9:02:02 AM PDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Oct 4, 2009 9:02:02 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Oct 4, 2009 9:02:02 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:20c:29ff:fe28:8f5b:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.119.129:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Production Mode>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Oct 4, 2009 9:02:03 AM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    From the above it looks like there was no issue in starting up the admin server. But when I try to access the weblogic admin server url, it does not show up.
    Can you please help me to resolve the issue if any so that I can access the admin console?
    THanks,
    Amit

    hey, same here...
    this is what i get when starting up the console
    <May 4, 2010 12:52:51 PM WIT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on xxx.xxx.xxx.xxx:7777 for protocols iiop, t3, ldap, snmp, http.>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7777 for protocols iiop, t3, ldap, snmp, http.>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "xxxxxDomain" running in Production Mode>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <May 4, 2010 12:52:51 PM WIT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    but when i go to the browser
    http://xx.xx.xx.xx:7777/console..
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    xx.xx.xx 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    i still try to fix this..

  • Conver weblogic Admin server to a windows service

    I used the following scripts to conver weblogic Admin server to a windows service :
    SETLOCAL
    set DOMAIN_NAME=Sayesaman
    set USERDOMAIN_HOME=C:\jdev11.1.1.6\user_projects\domains\Sayesaman
    set SERVER_NAME=Sayesaman
    set WL_HOME=C:\jdev11.1.1.6\wlserver_10.3
    set WLS_USER=weblogic
    set WLS_PW=weblogic110
    set PRODUCTION_MODE=false
    set MEM_ARGS=-Xms512m –Xmx512m
    call "C:\jdev11.1.1.6\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    after running these scripts the windows service created successfully and running properly .
    but the state of all web application is failed and even I can't deploy any web application and I get the following error :
    Class Not Found : oracle.dms.wls.DMSServletFilterr
    Please help me to conver weblogic Admin server to a windows service correctly .
    Edited by: 950222 on Aug 1, 2012 2:46 AM

    Request you to share the entire stack of error.
    Meanwhile,I would recommend that you deleet the existing service created and re-create the service by following the below steps:-
    1. Create a text file
    %MIDDLEWARE_HOME%\user_projects\domains\servers\AdminServer\security\boot.properties
    Add the following lines
    username=weblogic
    password=
    Important to Note:
    a. If this step is not performed you will see the following generic error when the Admin Server is started in " background mode " via an MS Windows Service.
    BEA-090403 Authentication for user weblogic denied
    This error occurs because, by default, startup of Admin Server interactively prompts for the weblogic username and password. If the password is not supplied the error is thrown.
    b. As soon as you start the Admin Server the username and password values in this file will be encrypted. Be sure to stop / start the Admin Server as soon as possible to ensure the credentials are not exposed for longer than necessary.
    2. Create a command script called installAdmServer_Service.cmd which has lines like
    SETLOCAL
    set DOMAIN_NAME=ClassicDomain
    set USERDOMAIN_HOME=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 "C:\middleware\FMW11g\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 include 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:"C:\Middleware\FMW11g\user_projects\domains\ClassicDomain\%SERVER_NAME%-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'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.
    Start the Service. The Service will come back fairly quickly to say it is started. The actual time taken for AdminServer 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.
    Notes:
    An alternative to the boot.properties approach to specifying the Admin Server weblogic username / password is to add the following environment variables to your wrapper cmd script - installAdmServer_Service.cmd
    set WLS_USER=weblogic
    set WLS_PW=manager11g
    The beasvc utility encrypts the login credentials and stores them in the Windows registry.
    This is one of two possible methods for avoiding the username/password prompt when a server instance starts. The disadvantage to this method is that changing the username or password for the server instance requires you to delete the Windows service and set up a new one with the new username and password. Instead of this method, you can use a boot identity file. With a boot identity file, you can change the login credentials without needing to modify the Windows service.
    Create a MS Windows Service for a Managed Server e.g WLS_FORMS
    Important to Note:
    1. The ADMIN_URL value should reference the AdminServer hostname and listen port.
    2. 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.
    3. 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
    <Error> <EmbeddedLDAP> <BEA-171524> <Cannot determine the Listen address for the Admin server
    3. 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_AdmServer
    The Service "Startup Type" will be 'Automatic'. Just like any other MS Windows Service you can change the 'Startup Type' to 'Manual'.
    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.
    Hope this helps!
    -Sandeep

  • Trying to connect to a WebLogic Admin server via WLST

    I am trying to write a script that will connect to a Admin Server via WLST using a stored config file. I have the written the following:
    import os
    HASCONFIGFILE = os.path.isfile("/beadev/wls10/data/UserConfigInfo/configfile.secure")
    HASKEYFILE = os.path.isfile("/beadev/wls10/data/UserConfigInfo/keyfile.secure")
    if HASCONFIGFILE:
    CONFIGFILE = "/beadev/wls10/data/UserConfigInfo/configfile.secure"
    print "INFO: CONFIGFILE = %s" % CONFIGFILE
    if HASKEYFILE:
    KEYFILE = "/beadev/wls10/data/UserConfigInfo/keyfile.secure"
    print "INFO: KEYFILE = %s" % KEYFILE
    connect(userConfigFile=CONFIGFILE, userKeyFIle=KEYFILE, url='t3://165.79.164.14:21001')
    else:
    print "ERROR:Unable to obtain authentication parameters."
    exit()
    else:
    print "Unable to find user config and keyfiles."
    exit()
    connect(userConfigFile='/beadev/wls10/data/UserConfigInfo/configfile.secure', userKeyFIle='/beadev/wls10/data/UserConfigInfo/keyfile.secure', url='t3://165.79.164.14:21001')
    How ever when I run the script, I get the following WLSTException:
    beaadmin@moorea:/home/beaadmin/bin/scripts/wlst> java weblogic.WLST findFile.py
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    INFO: CONFIGFILE = /beadev/wls10/data/UserConfigInfo/configfile.secure
    INFO: KEYFILE = /beadev/wls10/data/UserConfigInfo/keyfile.secure
    This Exception occurred at Fri Jul 24 13:10:47 PDT 2009.
    weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:78)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:94)
    at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:87)
    at weblogic.security.UserConfigFileManager.getUandP(UserConfigFileManager.java:537)
    at weblogic.security.UserConfigFileManager.retrieveUandPValues(UserConfigFileManager.java:518)
    at weblogic.security.UserConfigFileManager.getUsernameAndPassword(UserConfigFileManager.java:179)
    at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:130)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
    at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:121)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
    at org.python.core.PyMethod.__call__(PyMethod.java:96)
    at org.python.core.PyObject.__call__(PyObject.java:248)
    at org.python.core.PyObject.invoke(PyObject.java:2016)
    at org.python.pycode._pyx6.connect$1(<iostream>:16)
    at org.python.pycode._pyx6.call_function(<iostream>)
    at org.python.core.PyTableCode.call(PyTableCode.java:208)
    at org.python.core.PyTableCode.call(PyTableCode.java:404)
    at org.python.core.PyFunction.__call__(PyFunction.java:184)
    at org.python.pycode._pyx18.f$0(/home/beaadmin/bin/scripts/wlst/findFile.py:13)
    at org.python.pycode._pyx18.call_function(/home/beaadmin/bin/scripts/wlst/findFile.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:208)
    at org.python.core.PyCode.call(PyCode.java:14)
    at org.python.core.Py.runCode(Py.java:1135)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
    at weblogic.management.scripting.WLST.main(WLST.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.
    at com.rsa.jsafe.JA_PKCS5Padding.a(Unknown Source)
    at com.rsa.jsafe.JG_BlockCipher.decryptFinal(Unknown Source)
    at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:68)
    ... 33 more
    Problem invoking WLST - Traceback (innermost last):
    File "/home/beaadmin/bin/scripts/wlst/findFile.py", line 13, in ?
    File "<iostream>", line 22, in connect
    WLSTException: 'Error occured while performing connect : Error connecting to the servercom.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte. Use dumpStack() to view the full stacktrace'
    Any ideas why this is not working or what 'Could not perform unpadding: invalid pad byte.' means?

    Nope, that wasn't me and bless me if I'm wrong but I'm generating this error because I have a non-encrypted string where I need an encrypted string. By that I mean the following line 'CONFIGFILE = "/beadev/wls10/data/UserConfigInfo/configfile.secure" Has a non encrypted string '/beadev/wls10/data/UserConfigInfo/' concatenated to the encrypted file configfile.secure? I wonder if it would just be easier to 'cd' into the directory where the config files live and run the connect from there, either way I have something to go on, thanks for that link.

  • Weblogic.Admin fails 2nd time through script loop

    Hi
    I have a script to shutdown and restart Managed servers in a cluster that the first time through the loop is successful, the second time throws:
    Failed to connect to http://lnx241.domain.com:7001: Destination unreachable; nested exception is:
    java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'lnx241.domain.com' and port: '7001' a WebLogic Server?; No available router to destination
    Here is the loop part of the script:
    ADMIN_URL=t3://lnx241.domain.com:7001
    #list servers that you want to shutdown with a space between names.
    LIST_SERVERS="absMaximoMngd1 absMaximoMngd2"
    echo "***The servers shutdown is forced. If the server won't shutdown you may have to open another SSH session and kill the managed server that is having problems shutting down***"
    #Stop the servers. Clear the servers' cache, restart the servers, hopefully one at a time...:)
    # the cd command is here incase the script is run through cron
    cd /bea/beadev/absMaximo
    . /opt/bea/weblogic81/server/bin/setWLSEnv.sh
    for server in $LIST_SERVERS
    do
         SERVER_NAME=$server
         echo "Stopping Weblogic Server $SERVER_NAME..."     
         java weblogic.Admin -url ${ADMIN_URL} -userconfigfile /bea/beadev/absMaximo/admin/adminKey/AdminConfig -userkeyfile /bea/beadev/absMaximo/admin/adminKey/AdminKeyFile FORCESHUTDOWN ${SERVER_NAME} 2>&1
         sleep 15
         clear_WLcache
         if [ $SERVER_NAME = absMaximoMngd1 ]
         then StartMngd1
         elif [ $SERVER_NAME = absMaximoMngd2 ]
         then StartMngd2
         fi
         sleep 5
    done
    If anyone has any insight into why this occurs, the help would be appreciated! Thanks!

    The lead to this error came though verbose logs; for which the path was mentioned in server logs. After going through the verbose logs, it was found that the content from the source was getting combined with the destination and at this time, the process was failing. This was owing to huge content being stored in the source.
    The solution was found by scoping the nodes which are required to be downloaded in source and thus, 'content services' were filtered out. Hence, the commit after the solution didnot try committng the content and hence, was successfull.

Maybe you are looking for

  • DNS and Active Directory error 4000 server 2008

    Hello all, My network skills aren't very good and I'm facing a dilemma. First off we have two Windows servers on the network. The newest is 2008 Standard (named Vader) and the other is 2000 (dells3). Obviously I'd like to get rid of the 2000, but the

  • How to use lightroom with desktop PC and mobile with MacBook Pro ?hav

    At home I have a desktop PC with all my lr files stored on NAS drive I want to be able to access and edit on macbook when away from home. 1 Is it possible or do I need a Mac pc or change laptop to windows based ? 2 do I use remote access to NAS or us

  • Ever since I updated the operating system, itune doesn't play music on iphone 4. if it plays, it plays only one song and gets stuck.

    Ever since I updated the operating system, itune doesn't play music on iphone 4. If it plays, it plays only one song and gets stuck. I've tried to reconnect to the computer to see whethere there has been missing portion during the upgrade... but not

  • Flex services with multiple return types

    Hello, We are creating a webapplication with flex and php. Everything is working very good, until we got to the library part of the application. Every service so far had only 1 return type (eg: User, Group, ...) Now for the library we want to return

  • What is correct??

    I need to perform the following SQL operations in my JSP First a select into a temp table Select ....... into #temptable from table inner join (select ......) After this #temp table is created I need to then get my data into a hierarchical format wit