WLST and configToScript

Some problems with configToScript (WLST).
I have a config.xml which I run configToScript on. It works fine and the message
I get at the end is that I should replace "ChangeME" to proper values. For my
JDBC Connection-pool, I replace it with a cleartext password. But what should
I replace it with for EmbeddedLDAP and SecurityConfiguration? If I run the script
without changing it I get this critical error:
<Jun 22, 2004 5:06:01 PM CEST> <Critical> <EmbeddedLDAP> <BEA-171517> <An error
occurred while attempting to get exclusive access to the embedded LDAP data files
directory - temp/myserver/ldap/ldapfiles. The exception thown is java.io.IOException:
Permission denied.>
Another problem I have when running the generated script is that it fails to create
a JMSDestinationKey:
Error occured while performing create : Cannot create MBean of type JMSDestinationKey.
You can only create MBean's children to the current cmo of type: Domain. Use dumpStack()
to view the error stack trace.
Even in interactive mode I have the same problem and the dumpStack() gives me
zero.
I'm running on Linux RedHat using WebLogic 8.1SP2.
Regards,
Martin

The problem with the IOException (Permission denied) is
solved. It arised when I tried to create the domain in my
ClearCase view. When doing the same thing in my home folder
I didn't have this problem.
How about creating a JMSDestinationKey? Anyone having a
solution for this?
//M
"Martin Gustavsson" <[email protected]> wrote:
>
>
>
Thanks for your quick response. I attach my config.xml.
//Martin
Satya Ghattu <[email protected]> wrote:
Hello Martin,
Martin Gustavsson wrote:
Some problems with configToScript (WLST).
I have a config.xml which I run configToScript on.
It works fine and the message I get at the end is that I
should replace "ChangeME" to proper values. For my
JDBC Connection-pool, I replace it with a cleartext password.
But what should I replace it with for EmbeddedLDAP and
SecurityConfiguration? If I run the script
without changing it I get this critical error:
<Jun 22, 2004 5:06:01 PM CEST> <Critical> <EmbeddedLDAP>
<BEA-171517><An error occurred while attempting to get
exclusive access to the embedded LDAP data files
directory - temp/myserver/ldap/ldapfiles. The exception thown
is java.io.IOException: Permission denied.>I haven't seen this myself and could not reproduce. It might
help if you remove the myResource.setCredential("changeME")
for the embedded ldap and security configuration from the
script. Server will assign a default value and you should be
all set.
Another problem I have when running the generated script is
that it fails to create a JMSDestinationKey:
Error occured while performing create : Cannot create MBean
of type JMSDestinationKey. You can only create MBean's
children to the current cmo of type: Domain. Use dumpStack()
to view the error stack trace.Could you please attach your config.xml?
Thanks,
-satya
Even in interactive mode I have the same problem and the
dumpStack() gives me zero.
I'm running on Linux RedHat using WebLogic 8.1SP2.
Regards,
Martin

