WLST offline writeDomain

I've been running WLST in off-line mode and when I try to write the modified domain, I get an exception which doesn't help me very much. I just wonder why this method is called: "SecurityInfo.getAllUsersInAdminRole"
[wlst] com.bea.plateng.domain.script.jython.WLSTException: java.lang.NullPointerException
[wlst] at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
[wlst] at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1373)
[wlst] at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:712)
[wlst] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
     [wlst] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
     [wlst] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
[wlst] at org.python.core.PyMethod.__call__(PyMethod.java:96)
[wlst] at org.python.core.PyObject.__call__(PyObject.java:270)
[wlst] at org.python.core.PyInstance.invoke(PyInstance.java:261)
[wlst] at org.python.pycode._pyx5.writeDomain$14(/tmp/WLSTOfflineIni7092.py:70)
[wlst] at org.python.pycode._pyx5.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObject;(/tmp/WLSTOfflineIni7092.py:???)
[wlst] at org.python.core.PyTableCode.call(PyTableCode.java:208)
[wlst] at org.python.core.PyTableCode.call(PyTableCode.java:267)
[wlst] at org.python.core.PyFunction.__call__(PyFunction.java:172)
[wlst] at org.python.pycode._pyx15.f$0(/home/xxxx/projects/tromskraft/customerportal/devenv/portal/build/filtered.py:112)
[wlst] at org.python.pycode._pyx15.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObject;(/home/xxx/projects/tromskraft/customerportal/devenv/portal/build/filtered.py:???)
[wlst] at org.python.core.PyTableCode.call(PyTableCode.java:208)
[wlst] at org.python.core.PyCode.call(PyCode.java:14)
[wlst] at org.python.core.Py.runCode(Py.java:1135)
[wlst] at org.python.core.__builtin__.execfile_flags(__builtin__.java:308)
[wlst] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:158)
[wlst] at weblogic.management.scripting.utils.WLSTInterpreter.execfile(WLSTInterpreter.java:305)
[wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:108)
[wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wlst] Caused by: java.lang.NullPointerException
[wlst] at com.bea.plateng.domain.security.SecurityInfo.getAllUsersInAdminRole(SecurityInfo.java:587)
[wlst] at com.bea.plateng.domain.security.SecurityInfo.getDefaultAdminID(SecurityInfo.java:73)
[wlst] at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:572)
[wlst] at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:704)
[wlst] at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
     [wlst] at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
     [wlst] at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
[wlst] at org.python.core.PyMethod.__call__(PyMethod.java:96)
[wlst] at org.python.core.PyObject.__call__(PyObject.java:270)
[wlst] at org.python.core.PyInstance.invoke(PyInstance.java:261)
[wlst] at org.python.pycode._pyx5.writeDomain$14(/tmp/WLSTOfflineIni7092.py:70)
[wlst] at org.python.pycode._pyx5.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObject;(/tmp/WLSTOfflineIni7092.py:???)
[wlst] at org.python.core.PyTableCode.call(PyTableCode.java:208)
[wlst] at org.python.core.PyTableCode.call(PyTableCode.java:267)
[wlst] at org.python.core.PyFunction.__call__(PyFunction.java:172)
[wlst] at org.python.pycode._pyx15.f$0(/home/xxxxx/projects/tromskraft/customerportal/devenv/portal/build/filtered.py:112)
[wlst] at org.python.pycode._pyx15.call_function(ILorg.python.core.PyFrame;)Lorg.python.core.PyObject;(/home/xxxx/projects/tromskraft/customerportal/devenv/portal/build/filtered.py:???)
[wlst] at org.python.core.PyTableCode.call(PyTableCode.java:208)
[wlst] at org.python.core.PyCode.call(PyCode.java:14)
[wlst] at org.python.core.Py.runCode(Py.java:1135)
[wlst] at org.python.core.__builtin__.execfile_flags(__builtin__.java:308)
[wlst] at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:158)
[wlst] at weblogic.management.scripting.utils.WLSTInterpreter.execfile(WLSTInterpreter.java:305)
[wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:108)
[wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wlst] at org.apache.tools.ant.Task.perform(Task.java:364)
[wlst] at org.apache.tools.ant.Target.execute(Target.java:341)
[wlst] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wlst] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
Trond Andersen, Invenia AS, http://www.invenia.no

Here how I did it.
1. Read the basic domain template:
<pre>
readTemplate(r'@bea.home@/weblogic92/common/templates/domains/wls.jar')
</pre>
2. Set domain name and possibly username and password. Also alter the server name if there is a new for it.
3. Write the domain to the file system:
<pre>
setOption('OverwriteDomain', 'true')
writeDomain(r'@domain.placement@')
closeTemplate()
</pre>
4. Read the newly written domain
<pre>
readDomain('@domain.placement@')
setOption('ReplaceDuplicates','false')
</pre>
5. Add the required templates. Here is how we did it for the portal setup:
<pre>
addTemplate(r'@bea.home@/weblogic92/common/templates/applications/workshop_wl.jar')
addTemplate(r'@bea.home@/weblogic92/common/templates/applications/p13n.jar')
addTemplate(r'@bea.home@/weblogic92/common/templates/applications/wlp.jar')
</pre>
6. Do all the changes to the portal configuration like setting the portal data sources, jms configuration etc.
7. Update the domain to file:
<pre>
updateDomain()
closeDomain()
</pre>
done!!!
Trond Andersen, Invenia AS, http://www.invenia.no