Similar Messages

  • WLST and configToScript problems.....and problems....

    Well I have been running into many different problems with the py that gets created by the configToScript.
    The simplest of which is if I take a clean domain that has just been configured using the configuration wizard and just add a unix machine and generate the script, I cannot run the script successfully on a clean domain. A non-unix machine works OK but a unix machine barfs!
    Here is the error:
    configuring resource: UnixMachine/agentdev
    UnixMachine with name 'agentdev' has been created successfully.
    configuring resource: NodeManager/agentdev
    Error occured while performing create : Cannot create MBean of type NodeManager. You can only create MBean's children to the current cmo of type: Domain.
    After the unix machine is created in the script, it does not appear under the Machines for some reason!

    Can you please attach the config.xml?
    Thanks,
    -satya
    Well I have been running into many different problems
    with the py that gets created by the configToScript.
    The simplest of which is if I take a clean domain
    that has just been configured using the configuration
    wizard and just add a unix machine and generate the
    script, I cannot run the script successfully on a
    clean domain. A non-unix machine works OK but a unix
    machine barfs!
    Here is the error:
    configuring resource: UnixMachine/agentdev
    UnixMachine with name 'agentdev' has been created
    successfully.
    configuring resource: NodeManager/agentdev
    Error occured while performing create : Cannot create
    MBean of type NodeManager. You can only create
    MBean's children to the current cmo of type: Domain.
    After the unix machine is created in the script, it
    does not appear under the Machines for some reason!

  • WLST and WebLogic Integration

    Hi all,
    I have installed WebLogic Integration 8.5 bundle. Meaning i have also installed weblogic server 8.1. on Windows XP
    I am now trying to use Weblogic Scripting Tool WLST. But there is no tools on the menu(tools->weblogic scripting tool) this was added in the 9.1 installation...
    How do I configure my installation weblogic server 8.1 with WLI8.5 to run WLST?
    after i run setELSEnv.cmd to set the environment. Then i try java weblogic.WLST and the error is "java.lang.NoClassDefFoundError: weblogic/WLST"
    Where are the libs, how do i configure WLST to run.
    I also tried starting the WLST from the 9.1 installation, but it cannot connect to 8.1 installation, tough connecting to 9.1 installation is no problem. If i try i get this error: "weblogic.management.ManagementRuntimeException: java.lang.NoSuchMethodError: isCachable"
    (I installed weblogic 9.1 and there the WLST was installed during installation and all works just fine. unfortenatly my system must run on 8.1->wli8.5)

    Hi
    I am trying to use WLST tool for configuring Weblogic domain in 9.1 OFFLINE.
    I have done with almost all except JTA configuration.
    Can you please give me smaples for the same.
    The following is part iof my script...
    readTemplate('F:/AuctionDoc/Installer/inDomain.jar')
    cd('/JDBCSystemResource/localNonTxPool/JdbcResource/localNonTxPool')
    create('myJdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    set('JNDIName', 'jdbc/NonTxDataSource')
    #JDBC settings and other JMS settings worked
    But the JTA settings dint work
    #=======================================================================================
    # Set JTA timeout
    #=======================================================================================
    cd("/JTA/inInstDomain")
    set("TimeoutSeconds", "1200")
    set("AbandonTimeoutSeconds", "1200")
    I have to do the above OFFLINE.
    I could not locate the JTA folder or any thing related with JTA configuration to do offline using WLST
    Can you please give an example of JTA settings
    Thanks
    Binu

  • Errors while starting admin server using WLST and NodeManager

    Hi I am trying to start admin server using WLST and NodeManager. I started nodemanager and WLST successfully. but when I am trying to nmConnect() command I am getting below errors. Please any one tell me where am I going wrong? I copied dumpStack() optput as well..
    thanks
    manohar
    C:\oracle\Middleware\wlserver_10.3\server\bin>
    C:\oracle\Middleware\wlserver_10.3\server\bin>java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> nmConnect('weblogic','weblogic','localhost','5556')
    Connecting to Node Manager ...
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O
    =T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificat
    e list raised a certificate parsing exception PKIX: Unsupported OID in the Algor
    ithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O
    =T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificat
    e list raised a certificate parsing exception PKIX: Unsupported OID in the Algor
    ithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The
    loading of the trusted certificate list raised a certificate parsing exception
    PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.
    \,LTD.,C=JP". The loading of the trusted certificate list raised a certificate p
    arsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.84
    0.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading
    of the trusted certificate list raised a certificate parsing exception PKIX: Un
    supported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 123, in nmConnect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to Node
    Manager. : I/O error while reading domain directory
    Use dumpStack() to view the full stacktrace
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline> dumpStack()
    This Exception occurred at Tue May 03 10:45:03 EDT 2011.
    weblogic.nodemanager.NMException: I/O error while reading domain directory
    at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
    nt.java:299)
    at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
    nt.java:312)
    at weblogic.nodemanager.client.NMServerClient.connect(NMServerClient.jav
    a:248)
    at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
    ent.java:199)
    at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
    ent.java:205)
    at weblogic.nodemanager.client.NMServerClient.getVersion(NMServerClient.
    java:52)
    at weblogic.management.scripting.NodeManagerService.verifyConnection(Nod
    eManagerService.java:179)
    at weblogic.management.scripting.NodeManagerService.nmConnect(NodeManage
    rService.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx2.nmConnect$3(<iostream>:118)
    at org.python.pycode._pyx2.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx16.f$0(<console>:1)
    at org.python.pycode._pyx16.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    weblogic.nodemanager.NMException: I/O error while reading domain directory
    wls:/offline>
    wls:/offline>

    Hi manohar,
    Please try the following article... (With Node Manager Communication type as "Plain" because it looks like you are getting PKIX security certificate chain message ) Just to isolate the issue
    Topic: Start AdminServer And NodeManager Using WLST
    http://middlewaremagic.com/weblogic/?p=6580
    Thanks
    Ravish Mody

  • Starting admin server using WLST and NodeManager

    Hi I am trying to start admin server using WLST and NodeManager. I started nodemanager and WLST successfully. but when I am trying to nmConnect() command I am getting below errors. Please any one tell me where am I going wrong? I copied dumpStack() optput as well..
    thanks
    manohar
    C:\oracle\Middleware\wlserver_10.3\server\bin>
    C:\oracle\Middleware\wlserver_10.3\server\bin>java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> nmConnect('weblogic','weblogic','localhost','5556')
    Connecting to Node Manager ...
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O
    =T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificat
    e list raised a certificate parsing exception PKIX: Unsupported OID in the Algor
    ithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O
    =T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificat
    e list raised a certificate parsing exception PKIX: Unsupported OID in the Algor
    ithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The
    loading of the trusted certificate list raised a certificate parsing exception
    PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.
    \,LTD.,C=JP". The loading of the trusted certificate list raised a certificate p
    arsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.84
    0.113549.1.1.11.>
    <May 3, 2011 10:45:02 AM EDT> <Notice> <Security> <BEA-090898> <Ignoring the tru
    sted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading
    of the trusted certificate list raised a certificate parsing exception PKIX: Un
    supported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 123, in nmConnect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to Node
    Manager. : I/O error while reading domain directory
    Use dumpStack() to view the full stacktrace
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline>
    wls:/offline> dumpStack()
    This Exception occurred at Tue May 03 10:45:03 EDT 2011.
    weblogic.nodemanager.NMException: I/O error while reading domain directory
    at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
    nt.java:299)
    at weblogic.nodemanager.client.NMServerClient.checkResponse(NMServerClie
    nt.java:312)
    at weblogic.nodemanager.client.NMServerClient.connect(NMServerClient.jav
    a:248)
    at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
    ent.java:199)
    at weblogic.nodemanager.client.NMServerClient.checkConnected(NMServerCli
    ent.java:205)
    at weblogic.nodemanager.client.NMServerClient.getVersion(NMServerClient.
    java:52)
    at weblogic.management.scripting.NodeManagerService.verifyConnection(Nod
    eManagerService.java:179)
    at weblogic.management.scripting.NodeManagerService.nmConnect(NodeManage
    rService.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx2.nmConnect$3(<iostream>:118)
    at org.python.pycode._pyx2.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx16.f$0(<console>:1)
    at org.python.pycode._pyx16.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    weblogic.nodemanager.NMException: I/O error while reading domain directory
    wls:/offline>
    wls:/offline>

    Hi manohar,
    Thank you, Pierluigi for encouraging Middleware Magic Team :)
    manohar, apart from what *"Pierluigi"* has suggested, additionally please notice the following messsage in your StackTrace (whih is basically a NOTICE message but does not look good)
    The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object:In your case it looks like the actual issue is your Certificate which comes by default with JDK. As mentioned in this BUG.
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6803022
    Additionally please refer to the following Thread:
    http://forums.oracle.com/forums/message.jspa?messageID=3958098#3958098
    I am suspecting that you need to do the following in order to get rid of Certificate Errors which is the ROOT cause of your issue
    Do the following: After taking a backup of *"$JAVA_HOME/jre/lib/security/cacerts"* file
    cd $JAVA_HOME/jre/lib/security
    cp -p cacerts cacerts.original
    chmod 644 cacerts
    keytool -delete -alias ttelesecglobalrootclass2ca -keystore cacerts
    keytool -delete -alias ttelesecglobalrootclass3ca -keystore cacertsAlso try with Node Manager Communication type as "*Plain*" because it looks like you are getting PKIX security certificate chain message, just to isolate the issue.
    Regards,
    Ravish Mody

  • WLST and WLS 81. SP4 Issue

    A WLST script of mine that I have used to build domains since 8.1 SP1 no longer works with SP4. It appears that calls to shutdown( <servername>, force="true" ) immediately followed by startServer (to pick up config changes) are generating errors:
    Connecting to weblogic server instance running at t3://htx690.cce.cpqcorp.net:10
    510 as username admin ...
    <Apr 4, 2005 3:08:57 PM CDT> <Notice> <WebLogicServer> <BEA-000353> <Thread "ListenThread.Default" stopped listening on port 10510, ip address 16.110.73.1
    30>
    <Apr 4, 2005 3:08:57 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Apr 4, 2005 3:08:57 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to SHUTTING_DOWN>
    <Apr 4, 2005 3:08:57 PM CDT> <Alert> <WebLogicServer> <BEA-000218> <Servershutdown has been requested by <WLS Kernel>>
    <Apr 4, 2005 3:08:57 PM CDT> <Alert> <WebLogicServer> <BEA-000219> <The shutdown sequence has been initiated.>
    Traceback (innermost last):
    File "/opt/sasu/utils/domainBuilder/bin/sasu_init.py", line 56, in ?
    File "<string>", line 1, in ?
    File "/opt/sasu/utils/domainBuilder/bin/sasu_funcs.py", line 89, in configureD
    omain
    File "/opt/sasu/utils/domainBuilder/bin/sasu_funcs.py", line 38, in connectToA
    dmin
    File "<iostream>", line 64, in connect
    WLSTException: 'Error occured while performing connect : Unknown Error. Use dump
    Stack() to view the error stack trace'
    * I have now put in a 15 second sleep and this appears to be working. Is this a known issue with WLST and SP4? I notice with the 15 seconds sleep that is appears to properly drain stdout/err, something it does not do without the pause (though it was not required with < SP4).
    Here is it now working with 15 second pause:
    Disconnected from weblogic server: AdminServer
    Waiting 15 seconds for AdminServer to shut down...
    <Apr 4, 2005 3:45:25 PM CDT> <Notice> <WebLogicServer> <BEA-000353> <Thread "ListenThread.Default" stopped listening on port 10510, ip address 16.110.73.1
    30>
    <Apr 4, 2005 3:45:25 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Apr 4, 2005 3:45:25 PM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to SHUTTING_DOWN>
    <Apr 4, 2005 3:45:25 PM CDT> <Alert> <WebLogicServer> <BEA-000218> <Servershutdown has been requested by <WLS Kernel>>
    <Apr 4, 2005 3:45:25 PM CDT> <Alert> <WebLogicServer> <BEA-000219> <The shutdown sequence has been initiated.>
    Stopped draining child stderr
    Stopped draining child stdout
    Admin Server Name:AdminServer
    Domain Name:validateSP4
    Domain Directory:/opt/sasuapps/validateSP4/domain/validateSP4
    Starting weblogic server ...
    <Apr 4, 2005 3:45:43 PM CDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Server VM Version 1.4.2 1.4.2.05-040917-
    18:54-PA_RISC2.0 PA2.0 (aCC_AP) from Hewlett-Packard Company>
    Message was edited by:
    dstoflet

    Hello Daryl,
    Not sure what to say, it does seem like the sp4 server is returning success even before it is completely shutdown.. :-(. The workaround you put in to wait for 15 seconds seems to be a right workaround.
    thanks,
    -satya

  • WLST and Jython "advanced" setup

    Hi,
    I have a few questions concerning WLST and Jython:
    OS:
    Unix / Linux
    Situation:
    1) Unable to include wlst-file created by using writeIniFile automatically
    2) using org.python.util.jython without caching message
    Information:
    1) wlst.py generated by using writeIniFile in an interactive java weblogic.WLST session
    2) when starting jython using "java org.python.util.jython" the message "*sys-package-mgr*: can't create package cache dir, '/opt/oracle/fmw/fmw11gR1PS2/wlserver_10.3/server/lib/weblogic.jar/cachedir/packages'" is shown
    3) location for often used modules is unkown. For weblogic.WLST this is "<WL-Home>/wlserver_10.3/common/wlst/modules"
    Request:
    1) where should common modules be placed for the included jython
    2) how to change jython cache location
    3) is it possible to update to another jython version
    Any and all help welcome

    As a data point for you (others may have had a better experience) we tried to also use Jython 2.2 with our WLST automation env that we created and found the same issues (and more) that you are describing. When we would talk with support on the matter, we were always told that WLST was only tested/certified on the version of Jython that shipped with WLS (in our case 10 MP1). In 10MP1, it is Jython v2.1. Once we started using v2.1 (and got past a few other CLASSPATH issues regarding a module JAR that is packaged with WLS that is somehow not put on the CLASSPATH when running the setWLSEnv.[cmd/sh] script), we are up and running and have had no further issues. Hope this helps...

  • WLST command ConfigToScript()

    Can I use WLST Command "ConfigToScript() " to convert diameter.xml file to WLST Script

    1. install diameter domain using diameterdomain.jar template
    2. you will be able to see a 3 custom xml file under
    C:\bea\user_projects\domains\diameter\config\custom. diameter.xml file is one among them

  • WLST and JDBC Descriptor files

    I'm trying to change the configuration of an portal domain. In 8.1 this was no problem, but in 9.X there's a notion of a JDBC Descriptor file to describe the JDBC connection.
    So when I run:
    readTemplate(r'/%bea_home%/weblogic92/common/templates/applications/wlp.jar')
    cd('JDBCSystemResource/portalDataSourceAlwaysXA')
    When I look at this JDBC resource all it contains is a reference to a descriptor file.
    How to I change these settings (we're using Oracle and not Pointbase)?
    Second question:
    Where are all the other jdbc settings set? When I run the configuration wizard, I see a lot of data sources - among them a sample data source. These are no in the referenced JDBC descriptor files - so where do they come from? I'm talking about the following data sources which show up in the configuration wizard:
    - p13nDataSource
    - cgDataSource
    - cgDataSource-nonXA
    - samplesDataSource
    As a sidenote - I think that BEA should document how one alters JDBC connections which are already defined inside a template. I haven't found any such documentation.
    Trond Andersen, Invenia AS, http://www.invenia.no

    The problem with the IOException (Permission denied) is
    solved. It arised when I tried to create the domain in my
    ClearCase view. When doing the same thing in my home folder
    I didn't have this problem.
    How about creating a JMSDestinationKey? Anyone having a
    solution for this?
    //M
    "Martin Gustavsson" <[email protected]> wrote:
    >
    >
    >
    Thanks for your quick response. I attach my config.xml.
    //Martin
    Satya Ghattu <[email protected]> wrote:
    Hello Martin,
    Martin Gustavsson wrote:
    Some problems with configToScript (WLST).
    I have a config.xml which I run configToScript on.
    It works fine and the message I get at the end is that I
    should replace "ChangeME" to proper values. For my
    JDBC Connection-pool, I replace it with a cleartext password.
    But what should I replace it with for EmbeddedLDAP and
    SecurityConfiguration? If I run the script
    without changing it I get this critical error:
    <Jun 22, 2004 5:06:01 PM CEST> <Critical> <EmbeddedLDAP>
    <BEA-171517><An error occurred while attempting to get
    exclusive access to the embedded LDAP data files
    directory - temp/myserver/ldap/ldapfiles. The exception thown
    is java.io.IOException: Permission denied.>I haven't seen this myself and could not reproduce. It might
    help if you remove the myResource.setCredential("changeME")
    for the embedded ldap and security configuration from the
    script. Server will assign a default value and you should be
    all set.
    Another problem I have when running the generated script is
    that it fails to create a JMSDestinationKey:
    Error occured while performing create : Cannot create MBean
    of type JMSDestinationKey. You can only create MBean's
    children to the current cmo of type: Domain. Use dumpStack()
    to view the error stack trace.Could you please attach your config.xml?
    Thanks,
    -satya
    Even in interactive mode I have the same problem and the
    dumpStack() gives me zero.
    I'm running on Linux RedHat using WebLogic 8.1SP2.
    Regards,
    Martin

  • Issues with WLST script - configToScript.py

    Hi folks,
    If you know can you please help me here.
    I am trying to use configToScript() to create a script for existing domain to convert to script. I can create the script, but when i ran the script. It is failing, do you know what are the changes to be made to make this work.
    And Is there a sample script to edit the current domain.
    Thanks,
    H.

    Hello dominique,
    Couple of ways to do this:
    1) java weblogic.WLST config.py
    Or
    2) java weblogic.WLST
    wls:/offline> execfile("config.py")
    thanks,
    -satya
    Dominique Jean-Prost wrote:
    Hello,
    I've just discovered wlst thanks to WLDJ. Previously I used to work with WLShell.
    Anyway, I've managed to use configToScript, and I now have the propseties file and the .py file. How do I use the .py ? How do I rerun the script so that I get a new Server ?
    Regards,
    Dom

  • Problem starting adminserver with WLST and Nodemanager

    I have a domain with one cluster containing 4 managed servers. Now I want to start the adminserver with WLST using the Nodemanager. (I know there are other/beter ways but in this situation I need to do it with Nodemanager).
    The problem is that the Nodemanager doesn't add the right memory arguments to the start command of the admin server.
    This is what I do:
    nmConnect(usernaam,password,host,port,domain)
    nmstart(adminserver)
    This does start the adminserver only without the proper memory arguments.
    I tried:
    using a startup.properties file in the directory <domain-dir> \servers\<server-name> \data\nodemanager with the following arguments: -Xms1024m -Xmx1024m
    and
    Puting the memory arguments in the "Server Start" properties in the config.xml (This works fine for the managedservers)
    How can I solve this?

    The nmstart command has a properties argument. Have you tried that?
    nmStart([serverName], [domainDir], [props], [writer])
    <Richard Greeven> wrote in message news:[email protected]..
    I have a domain with one cluster containing 4 managed servers. Now I want to
    start the adminserver with WLST using the Nodemanager. (I know there are
    other/beter ways but in this situation I need to do it with Nodemanager).
    The problem is that the Nodemanager doesn't add the right memory arguments
    to the start command of the admin server.
    This is what I do:
    nmConnect(usernaam,password,host,port,domain)
    nmstart(adminserver)
    This does start the adminserver only without the proper memory arguments.
    I tried:
    using a startup.properties file in the directory <domain-dir>
    \servers\<server-name> \data\nodemanager with the following
    arguments: -Xms1024m -Xmx1024m
    and
    Puting the memory arguments in the "Server Start" properties in the
    config.xml (This works fine for the managedservers)
    How can I solve this?

  • WLST and reading a property with a "." in the name...

    I am trying to share a properties file between two processes.
    The file has entries in it similar to the following:
    domain.name=myDomainName
    in my wlst script, when I try to read this property and assign its value to a variable in my script, it chokes because of the period. Is there an easy way to escape the period, or something in my script, so wlst can read this kind of property?

    Thanks Mark,
    I saw a similar example in another script, but for some reason it is not working in mine, and I'm not sure why....
    So... I went ahead and created a test script:
    from java.io import FileInputStream
    from java.util import Properties
    from java.io import File
    import DspCommonCommands as dsp
    def loadPropertiesFromFile(configPropFile):
    configProps = Properties()
    propInputStream = FileInputStream(configPropFile)
    configProps.load(propInputStream)
    propInputStream.close()
    return configProps
    importConfigFile = sys.argv[1]
    print importConfigFile
    domainProps = loadPropertiesFromFile(importConfigFile)
    try:
    keySet = domainProps.keySet();
    for key in keySet:
    print 'Key = Value '
    print 'domain.name =' + domainProps
    exit()
    except:
    dumpStack()
    print '********************************************'
    print '* E R R O R O C C U R R E D *'
    print '********************************************'
    print ''
    raise
    when I run it by calling wlst.sh and passing the script name (mytest.py) and the property file name (import.prop) I get the following (after my classpath is displayed):
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    import.prop
    Key = Value
    * E R R O R O C C U R R E D *
    Problem invoking WLST - Traceback (innermost last):
    File "/wls_domains/scripts/bea_scripts/v10gR3/aldsp/mytest.py", line 25, in ?
    TypeError: __add__ nor __radd__ defined for these operands
    -----

  • Weblogic 10, WLST and Admin Console Classpath Exceptions

    I've been deploying an application to Weblogic 10 (not 10.3 from Oracle, the last version under the BEA logo) for a few weeks now without a problem. We're going to upgrade to 10.3 from Oracle in our development environment and play around with that hopefully today but I can't imagine a dot-version being much different so I figured I'd post the issue anyway.
    Recently, we've been having some issues with the WLST script we use to deploy/redeploy the application. It seems to have just started happening randomly which is odd because the script has not been modified since the get-go. What's happening is the application is compiled, staged and then the WLST script kicks off, log into the application server, looks to see if the app is already deployed, if it is, it redploys it with the latest code and then starts it up and then exits. Every now and again, the next time we go to deploy the application, the WLST fails saying that someone currently has a lock on the admin console. When we log in to the admin console, we see that the user the WLST script uses to log into the admin console currently has a lock on the console and we have the option to take the lock from this user.
    When we click the button to take the lock, we get a HUGE exception in the lefthand panel where the Lock & Edit button typically is that says something along the lines of:
    Error opening ...
    The source of this error is javax.servlet.ServletException: javax.xml.transform.TransformerFactoryConfigurationError: Provider net.sf.saxon.TransformerFactoryImpl not found at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:324) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528) at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454) at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:551) at ...
    If I click on the 'Home' button along the upper righthand corner to go back to the home page of the admin console, the error goes away, the 'Activate Changes' button reappears, and then I click that and the Lock & Edit button reappears, then if I go back to my WLST script and run it, it runs successfully. If I log back into the admin console, everything appears normally. This happens intermittently and I'm not sure why it's happening some times and not others. If my WLST script is incorrect I would assume it would behave this way EVERY time.
    I also don't get why the xml transformer factory SOMETIMES throws the exception and sometimes it doesn't. It also happens when I try to click on a JDBC data source. Same exact exception is thrown on the default configuration tab, if I click on any of the other tabs available after clicking on my JDBC data source, those all appear fine, just the initial default Configuration > General tab shows this huge exception. If I stop and restart the application server, these exceptions magically go away...the odd thing is this exception being thrown seems to be referencing libraries made available by my deployed application (the whole net.sf.saxon.TransformerFactoryImpl class is in a library we deploy with our application). These jar files containing these libraries should ONLY be available to the deployed application, I'm not putting these files on the classpath of the application server, so why the application server's admin console have any knowledge of these libraries? Could these be mucking with the overall functionality of the admin server's behavior?
    Here is my WLST script I use the deploy the application. If you see something wrong with it, any feedback would be greatly appreciated. Any thoughts on the whole classpath of my application being used by the Weblogic Admin console would be helpful too.
    WLST Script:
    connect("merlin", "merlin595")
    # check to see if the apb data source exists and if so, make sure it's targeting the AdminServer
    try:
         # Either deploy or redeploy application
         try:
              print 'Checking for the existence of the APB application.'
              cd('/AppDeployments/apbEar')
              print 'The APB application will be redeployed.'
              progress=redeploy('apbEar')
              print 'Status of redeployment: ' + progress.getState()
         except WLSTException:
              print 'The APB application has not yet been deployed to this server, so application will be deployed for the first time now.'
              progress=deploy(appName='apbEar', path='/opt/weblogic/merlinpb/merlinpbEar/apbEar', targets='AdminServer')
              print 'Status of initial deployment: ' + progress.getState()
         # Start application
         try:
              print 'Starting APB application'
              startApplication(appName='apbEar')
         except WLSTException:
              pass
         disconnect()
         print 'End of script, exiting WLST...'
         exit()
    except WLSTException:
         print 'Could not deploy apb. Please log into the admin console and attempt the deployment manually.'
    Oh, one final thing I've noticed when I use this script. The last thing the script says WHEN it actually runs successfully is:
    <Nov 13, 2008 10:57:13 AM EST> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>
    Why does it say that? What does that mean? Is my script mot structure correctly above?
    Any help is greatly appreciated. Thanks again!
    Rob

    Hey Mike,
    The problem I was experiencing was that we had code that was applying an XSL stylesheet against XML we are getting from the database. In order for this stylesheet to work, we had to set code that does the following:
    System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl");
    Now the first time this code was called, and someone subsequently went to the Weblogic admin console, the screens would be completely unreachable...we were experiencing loads of compilation errors. So I did some digging and tried various other ways to set the TransformerFactory class that wouldn't affect the system as a whole. I found, by sheer luck, the fact that you can set this parameter in the weblogic-application.xml file located in the META-INF directory of your root EAR folder. The very first element in the XML of my weblogic-application.xml file is now:
    <wls:xml>
         <wls:parser-factory>
              <wls:transformer-factory>net.sf.saxon.TransformerFactoryImpl</wls:transformer-factory>
         </wls:parser-factory>
    </wls:xml>
    I now deploy the application with this and my reports are transformed properly and the admin console and command-line WLST scripts are all working uninterrupted as well without any adverse side-effects. Hope that helps. Just an aside, in preparation for the upgrade to WLS10, I restructured our application to a split development directory structure...this structure in combination with Workshop 10 really has made development and deployment much easier.
    Best of luck. Cheers!
    Rob

  • WLST and Jython 2.2

    We are trying to write our deployment process using jython 2.2 and import wlst modules. When we attempt to import wlstModule into our jython script, the following error is received:
    File "/opt/anthill3/agent/SNICustomBuildDeploy/scripts/jython/DeployMain.py", line 21, in ?
    File "/opt/anthill3/agent/SNICustomBuildDeploy/scripts/jython/WeblogicUtil.py", line 5, in ?
    File "/opt/anthill3/agent/SNICustomBuildDeploy/scripts/jython/wlstModule.py", line 16, in ?
    File "<iostream>", line 25, in ?
    TypeError: cannot lazy load PyObject subclass
    Should we be able to use wlst within jython 2.2, or are we limited to using the 2.1 version of jython?

    As a data point for you (others may have had a better experience) we tried to also use Jython 2.2 with our WLST automation env that we created and found the same issues (and more) that you are describing. When we would talk with support on the matter, we were always told that WLST was only tested/certified on the version of Jython that shipped with WLS (in our case 10 MP1). In 10MP1, it is Jython v2.1. Once we started using v2.1 (and got past a few other CLASSPATH issues regarding a module JAR that is packaged with WLS that is somehow not put on the CLASSPATH when running the setWLSEnv.[cmd/sh] script), we are up and running and have had no further issues. Hope this helps...

  • Connect using WLST and userConfigFile

    Hi
    I am using WLST to connect to admin server and do deployments etc. I have a jython script which has the following line to connect (as given in bea docs) :
    <p>
    <b>connect(userConfigFile=cFile,userKeyFile=kFile,aURL)</b>
    </p>
    I invoke the script as :
    <p>
    <b>java weblogic.WLST myscript.py</b>
    </p>
    I get the following error:
    <p><b>
    Traceback (innermost last):
    (no code object) at line 0
    File /buildscripts/webapp/myscript.py", line 33
    SyntaxError: non-keyword argument following keyword
    </b></p>
    Here Line 33 is the connect line.
    Am I doing something wrong. What is the right way to connect using a userConfigFile and userKeyFile thru WLST
    Thanks
    Nitin

    Sudarsan Mukundhan <> wrote:
    Hi,
    I am using the following command
    connect(userConfigFile='D:/Command_Line_Scripts/userConfigFile.secure',userKeyFile='D:/Command_Line_Scripts/userKeyFile.secure',url='t3://beaweblogic07:8501')
    >
    but it throws the exception
    Connecting to weblogic server instance running at t3:\beaweblogic07:8501
    as userna me weblogicadmin ...
    Traceback (innermost last):
    File "<input>", line 1, in ?
    File "<iostream>", line 74, in connect
    WLSTException: 'Error occured while performing connect : Error getting the
    initial
    context. There is no server running at t3:\\beaweblogic07:8501. Use
    dumpStack() t
    o view the error stack trace'
    Any idea what is wrong here
    Thanks
    Sudarsan MukundhanHi,
    Your server is just not reachable?
    B
    Schelstraete Bart
    [email protected]
    http://www.schelstraete.org
    http://www.linkedin.com/in/bschelst

Maybe you are looking for

  • How do I check multiple users on my macbook pro?

    When cancelling recent software update I received the followng message: Multiple users logged in To update, log out all other users who are currently logged in to this computer Not aware of anybody else having logged-in (eg Mrs W) so wondering how to

  • Security filter setup missing in one of the planning applications

    We noticed recently that our users in one of the planning applications were not able to access any data. Then we noticed that the entire security filter setup went missing/wipped out for that application and had to set up manually and then a security

  • How can I  rotate clipped head image   in animated gif

    I am trying  a copy and paste to make  take  2 items-    A video of person  shoveling  snow  and  replace the  head. Here is  what  I came up with-- real  rough There are 2 issues here. 1.  how to edit  a head to  give a different view angle  to matc

  • Printing window envelope on CM1415fnw ruins envelope

    I'm trying to print a logo on a window envelope and not only it the envelope is out of shape but the plastic window is ruined as well. Is there any solution for this?

  • QT Pro and Windows

    Anyone know when QT Pro will support video and or camera capture in Windows? All I can find is "*Audio only supported in Windows" ???