Similar Messages

  • Wlst ofline writeDomain error

    Hi,
    I am using wlst offline downloaded from dev2dev site, which i believe is based on jython. Anyway, i am trying to create a domain. All is well untill i try to write the domain using writeDomain(). It fails with the following error
    "java.io.IOException: Unable to resolve input source.
    Error: writeDomain() failed.
    Traceback (innermost last):
    File "wls.py", line 9, in ?
    File "initWls.py", line 70, in writeDomain
    com.bea.plateng.domain.script.jython.WLSTException: java.lang.NullPointerException
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:890)
    at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:459)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__(PyMethod.java)
    at org.python.core.PyObject.__call__(PyObject.java)
    at org.python.core.PyInstance.invoke(PyInstance.java)
    I have a valid directory and can write perfectly into this. Any ideas, why this failing to write the domain.
    Thx,
    Ravi

    Hello,
    I believe you did not set up your classpath according to the doc.
    Specifically I think you did not put @WL_HOME/server/lib in classpath.
    The script runs fine on my machine. Please follow the readme.txt,
    especially step 3 and step 4:
    3. Extract the following files from the WLST offline configuration kit:
    NOTE: <WL_HOME> refers to the root directory of your WebLogic
    Platform installation.
    By default, the pathname for this directory is c:\bea\weblogic81.
    o WLST JAR files, including config.jar, comdev.jar, and 3rdparty.jar, to
    <WL_HOME>\common\lib.
    NOTE: It is recommended that you back up the existing JAR files.
    For version compatibility,
    they may have to be used when you use non-WLST related Weblogic
    features.
    o runWLSTOffline.cmd and runWLSTOffline.sh script files to
    <WL_HOME>\common\bin.
    o (Optional) Sample script files to the desired location.
    4. Update the CLASSPATH environment variable to include the following
    WebLogic Server,
    Jython, and WLST files and directories:
    NOTE: <JYTHON_HOME> refers to the root directory of your Jython
    installation.
    <WL_HOME>\server\lib
    <WL_HOME>\server\lib\weblogic.jar
    <JYTHON_HOME>\jython.jar
    <WL_HOME>\common\lib\config.jar
    <WL_HOME>\common\lib\comdev.jar
    <WL_HOME>\common\lib\3rdparty.jar
    Thanks,
    -satya
    Web Team wrote:
    Hi The log is as follows
    "========================================================
    << read template from "/opt/was/bea/weblogic81/common/templates/domains/wls.jar"
    succeed: read template from "/opt/was/bea/weblogic81/common/templates/domains/wls.jar"<< find Server "myserver" as obj0
    succeed: find Server "myserver" as obj0<< set obj0 attribute ListenAddress to ""
    succeed: set obj0 attribute ListenAddress to ""<< set obj0 attribute ListenPort to "7001"
    succeed: set obj0 attribute ListenPort to "7001"<< find User "weblogic" as obj1
    succeed: find User "weblogic" as obj1<< set obj1 attribute Password to "********"
    succeed: set obj1 attribute Password to "********"<< set config option OverwriteDomain to "true"
    succeed: set config option OverwriteDomain to "true"<< write Domain to "/opt/was/ravi/user_projects/mydomain"
    esourceBundleManager - Retrieved (Everyone of all groups.) under key (SecurityDesc.group.everyone) from namespace <config>.
    2004-09-10 08:52:13,397 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (built-in anonymous role) under key (SecurityDesc.role.anonymous) from namespace <config>.
    2004-09-10 08:52:13,649 INFO [main] com.bea.plateng.domain.TemplateBuilder - _apps_ not found in the template jar. Assuming old template structure.
    2004-09-10 08:52:14,647 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Target) under key (target) from namespace <config>.
    2004-09-10 08:52:14,664 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Server) under key (Server) from namespace <config>.
    2004-09-10 08:52:14,779 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Application) under key (application) from namespace <config>.
    2004-09-10 08:52:14,863 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Target) under key (target) from namespace <config>.
    2004-09-10 08:52:14,867 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Server) under key (Server) from namespace <config>.
    2004-09-10 08:52:14,875 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Service) under key (service) from namespace <config>.
    2004-09-10 08:52:14,879 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Migratable RMI Service) under key (migratableRMIService) from namespace <config>.
    2004-09-10 08:52:14,883 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Shutdown Class) under key (shutdownClass) from namespace <config>.
    2004-09-10 08:52:14,887 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Startup Class) under key (startupClass) from namespace <config>.
    2004-09-10 08:52:14,891 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (File T3) under key (fileT3) from namespace <config>.
    2004-09-10 08:52:14,896 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Messaging Bridge) under key (messagingBridge) from namespace <config>.
    2004-09-10 08:52:14,910 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Jolt Connection Pool) under key (joltConnectionPool) from namespace <config>.
    2004-09-10 08:52:14,916 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (WLEC Connection Pool) under key (wlecConnectionPool) from namespace <config>.
    2004-09-10 08:52:14,932 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (WTC Server) under key (wtcServer) from namespace <config>.
    2004-09-10 08:52:15,165 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to replace component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType in
    2004-09-10 08:52:15,301 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to remove component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType from
    2004-09-10 08:52:15,323 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to find component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType in
    2004-09-10 08:52:15,356 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to add component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType to
    2004-09-10 08:52:15,376 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Added: FileStore to
    2004-09-10 08:52:15,379 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Component: FileStore of type: com.bea.plateng.domain.xml.config.JMSFileStoreType was replaced in
    2004-09-10 08:52:15,403 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to replace component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType in
    2004-09-10 08:52:15,407 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to remove component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType from
    2004-09-10 08:52:15,409 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to find component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType in
    2004-09-10 08:52:15,425 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Attempting to add component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType to
    2004-09-10 08:52:15,432 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Added: RMDefaultPolicy to
    2004-09-10 08:52:15,435 DEBUG [main] com.bea.plateng.domain.ApplicationTemplate - Component: RMDefaultPolicy of type: com.bea.plateng.domain.xml.config.WSReliableDeliveryPolicyType was replaced in
    2004-09-10 08:52:15,545 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (WS Reliable Delivery Policy) under key (WSReliableDeliveryPolicy) from namespace <config>.
    2004-09-10 08:52:15,548 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (JMS JDBC Store) under key (jms.jdbcStore) from namespace <config>.
    2004-09-10 08:52:15,551 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (JMS File Store) under key (jms.fileStore) from namespace <config>.
    2004-09-10 08:52:15,661 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,669 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,676 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,678 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,680 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,750 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (group) from namespace <config>.
    2004-09-10 08:52:15,757 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,760 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,762 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,765 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,796 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Role) under key (Role) from namespace <config>.
    2004-09-10 08:52:15,801 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,807 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,813 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,835 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,837 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,839 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,842 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,846 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,848 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (Group) under key (Group) from namespace <config>.
    2004-09-10 08:52:15,851 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User) under key (User) from namespace <config>.
    2004-09-10 08:52:15,967 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: read template from "/opt/was/bea/weblogic81/common/templates/domains/wls.jar"
    2004-09-10 08:52:16,399 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - find Server "myserver" as obj0
    2004-09-10 08:52:16,636 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.Name) from namespace <config>.
    2004-09-10 08:52:16,642 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:16,648 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenAddress) from namespace <config>.
    2004-09-10 08:52:16,659 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:16,666 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenPort) from namespace <config>.
    2004-09-10 08:52:16,670 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:16,674 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.ListenPort) from namespace <config>.
    2004-09-10 08:52:16,676 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:16,679 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.Enabled) from namespace <config>.
    2004-09-10 08:52:16,681 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Enabled) from namespace <config>.
    2004-09-10 08:52:16,686 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: find Server "myserver" as obj0
    2004-09-10 08:52:17,406 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set obj0 attribute ListenAddress to ""
    2004-09-10 08:52:17,441 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set obj0 attribute ListenAddress to ""
    2004-09-10 08:52:17,455 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set obj0 attribute ListenPort to "7001"
    2004-09-10 08:52:17,463 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set obj0 attribute ListenPort to "7001"
    2004-09-10 08:52:17,467 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - find User "weblogic" as obj1
    2004-09-10 08:52:17,512 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (User name) under key (User.Name) from namespace <config>.
    2004-09-10 08:52:17,516 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (User.UserPassword) from namespace <config>.
    2004-09-10 08:52:17,517 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UserPassword) from namespace <config>.
    2004-09-10 08:52:17,522 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (User.ConfirmUserPassword) from namespace <config>.
    2004-09-10 08:52:17,526 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ConfirmUserPassword) from namespace <config>.
    2004-09-10 08:52:17,528 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (User.Description) from namespace <config>.
    2004-09-10 08:52:17,530 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Description) from namespace <config>.
    2004-09-10 08:52:17,534 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: find User "weblogic" as obj1
    2004-09-10 08:52:17,575 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set obj1 attribute Password to "********"
    2004-09-10 08:52:17,579 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set obj1 attribute Password to "********"
    2004-09-10 08:52:17,582 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - set config option OverwriteDomain to "true"
    2004-09-10 08:52:17,584 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - succeed: set config option OverwriteDomain to "true"
    2004-09-10 08:52:17,598 INFO [main] com.bea.plateng.domain.script.ScriptExecutor - write Domain to "/opt/was/ravi/user_projects/mydomain"
    2004-09-10 08:52:17,822 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.Name) from namespace <config>.
    2004-09-10 08:52:17,826 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:17,828 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenAddress) from namespace <config>.
    2004-09-10 08:52:17,832 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:17,835 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Server.ListenPort) from namespace <config>.
    2004-09-10 08:52:17,837 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:17,840 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.ListenPort) from namespace <config>.
    2004-09-10 08:52:17,845 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:17,847 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (SSL.Enabled) from namespace <config>.
    2004-09-10 08:52:17,848 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Enabled) from namespace <config>.
    2004-09-10 08:52:17,947 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.Name) from namespace <config>.
    2004-09-10 08:52:17,952 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:17,957 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.MulticastAddress) from namespace <config>.
    2004-09-10 08:52:17,960 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (MulticastAddress) from namespace <config>.
    2004-09-10 08:52:17,963 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.MulticastPort) from namespace <config>.
    2004-09-10 08:52:17,966 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (MulticastPort) from namespace <config>.
    2004-09-10 08:52:17,968 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Cluster.ClusterAddress) from namespace <config>.
    2004-09-10 08:52:17,970 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ClusterAddress) from namespace <config>.
    2004-09-10 08:52:18,086 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Machine.Name) from namespace <config>.
    2004-09-10 08:52:18,089 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:18,091 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,095 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,096 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenPort) from namespace <config>.
    2004-09-10 08:52:18,098 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:18,142 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.Name) from namespace <config>.
    2004-09-10 08:52:18,146 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (Name) from namespace <config>.
    2004-09-10 08:52:18,148 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindGIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,150 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindGIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,156 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindGID) from namespace <config>.
    2004-09-10 08:52:18,158 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindGID) from namespace <config>.
    2004-09-10 08:52:18,160 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindUIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,162 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindUIDEnabled) from namespace <config>.
    2004-09-10 08:52:18,165 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (UnixMachine.PostBindUID) from namespace <config>.
    2004-09-10 08:52:18,166 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (PostBindUID) from namespace <config>.
    2004-09-10 08:52:18,168 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,171 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenAddress) from namespace <config>.
    2004-09-10 08:52:18,174 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (NodeManager.ListenPort) from namespace <config>.
    2004-09-10 08:52:18,177 DEBUG [main] com.bea.plateng.common.util.ResourceBundleManager - Retrieved (null) under key (ListenPort) from namespace <config>.
    2004-09-10 08:52:18,730 DEBUG [main] com.bea.plateng.domain.jdbc.JDBCHelper - jdbcdrivers.xml not found in classpath, trying "../../server/lib/jdbcdrivers.xml"
    2004-09-10 08:52:18,737 DEBUG [main] com.bea.plateng.domain.jdbc.JDBCHelper - jdbcdrivers.xml not found at "/opt/server/lib/jdbcdrivers.xml", giving up...
    2004-09-10 08:52:18,917 ERROR [main] com.bea.plateng.domain.jdbc.JDBCHelper - weblogic.xml.stream.XMLStreamException: Unable to instantiate the stream, the error was: Unable to resolve input source.
    weblogic.xml.stream.XMLStreamException: Unable to instantiate the stream, the error was: Unable to resolve input source.
         at weblogic.xml.babel.stream.XMLInputStreamBase.open(XMLInputStreamBase.java:91)
         at weblogic.xml.babel.stream.XMLInputStreamBase.open(XMLInputStreamBase.java:49)
         at weblogic.xml.babel.stream.XMLInputStreamFactoryImpl.newInputStream(XMLInputStreamFactoryImpl.java:67)
         at weblogic.xml.babel.stream.XMLInputStreamFactoryImpl.newInputStream(XMLInputStreamFactoryImpl.java:49)
         at weblogic.xml.babel.stream.XMLInputStreamFactoryImpl.newInputStream(XMLInputStreamFactoryImpl.java:79)
         at weblogic.jdbc.utils.JDBCConnectionMetaDataParser.loadSchema(JDBCConnectionMetaDataParser.java:216)
         at weblogic.jdbc.utils.JDBCConnectionMetaDataParser.<init>(JDBCConnectionMetaDataParser.java:127)
         at com.bea.plateng.domain.jdbc.JDBCHelper.getDriverInfoFactory(JDBCHelper.java:393)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.initDriverMap(JDBCAspectHelper.java:613)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getJDBCDriverClassTable(JDBCAspectHelper.java:602)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:731)
         at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:211)
         at com.bea.plateng.domain.aspect.JDBCConnectionPoolDriverNameConfigAspect.decompose(JDBCConnectionPoolDriverNameConfigAspect.java:54)
         at com.bea.plateng.domain.aspect.ConfigAspectImpl.setDelegate(ConfigAspectImpl.java:493)
         at com.bea.plateng.domain.aspect.ConfigAspectBuilder.createJDBCConnectionPoolSimpleAspect(ConfigAspectBuilder.java:367)
         at com.bea.plateng.domain.operation.config.ConfigJDBCConnectionPool.createNewSimpleConfigAspects(ConfigJDBCConnectionPool.java:121)
         at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleTableModel(HTableEditOperation.java:647)
         at com.bea.plateng.domain.operation.HTableEditOperation.getSimpleTableModel(HTableEditOperation.java:299)
         at com.bea.plateng.domain.operation.HTableEditOperation.initSimpleTableModel(HTableEditOperation.java:531)
         at com.bea.plateng.domain.DomainChecker.isOperationValid(DomainChecker.java:590)
         at com.bea.plateng.domain.DomainChecker.getInvalidSection(DomainChecker.java:155)
         at com.bea.plateng.domain.GeneratorHelper.validateDomainCreation(GeneratorHelper.java:82)
         at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:516)
         at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:453)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx0.writeDomain$14(initWls.py:70)
         at org.python.pycode._pyx0.call_function(initWls.py)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyFunction.__call__(PyFunction.java)
         at org.python.pycode._pyx1.f$0(wls.py:9)
         at org.python.pycode._pyx1.call_function(wls.py)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.__builtin__.execfile_flags(__builtin__.java)
         at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
         at com.bea.plateng.domain.script.jython.WLST_offline.main(WLST_offline.java:50)
    =========================================================="
    the script is below
    "++++++++++++++++++++++++++++++++++++++++++++++++++++
    readTemplate('/opt/was/bea/weblogic81/common/templates/domains/wls.jar')
    cd('Server/myserver')
    set('ListenAddress','')
    set('ListenPort',7001)
    cd('/Security/mydomain')
    cd('User/weblogic')
    cmo.setPassword('weblogic')
    setOption('OverwriteDomain','true')
    writeDomain('/opt/was/ravi/user_projects/mydomain')
    dumpStack()
    dumpVariables()
    closeTemplate()
    exit()
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  • [WLST offline]: Cannot create distributed destination

    We have a small problem with WLST and distributed destinations. I have made the following code:
    readDomain ('< our domain path >/Demo8')
    # Check that the queue exists
    ls ('/JMSServer/cgJMSServer1/JMSQueue')
    create ('myQueue1','JMSDistributedQueue')
    cd ('JMSDistributedQueue')
    cd ('myQueue1')
    set ('JNDIName','myjndi')
    create ('member1','JMSDistributedQueueMember')
    cd ('JMSDistributedQueueMember')
    cd ('member1')
    set ('JMSQueue','queue1')
    cd ('..')
    cd ('..')
    UpdateDomain()
    The problems is, that the command "set ('JMSQueue','queue1')" fails.
    Does anyone have an example of a successful WLST configuration of Distributed Destinations?
    The error message from my script is:
    Error: setJMSQueue() failed.
    Error: set() failed.
    Traceback (innermost last):
    File "scr.py", line 19, in ?
    File "initWls.py", line 46, in set
    com.bea.plateng.domain.script.jython.WLSTException: java.lang.reflect.Invocation
    TargetException
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleEx
    ception(CommandExceptionHandler.java:33)
    Your help will really be appreciated....
    Kind regards,
    Henrik

    The best way to create distributed destinations is to create physical destinations in single server mode and then create more servers and a cluster. wlst offline will automatically create distribued destinations and members. Considering that the recommended JMS architecture is homogeneous, there is little need to do it manually. An example:
    readTemplate('c:/bea813/weblogic81/common/templates/domains/medrec.jar')
    cd('JMSServer/MedRecJMSServer')
    q=create('newQueue', 'JMSQueue')
    q.setJNDIName('newQueue')
    cd('/')
    create('newServer1', 'Server')
    create('newServer2', 'Server')
    create('newCluster', 'Cluster')
    assign('Server', 'newServer1,newServer2', 'Cluster', 'newCluster')
    writeDomain('d:/temp/domains/813/medrec/medrec_0720')
    closeTemplate();

  • [WLST offline] How to create a JMSJDBCStore?

    How do I create a JMSJDBCStore using WLST offline?
    I would expect the following code line to work:
    mrjStore = create('myStore', 'JMSJDBCStore')
    Unfortunately I get a Java exception when I execute the code.
    I can create JMSFileStores without problems.
    Rgds,
    Henrik

    Hello Henrik,
    The code you used to create a JMSJDBCStore is correct. I think the
    problem is that you did not have the required JDBCConnectionPools before
    this line. At least one pool should be available before you can create a
    JMSJDBCStore. This kind of check is enforced for some other operations.
    One example is that you can't create a JDBCMultiPool if you do not have
    a JDBCConnectionPool. Below is an example of JMSJDBCStore creation that
    works:
    readTemplate('c:/bea813/weblogic81/common/templates/domains/wls.jar')
    cd('Security/mydomain/User/weblogic')
    set('Password', 'weblogic')
    cd('/')
    pool=create('myPool', 'JDBCConnectionPool')
    cd('JDBCConnectionPool/myPool')
    set('DriverName', 'oracle.jdbc.driver.OracleDriver')
    set('URL',
    'jdbc:oracle:thin:@my-oracle-server:my-oracle-server-port:my-oracle-sid')
    set('Properties', 'user=scott')
    set('Password', 'tiger')
    cd('/')
    store=create('myStore', 'JMSJDBCStore')
    store.setConnectionPool(pool)
    store.setPrefixName('myPoolPre')
    writeDomain('d:/temp/domains/wls/wls_0709')
    closeTemplate()
    exit()
    BTW, I have changed the exception message to make this cause clearer but
    the dev2dev post would not have this update for some time.
    Thanks,
    -satya
    Henrik S. Pedersen wrote:
    >
    >
    >
    How do I create a JMSJDBCStore using WLST offline?
    I would expect the following code line to work:
    mrjStore = create('myStore', 'JMSJDBCStore')
    Unfortunately I get a Java exception when I execute the code.
    I can create JMSFileStores without problems.
    Rgds,
    Henrik

  • Cannot create TransactionParams of ConnectionFactory with WLST Offline

    Hello dear WL users and geeks,
    I'm trying to automate the creation of a weblogic domain using WLST Offline but I've got some problem with the configuration of a JMS ConnectionFactory : I don't know how to activate the XA-Connection factory setting.
    Ok, here is the WLST code, results and thoughs are in comments (##) :
    ==================
    ## I start with a fresh install of Oracle Weblogic Server 11g R1 (10.3.3) (also tried 10.3.1, same problem) and use the Configuration Wizard to
    ## create a new Weblogic domain using the default "Basic Weblogic server domain template".
    ## First, read the domain
    readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
    ## Create a JMSServer
    create('MyJMSServer', 'JMSServer')
    assign('JMSServer', 'MyJMSServer', 'Server', 'AdminServer')
    ## Create a JMS Module
    create('TestModule', 'JMSSystemResource')
    ## And now a ConnectionFactory
    cd('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0')
    fact=create('TestConnFactory', 'ConnectionFactory')
    fact.setJNDIName('someJNDIName')
    updateDomain()
    ## Ok, let's see what is defined :
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    ls()
    ## -rw- DefaultTargetingEnabled false
    ## -rw- JNDIName someJNDIName
    ## -rw- LocalJNDIName null
    ## -rw- Name TestConnFactory
    ## -rw- Notes null
    ## -rw- SubDeploymentName null
    ## Uh oh. Why are the 'directories' TransactionParams and SecurityParams missing ? How am I supposed to edit the TransactionParams ?
    ## Maybe there is a createTransactionParams method ?
    dir(fact)
    ## ['JNDIName', 'class', 'clientParams', 'defaultDeliveryParams', 'defaultTargetingEnabled', 'equals', 'flowControlParams', 'getClass',
    ## 'getClientParams', 'getDefaultDeliveryParams', 'getFlowControlParams', 'getInvocationHandler', 'getJNDIName', 'getLoadBalancingParams',
    ## 'getLocalJNDIName', 'getName', 'getNotes', 'getProxyClass', 'getSecurityParams', 'getSubDeploymentName', 'getTransactionParams',
    ## 'hashCode', 'isDefaultTargetingEnabled', 'isProxyClass', 'isSet', 'loadBalancingParams', 'localJNDIName', 'name', 'newProxyInstance', 'notes',
    ## 'notify', 'notifyAll', 'securityParams', 'setDefaultTargetingEnabled', 'setJNDIName', 'setLocalJNDIName', 'setName', 'setNotes',
    ## 'setSubDeploymentName', 'subDeploymentName', 'toString', 'transactionParams', 'unSet', 'wait']
    ## If I try to invoke any method related to transactionParams, I've got a null pointer exception
    ==================
    Ok, now I'll use the web admin console to edit the transaction parameters : I start the Weblogic Server and go to the web-based Administration console.
    In the Domain Structure tree, I go to base_domain > Services > Messaging > JMS Modules.
    Then I click on my 'TestModule' module and then on my 'TestConnFactory' Connection Factory.
    I go in the 'Transaction' tab and I enable the XAConnectionFactory checkbox.
    Finally, I click on the save button.
    Let's start a new WLST Offline session and see what's new :
    ==================
    ## Read the domain
    readDomain('Oracle/Middleware/user_projects/domains/base_domain/')
    ## Check what is defined in my ConnectionFactory
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    ls()
    ## Hey look, the TransactionParams appeared :
    ## drw- TransactionParams
    ## -rw- DefaultTargetingEnabled true
    ## -rw- JNDIName someJNDIName
    ## -rw- LocalJNDIName null
    ## -rw- Name TestConnFactory
    ## -rw- Notes null
    ## -rw- SubDeploymentName null
    ## Go in there :
    cd('TransactionParams/NO_NAME_0')
    ls()
    ## -rw- TransactionTimeout 3600
    ## -rw- XAConnectionFactoryEnabled                    true
    ==================
    So :
    - Why the TransactionParams setting is not directly created or available when a new ConnectionFactory is created ?
    - How can I create a JMS ConnectionFactory and edit its TransactionParams using only WLST Offline (i.e., without the admin console and without WSLT online) ?
    Any help appreciated,
    Thanks !

    Ok, I found a solution :
    =============
    cd ('/JMSSystemResource/TestModule/JmsResource/NO_NAME_0/ConnectionFactory/TestConnFactory')
    create('DUMMY', 'TransactionParams')
    ls('TransactionParams/NO_NAME_0')
    ## -rw- TransactionTimeout 0
    ## -rw- XAConnectionFactoryEnabled false
    =============
    But it seems strange to have to create a dummy TransactionParams. Is it the correct way to do it ?

  • Java.lang.NullPointerException when using readTemplate with WLST offline

    I imported WLST offline as a module in to jython script and tried
    wlstOffline.readTemplate('../wls.jar')
    It gives me a java.lang.NullPointerException.
    Here is the entire stack trace
    Traceback (innermost last):
      File "testOffline.py", line 3, in ?
      File "E:\wlst\wlstOffline.py", line 78, in readDomain
    java.lang.NullPointerException
            at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(
    Ljava/lang/Exception;Ljava/lang/String;)V(WLScriptContext.java:897)
            at com.bea.plateng.domain.script.jython.WLScriptContext.readDomain(Ljava
    /lang/String;)V(WLScriptContext.java:244)
            at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/
    lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
            at jrockit.reflect.NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/l
    ang/Object;)Ljava/lang/Object;(Unknown Source)
            at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[
    Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;
    I)Ljava/lang/Object;(Unknown Source)
            at org.python.core.PyReflectedFunction.__call__(Lorg/python/core/PyObjec
    t;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;(PyRe
    flectedFunction.java:???)
            at org.python.core.PyMethod.__call__([Lorg/python/core/PyObject;[Ljava/l
    ang/String;)Lorg/python/core/PyObject;(PyMethod.java:???)
            at org.python.core.PyObject.__call__(Lorg/python/core/PyObject;)Lorg/pyt
    hon/core/PyObject;(PyObject.java:???)
            at org.python.core.PyInstance.invoke(Ljava/lang/String;Lorg/python/core/
    PyObject;)Lorg/python/core/PyObject;(PyInstance.java:???)
            at wlstOffline$py.readDomain$16(Lorg/python/core/PyFrame;)Lorg/python/co
    re/PyObject;(E:\wlst\wlstOffline.py:78)
            at wlstOffline$py.call_function(ILorg/python/core/PyFrame;)Lorg/python/c
    ore/PyObject;(E:\wlst\wlstOffline.py:???)
            at org.python.core.PyTableCode.call(Lorg/python/core/PyFrame;Lorg/python
    /core/PyObject;)Lorg/python/core/PyObject;(PyTableCode.java:???)
            at org.python.core.PyTableCode.call(Lorg/python/core/PyObject;Lorg/pytho
    n/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/pytho
    n/core/PyObject;(PyTableCode.java:???)
            at org.python.core.PyFunction.__call__(Lorg/python/core/PyObject;)Lorg/p
    ython/core/PyObject;(PyFunction.java:???)
            at org.python.core.PyObject.invoke(Ljava/lang/String;Lorg/python/core/Py
    Object;)Lorg/python/core/PyObject;(PyObject.java:???)
            at org.python.pycode._pyx0.f$0(Lorg/python/core/PyFrame;)Lorg/python/cor
    e/PyObject;(testOffline.py:3)
            at org.python.pycode._pyx0.call_function(ILorg/python/core/PyFrame;)Lorg
    /python/core/PyObject;(testOffline.py:???)
            at org.python.core.PyTableCode.call(Lorg/python/core/PyFrame;Lorg/python
    /core/PyObject;)Lorg/python/core/PyObject;(PyTableCode.java:???)
            at org.python.core.PyCode.call(Lorg/python/core/PyFrame;)Lorg/python/cor
    e/PyObject;(PyCode.java:???)
            at org.python.core.Py.runCode(Lorg/python/core/PyCode;Lorg/python/core/P
    yObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;(Py.java:???)
            at org.python.core.__builtin__.execfile_flags(Ljava/lang/String;Lorg/pyt
    hon/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/CompilerFlags;)V(__
    builtin__.java:???)
            at org.python.util.PythonInterpreter.execfile(Ljava/lang/String;)V(Pytho
    nInterpreter.java:???)
            at org.python.util.jython.main([Ljava/lang/String;)V(jython.java:???)
    java.lang.NullPointerException: java.lang.NullPointerException
    [/pre]
    Can any one tell me what might be the problem.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The domain exists.
    And the line 78 in wlstOffline.py is as follows
    77 def readDomain(domainDir):
    78 WLS.readDomain(domainDir)
    79 updateCmo()
    80 updatePrompt()

  • [WLST offline] How to assign machines to servers?

    I've created machines and servers using WLST offline on Weblogic 8.1sp2.
    How do I assign a machine to a server?
    I would expect something like:
    assign ("Machine","machinea","Server","servera")
    "machinea" is the machine that I created, and "servera" is the server.
    Unfortunately this does not work. I get the following error message:
    "Cannot recognize the service assignment type: machine_server"
    Kind regards,
    Henrik

    Hello Henrik,
    It should be "assign servers to a machine". So the code will look like:
    create('BEA_Server', 'Server')
    create('myMachine', 'Machine')
    assign('Server', 'BEA_Server','Machine', 'myMachine')
    Thanks,
    -satya
    Henrik S. Pedersen wrote:
    I've created machines and servers using WLST offline on Weblogic 8.1sp2.
    How do I assign a machine to a server?
    I would expect something like:
    assign ("Machine","machinea","Server","servera")
    "machinea" is the machine that I created, and "servera" is the server.
    Unfortunately this does not work. I get the following error message:
    "Cannot recognize the service assignment type: machine_server"
    Kind regards,
    Henrik

  • JMS queue assignment with WLST offline WLS 8.1

    Hi
    I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
    I've tried with assign(...) function or the setParent without success.
    As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
    10x

    Hi
    I would like to know how to assign a JMSQueue to JMSserver under WLST offline and WLS 8.1
    I've tried with assign(...) function or the setParent without success.
    As far as I understand, the JMSQueue is always created under a JMS server, once created there how can I assign it to another server??
    10x

  • [WLST offline] runWLSToffline.sh deletes WL_HOME in startWeblogic.sh

    We have a small problem with runWLSToffline.sh. The program
    sets WL_HOME to an empty string in startWeblogic.sh.
    StartWeblogic.sh before runWLSToffline.sh is run:
    WL_HOME="/opt/bea/81sp2_hard/weblogic81"
    and after
    WL_HOME=""
    The work around is to make a copy of startWeblogic.sh before
    running runWLSToffline.sh, but is there a solution to the
    problem?
    We use Weblogic 8.1 sp2 on Solaris 9.
    Kind regards,
    Henrik

    Hi,
    I have wls 8.1 sp 4 running on my windows xp. I installed WLST-offline and jython (following the readme.txt that came in the same bundle as wlst). I also set the CLASSPATH as told, and it's now as follows:
    set CLASSPATH=C:\bea\weblogic81\server\lib;C:\bea\weblogic81\server\lib\weblogic.jar;C:\bea\weblogic81\common\lib\config.jar;C:\bea\weblogic81\common\lib\comdev.jar;C:\bea\weblogic81\common\lib\3rdparty.jar;C:\jython\jython.jar;
    All of the jar files are in right positions, but still when I run the command "runWLSToffline.cmd" (in $WL_HOME\common\bin) I get the following output:
    D:\bea\weblogic81\common\bin>java com.bea.plateng.domain.script.jython.WLST_offline
    Traceback (innermost last):
    File "initWls.py", line 7, in ?
    TypeError: cannot lazy load PyObject subclass
    What to do?
    please help, its very urget,
    Thanks so much in advance
    Regards,
    Bheemu

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • Setup SAML 2.0 Service Provider using WLST Offline

    Is this possible http://weblogic.sys-con.com/node/1455841 to do using WLST offline?

    I enabled "DebugSecurityAtn" as suggested - and "DebugHttpSessions" as well.
    Unfortunately, I'm still not sure what's happening though.
    Here are all my "Authentication Providers" in the order listed in the Console:
    - DefaultAuthenticator : Control Flags=SUFFICIENT
    - DefaultIdentityAsserter : No "Active Type"
    - saml2IA (SAML 2.0 Identity Assertion Provider)
    - samlauth (SAML Authentication Provider): SUFFICIENT
    This is an except of the updated server log:
    <SecuritySAMLAtn> <SAMLIALoginModule: commit(): SAML IA LoginModule Group Added>
    <SecurityAtn> <weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.authenticate login succeeded and myuser was not previously locked out>
    <SecurityAtn> <com.bea.common.security.internal.service.IdentityCacheServiceImpl.cachedIdentity(Subject: 3
    Principal = class weblogic.security.principal.WLSUserImpl("myuser")
    Principal = class weblogic.security.principal.WLSGroupImpl("grp_a")
    Principal = class weblogic.security.principal.WLSGroupImpl("grp_b")
    )>
    <HttpSessions> <[HTTP Session:100046]Creating new session with ID: nVm... for Web application: /saml2.>
    <SecuritySAML2Service> <Using redirect URL from request cache: 'https://localhost:1234/MyApp/secure/index.html'>
    <SecuritySAML2Service> <Redirecting to URL: https://localhost:1234/MyApp/secure/index.html>
    <HttpSessions> <[HTTP Session:100078]HTTPSession with id: "nVm..." is of size 84 bytes.>
    <SecuritySAML2Service> <SAML2Filter: Processing request on URI '/MyApp/secure/index.html;jsessionid=nVm...'>
    <SecuritySAML2Service> <getServiceTypeFromURI(): request URI is not a service URI>
    <SecuritySAML2Service> <getServiceTypeFromURI(): returning service type 'SPinitiator'>
    Thank you,
    Patrick

  • WLST Offline, WLS 8.1.6 domain read Error

    RedHat Linux 4 upd. 4, WLP 8.1. sp 6
    Steps to repeat:
    <pre>
    [beauser@localhost ~]$ runWLSToffline.sh
    Welcome to Weblogic Scripting Shell
    wls_offline:/>readTemplate('/WLS/bea/weblogic81/common/templates/domains/wli.jar')
    java.io.IOException: Unable to resolve input source.
    java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getXAPools(ConfigAspectHelper.java:855)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPools(ConfigAspectHelper.java:822)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPoolArray(ConfigAspectHelper.java:629)
    at com.bea.plateng.domain.assignment.JDBCPoolJDBCDataSourceAssignment.createSourceTree(JDBCPoolJDBCDataSourceAssignment.java:57)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.JDBCDataSourceAssigned(DependencyDeploymentAssignmentListener.java:90)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.doAssign(DependencyDeploymentAssignmentListener.java:55)
    at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
    at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
    at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
    at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
    at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
    at com.bea.plateng.domain.AutoDeployer.saveOriginalAssignments(AutoDeployer.java:712)
    at com.bea.plateng.domain.AutoDeployer.init(AutoDeployer.java:674)
    at com.bea.plateng.domain.AutoDeployer.<init>(AutoDeployer.java:177)
    at com.bea.plateng.domain.DomainTemplate.<init>(DomainTemplate.java:155)
    at com.bea.plateng.domain.DomainTemplate.<init>(DomainTemplate.java:128)
    at com.bea.plateng.domain.TemplateBuilder.parseDomainTemplate(TemplateBuilder.java:568)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1178)
    java.io.IOException: Unable to resolve input source.
    java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getXAPools(ConfigAspectHelper.java:855)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPools(ConfigAspectHelper.java:822)
    at com.bea.plateng.domain.aspect.ConfigAspectHelper.getNonXAMultiPoolArray(ConfigAspectHelper.java:629)
    at com.bea.plateng.domain.assignment.JDBCPoolJDBCDataSourceAssignment.createSourceTree(JDBCPoolJDBCDataSourceAssignment.java:57)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.JDBCDataSourceAssigned(DependencyDeploymentAssignmentListener.java:90)
    at com.bea.plateng.domain.event.assignment.DependencyDeploymentAssignmentListener.doAssign(DependencyDeploymentAssignmentListener.java:55)
    at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
    at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
    at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
    at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
    at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.DomainChecker.syncAssignments(DomainChecker.java:216)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1192)
    at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:365)
    at com.bea.plateng.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:195)
    java.io.IOException: Unable to resolve input source.
    java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:742)
    at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:208)
    at com.bea.plateng.domain.assignment.JDBCPoolJMSJDBCStoreAssignment.createSourceTree(JDBCPoolJMSJDBCStoreAssignment.java:59)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:335)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.event.assignment.JMSServerServerAssignmentListener.getJDBCConnectionPool(JMSServerServerAssignmentListener.java:99)
    at com.bea.plateng.domain.event.assignment.JMSServerServerAssignmentListener.doAssign(JMSServerServerAssignmentListener.java:50)
    at com.bea.plateng.domain.event.assignment.AssignmentTreeListener.vetoableChange(AssignmentTreeListener.java:95)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:188)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:155)
    at com.bea.plateng.common.comdev.MVetoableChangeSupport.fireVetoableChange(MVetoableChangeSupport.java:138)
    at com.bea.plateng.common.comdev.TreeDataModel.setAttribute(TreeDataModel.java:191)
    at com.bea.plateng.domain.assignment.AssignmentTree$SetInitialSelectionVisitor.visitTree(AssignmentTree.java:1020)
    at com.bea.plateng.common.comdev.TreeVisitor.visit(TreeVisitor.java:24)
    at com.bea.plateng.common.comdev.PreOrder.preVisit(PreOrder.java:34)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:42)
    at com.bea.plateng.common.comdev.TreeHelper.depthFirstTraversal(TreeHelper.java:47)
    at com.bea.plateng.common.comdev.GeneralTree.accept(GeneralTree.java:220)
    at com.bea.plateng.domain.assignment.AssignmentTree.buildModel(AssignmentTree.java:359)
    at com.bea.plateng.domain.assignment.AssignmentTreeDefinition.createAssignment(AssignmentTreeDefinition.java:308)
    at com.bea.plateng.domain.DomainTemplate.getAssignment(DomainTemplate.java:937)
    at com.bea.plateng.domain.DomainChecker.syncAssignments(DomainChecker.java:216)
    at com.bea.plateng.domain.TemplateBuilder.buildDomainTemplate(TemplateBuilder.java:1192)
    at com.bea.plateng.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:365)
    at com.bea.plateng.domain.script.jython.WLScriptContext.readTemplate(WLScriptContext.java:195)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
            at org.python.core.PyReflectedFunction.__call__(Lorg.python.core.PyObject;[Lorg.python.core.PyObject;[Ljava.lang.String;)Lorg.python.core.PyObject;(PyReflectedFunction.java:???)
    wls_offline:/integration>
    </pre>
    As you can see the domain is opened, so is this error painfull, or is it a veeery verbose Warning?
    Best regards,
    Christopher                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Well, maybe domain is onened, but I can't still get to configure the JDBC Pools:
    wls_offline:/integration/JDBCConnectionPool>cd('cgPool')
    java.io.IOException: Unable to resolve input source.
    Error: cd() failed. Do dumpStack() to see details.
    wls_offline:/integration/JDBCConnectionPool>dumpStack()
    com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
    at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:33)
    at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:897)
    at com.bea.plateng.domain.script.jython.WLScriptContext.cd(WLScriptContext.java:372)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    So error mensioned above is not just warning - it block JDBC configuration.
    I found that the WLST somoehow redefines whe WL_HOME, and instead of using the /WLS/bea/weblogic81 directory it uses user home dir /home/beauser ...
    I had to create the symbolic links to $HOME/common and $HOME/server to make WLST Offline works.
    Any one knows how can I change this path ?
    I run WLST-offline via:
    <pre>
    . /WLS/bea/weblogic81/server/bin/setWLSEnv.sh
    export HOME=$WL_HOME
    echo HOME: "$HOME" "..." "~"
    export CLASSPATH=$CLASSPATH:/home/beauser/wlst/wlst.jar:$WL_HOME/common/lib/jython.jar:/home/beauser/wlst/update012120053rdparty.jar:/home/beauser/wlst/update01212005/comdev.jar:/home/beauser/wlst/update01212005/config.jar:$WL_HOME/collom/lib:.
    java com.bea.plateng.domain.script.jython.WLST_offline $*
    </pre>
    Message was edited by:
            [email protected]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Keep App Deployments while recreating the domain in WLST offline

    What is the easiest way to keep the app deployments (that were assigned after the domain creation) while recreating the domain from the basic and extension templates in WLST offline while using the "OverWriteDomain' option?
    I can use configToScript to create a deployment script, but that involves starting the domain after creating and running the script.
    Trying to do as much as possible in the offline world.
    As part of the recreate process, I can read the domain directory to see if it exists and go through the tree to see if there are any app deployments, keep that info in memory or write to a file and after the recreate is done assign the app deployments again and write the domain.
    Looking for an easy way to export and import the AppDeployment data. Do not know if there is a JSON interface.

    I ended up doing this.
    appdeps={}
    try:
         readDomain(dom.targetDomainDir)
         cd('/AppDeployments')
         apps=ls(returnMap='true')
         for app in apps:
              appdeps[app]=ls(app,returnMap='true', returnType='a')
    except:
         pass
    try:
         closeDomain()
    except:
         pass
    deployApps(appdeps)
    def deployApps(pAppDeps):
         try:
              cd('/')
              for pAppDep in pAppDeps.keys():
                   try:
                        cd('/')
                        create(pAppDep,'AppDeployment')
                        cd('/AppDeployment/'+pAppDep)
                        for pEntry in pAppDeps[pAppDep].entrySet():
                             print 'setting key=' + pEntry.key + ',value=' + str(pEntry.value)
                             try:
                                  if pEntry.value!=None:
                                       set(pEntry.key,pEntry.value)
                             except:
                                  pass
                   except:
                        pass
         except:
              pass

  • WLST offline configuration

    Hi
    I am trying to add an authenticator (LDAP) in the WLST offline configuration script.
    Basically, pretty simple
    e.g.
    cd('/')
    cd('Security/mydomain')
    cd('User/weblogic')
    cmo.setPassword('weblogic')
    #mytest=create('testIPlanetProvider','com.bea.providers.IPlanetAuthenticator')
    But, I dont seem to be able to create the authenticator. I am using wls sp4 and trying to create a WLS domain. I am also, using WLST offline.
    Any help would be appreciated.
    Thanks
    Ronnie

    Hello Ronnie,
    Configuring 3rd party security providers via wlst offline is not possible, please use online wlst.
    Thanks,
    -satya

  • WLST offline - Changing AdminServer name

    Using WLST offline to create a domain by reading a template.
    This creates a default admin server with name AdminServer.
    Is there anyway to change the admin server's name from AdminServer to something else using WLST? or is there a way to override the default value?
    Thanks

    What is the problem?
    <i><b>cd('/Servers/AdminServer')
    set('Name','myName')</b></i>

Maybe you are looking for

  • IPod Shuffle 4th-Gen NOT recognized by iTunes

    I have this Shuffle that won't be recognized by iTunes and it has no music in it. When I connect it to my iMac it only shows up as a flash drive with a lonely file called "iPod Control." I tried deleting this file just to see what would happen but it

  • Flex ActiveX Control Event is Missing

    Hi, I wrote an ATL CAxDialogImpl based dialog DLL to host a flash activex control. When I launched the DLL dialog box from a command line C# program, I can get all the events sent from the flash activex control to the dialog instance object, e.g. fsc

  • Problem with RSCRM_BAPI (extraction to Fixed Lenght txt file)

    Hi Experts, I have a question about a RSCRM_BAPI limitation: I want to extract a Query, using this transaction, to a fixed lenght .txt file. The query has a tabular structure like this: CHARACT1 | CHARACT2 | CHARACT3 | CHARACT4 | KEYFIG_MONTH1 | KEYF

  • How to set category and category attributes through BPEL?

    Greetings. I have seen ContentServices SDK, and tried to build own BPEL process which should make this work. But there is exception when authenticate to OID. If i not place password attribute to ContentServices.login method, there is exception like "

  • ATV slideshow music is distorted

    I can play music from the ATV through the connected receiver and it sounds fine. If I play a photo slideshow with the same playlist in the background, it comes through distorted. The receiver is showing the input as maxing out. Is there a setting som