Wlst in WebLogic 8.1.4

Hello,
I cannot seem to find wlst.cmd file in WebLogic 814.
I'm getting the following error, when I attempt to connect from a remote server.
wls:/offline> connect('weblogic', 'weblogic', 't3://xxx.xxx.xxx.xxx:7001')
Connecting to t3://xxx.xxx.xxx.xxx:7001 with userid weblogic ...
<Jan 19, 2010 3:16:12 PM EST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
at java.io.ObjectStreamClass.initNonProxy(Ljava.io.ObjectStreamClass;Ljava.lang.Class;Ljava.lang.ClassNotFoundException;Ljava.io.ObjectStreamClass;)V(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)
at java.io.ObjectInputStream.readExternalData(Ljava.io.Externalizable;Ljava.io.ObjectStreamClass;)V(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:214)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:174)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:426)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:853)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:789)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:283)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
>
The CompatabilityMBeanServer is not initialized properly.
This might happen if the CompatabilityMBeanServer is
disabled via the JMXMBean.
To view the root cause exception use dumpStack()
WLST detected that the RuntimeMBeanServer is not enabled. This
might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
Please ensure that this MBeanServer is enabled. Online WLST cannot
function without this MBeanServer.
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 22, in connect
WLSTException: 'Error occured while performing connect : "Cannot connect to WLST."While trying to lookup \'weblogic.management.mbeanservers.runtime\' didn\'t find subcontext \'mbeanservers\' Resolved weblogic.management Use dumpStack() to view the full stacktrace'
Any suggestions?

pfa the code that i have for my WL 9.1 JDK 1.5 and the same is failing to compli itself when i am trying with WL 81. jdk 14. so can you please review and let help me out to sort out the issue please.
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Hashtable;
import java.rmi.Remote
import javax.management.MBeanServer
import javax.management.MBeanServerConnection;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import javax.naming.Context;
public class EnvDetail {
     public static String username = "system";
     public static String password = "password";
     public static int chkValue;
     public static String hostname = null;
     public static String port = null;
     private static MBeanServerConnection connection;
     private static JMXConnector connector;
     private static final ObjectName service; // Initializing the object name for DomainRuntimeServiceMBean
     // so it can be used throughout the class.
     static {  
          try {
               service = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
               }catch (MalformedObjectNameException e)
                    throw new AssertionError(e.getMessage());
     /* * Initialize connection to the Domain Runtime MBean Server */
     public static void initConnection(String hostname, String portString, String username, String password)
     throws IOException, MalformedURLException {
          String protocol = "t3";           
          Integer portInteger = Integer.valueOf(portString);
          int port = portInteger.intValue();
          String jndiroot = "/jndi/";
          String mserver = "weblogic.management.mbeanservers.domainruntime";
          JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port, jndiroot + mserver);
          Hashtable h = new Hashtable();
          h.put(Context.SECURITY_PRINCIPAL, username);
          h.put(Context.SECURITY_CREDENTIALS, password);
          h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
          connector = JMXConnectorFactory.connect(serviceURL, h);
          connection = connector.getMBeanServerConnection();
          } /* * Print an array of ServerRuntimeMBeans. * This MBean is the root of the runtime MBean hierarchy, and * each server in the domain hosts its own instance. */
     public static ObjectName[] getServerRuntimes() throws Exception { 
          return (ObjectName[]) connection.getAttribute(service, "ServerRuntimes");
     public void getJvmRuntime() throws Exception {
          ObjectName[] serverRT = getServerRuntimes();
          int length = (int) serverRT.length;
          for (int i = 0; i < length; i++) {
          String name = (String) connection.getAttribute(serverRT,"Name");
          ObjectName jvmRT = (ObjectName) connection.getAttribute(serverRT[i],"JVMRuntime");
          System.out.println("\n..<"+name+" : .JVMRuntime>");
          Long heapSMX =(Long)connection.getAttribute(jvmRT, "HeapSizeMax");
          System.out.println("HeapSizeMax :" Math.round((heapSMX.longValue()/1048576*100000)/100000) " MB ("+connection.getAttribute(jvmRT, "HeapSizeMax")+")" );
          Long heapSC =(Long)connection.getAttribute(jvmRT, "HeapSizeCurrent");
          System.out.println("HeapSizeCurrent :" Math.round((heapSC.longValue()/1048576*100000)/100000) " MB ("+connection.getAttribute(jvmRT, "HeapSizeCurrent")+" bytes)");
          Long heapFC =(Long)connection.getAttribute(jvmRT, "HeapFreeCurrent");
          System.out.println("HeapFreeCurrent :" Math.round((heapFC.longValue()/1048576*100000)/100000) " MB ("+connection.getAttribute(jvmRT, "HeapFreeCurrent")+" bytes)");
          System.out.println("HeapFreePercent :" + connection.getAttribute(jvmRT, "HeapFreePercent")+"%");
          System.out.println("JavaVendor :" + connection.getAttribute(jvmRT, "JavaVendor"));
          System.out.println("JavaVersion :" + connection.getAttribute(jvmRT, "JavaVersion"));
          Long uptime =(Long)connection.getAttribute(jvmRT, "Uptime");     
          System.out.println("Uptime :" + connection.getAttribute(jvmRT, "Uptime")+" milliseconds (" + (uptime*.001)+" Seconds)");
          System.out.println("******************\n");
     public void getJdbcRuntime() throws Exception {
                    ObjectName[] serverRT = getServerRuntimes();
          int length = (int) serverRT.length;
          for (int i = 0; i < length; i++) {
          String name = (String) connection.getAttribute(serverRT[i],"Name");
          ObjectName[] appRT =
          (ObjectName[]) connection.getAttribute(new ObjectName("com.bea:Name="+name+",ServerRuntime="+name+",Location="+name+",Type=JDBCServiceRuntime"),"JDBCDataSourceRuntimeMBeans");
          int appLength = (int) appRT.length;
          for (int x = 0; x < appLength; x++) {
          System.out.println("\n.. .<"+name+" : JDBCDataSourceRuntimeMBeans>" + (String)connection.getAttribute(appRT[x], "Name")+"");
          System.out.println("ActiveConnectionsCurrentCount : " + connection.getAttribute(appRT[x], "ActiveConnectionsCurrentCount"));
          System.out.println("ActiveConnectionsAverageCount : " + connection.getAttribute(appRT[x], "ActiveConnectionsAverageCount"));
          System.out.println("ActiveConnectionsAverageCount : " + connection.getAttribute(appRT[x], "ActiveConnectionsAverageCount"));
          System.out.println("ConnectionsTotalCount : " + connection.getAttribute(appRT[x], "ConnectionsTotalCount"));
          System.out.println("CurrCapacity : " + connection.getAttribute(appRT[x], "CurrCapacity"));
          System.out.println("CurrCapacityHighCount : " + connection.getAttribute(appRT[x], "CurrCapacityHighCount"));
          System.out.println("HighestNumAvailable : " + connection.getAttribute(appRT[x], "HighestNumAvailable"));
          System.out.println("HighestNumAvailable : " + connection.getAttribute(appRT[x], "HighestNumAvailable"));
          System.out.println("LeakedConnectionCount : " + connection.getAttribute(appRT[x], "LeakedConnectionCount"));
          System.out.println("WaitSecondsHighCount : " + connection.getAttribute(appRT[x], "WaitSecondsHighCount"));
          System.out.println("WaitingForConnectionCurrentCount: " + connection.getAttribute(appRT[x], "WaitingForConnectionCurrentCount"));
          System.out.println("WaitingForConnectionFailureTotal: " + connection.getAttribute(appRT[x], "WaitingForConnectionFailureTotal"));
          System.out.println("WaitingForConnectionTotal : " + connection.getAttribute(appRT[x], "WaitingForConnectionTotal"));
          System.out.println("WaitingForConnectionHighCount : " + connection.getAttribute(appRT[x], "WaitingForConnectionHighCount"));
          System.out.println(".\n");
     public void getThreadStateandName() throws Exception {
     ObjectName[] serverRT = getServerRuntimes();
          //System.out.println("got server runtimes");
          int length = (int) serverRT.length;
          for (int i = 0; i < length; i++) {
               String name = (String) connection.getAttribute(serverRT[i], "Name");
               String state = (String) connection.getAttribute(serverRT[i],"State");
               System.out.println("Server name: " + name + ". Server state: " + state);
               ObjectName ThreadRT =(ObjectName) connection.getAttribute(serverRT[i], "ThreadPoolRuntime");
               System.out.println("ExecuteThreadTotalCount :"+ (Object)connection. getAttribute(ThreadRT,"ExecuteThreadTotalCount"));
               System.out.println("StandbyThreadCount:"+ (Object)connection.getAttribute(ThreadRT, "StandbyThreadCount"));
               Integer e_ThreadTotal =(Integer)(Object)connection. getAttribute(ThreadRT,"ExecuteThreadTotalCount");               
               Integer e_standbyCount = (Integer)connection.getAttribute(ThreadRT, "StandbyThreadCount");
               int eThreadTotal = e_ThreadTotal.intValue();
               int estandbyCount = e_standbyCount.intValue();
               System.out.println("ExecuteActiveThreadCount:"+(eThreadTotal-estandbyCount));
               System.out.println("ExecuteThreadIdleCount :"+ (Object)connection. getAttribute(ThreadRT,"ExecuteThreadIdleCount"));                
               System.out.println("ExecuteHoggingThreadCount:"+ (Object)connection.getAttribute(ThreadRT, "HoggingThreadCount"));
               System.out.println("Throughput :"+ (Object)connection.getAttribute(ThreadRT, "Throughput"));
               System.out.println("HealthState :"+ (Object)connection.getAttribute(ThreadRT, "HealthState"));               
               //System.out.println("QueueLength:"+ (Object)connection.getAttribute(ThreadRT, "QueueLength"));
               //System.out.println("StandbyThreadCount:"+ (Object)connection.getAttribute(ThreadRT, "StandbyThreadCount"));
               //System.out.println("ExecuteActiveThreadCount:"+ (Object[])connection.getAttribute(ThreadRT, "ExecuteThreads"));
               //System.out.println("ExecuteActiveThreadCount:"+ ((Object[])connection.getAttribute(ThreadRT, "ExecuteThreads")).size());
               //System.out.println("ExecuteActiveThreadCount:"+ ((Object[])connection.getAttribute(ThreadRT, "ExecuteThreads")).length);
     public void getExecuteAll() throws Exception {
          System.out.println("*****************-Heap-****************");
          getJvmRuntime();
          System.out.println("*****************-JDBC-****************");
          getJdbcRuntime();
          System.out.println("*****************-Thread-****************");
          getThreadStateandName();
public static void main(String[] args) throws Exception {
     if (args.length != 5) {     
               System.out.println("\n CheckValue ------> HeapCheck : 1\n");
               System.out.println(" CheckValue ------> DBCConnectionCheck : 2\n");
               System.out.println(" CheckValue ------> ThreadStatusCheck : 3\n");
               System.out.println(" CheckValue ------> All : 0\n");                    
               System.out.println("Usage: java EnvDetail HostName Port CheckValue\n");
               //System.out.println(args[0]);
               String hostname =args[0];
               //System.out.println(args[1]);
               String port= args[1];
               //System.out.println(args[2]);
               chkValue = Integer.parseInt(args[2]);
          EnvDetail ts = new EnvDetail();
          initConnection(hostname,port, username, password);
          switch (chkValue) {
          case 1: ts.getJvmRuntime(); break;
          case 2: ts.getJdbcRuntime(); break;
          case 3: ts.getThreadStateandName(); break;
          case 0: ts.getExecuteAll(); break;
          case 5: System.out.println("CheckValue5"); break;
                         return;
     }//main method
}// class

Similar Messages

  • Administrators security group is empty when using WLST in weblogic 10.3.1

    When viewing the members of the "Administrators" group in WLST in weblogic 10.3.1, the list comes back empty. This is not good! "weblogic" is supposed to be a part of this group. In the admin console "weblogic" is listed as part of this group. Here is the code to reproduce the issue:
    connect()
    auth=cmo.getSecurityConfiguration().getDefaultRealm().lookupAuthenticationProvider("DefaultAuthenticator")
    members=auth.listGroupMembers("Administrators","*",0)
    user=auth.getCurrentName(members)
    print user
    In 10.3.0, the results will be "weblogic". In 10.3.1, it says "None". The issue is the same with the group "OracleSystemGroup", no members in WLST. Both of these installations are "out of the box" and have not been doctored (yet).
    Part of our application installation deletes old users that are not part of the current groups being installed, and are not a part of any other groups (i.e. not being used). Well, this caused our script to delete "weblogic", which was painful. As of right now we have a workaround, but have not way of automatically cleaning up stranded users.
    Thanks for investigating this.

    start('wls_ods1','Server','t3://<IP Address>:7001')You are trying start a managed server using a <IP Address> and port <7001> that is being used by Admin Sever, if You have available only one IP Address You must set a diferent number port for each managed server.
    However, you must considerer some inputs before, please check [http://edocs.beasys.com/wls/docs81/ConsoleHelp/startstop.html#1208193]

  • How to create an RDBMS event generator using wlst on weblogic 10.3

    how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
    but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.

    Hi,
    RDBMS Event Generator Channel Rule Definition
    When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
    You should always use the navigation links provided and create a new channel rule definition.
    http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
    http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
    http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
    This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
    Regards,
    Kal

  • Need WLST for Weblogic portal domain 9.2.2.

    Hi,
    I am very much in-need of it. Can you please provide me the Need WLST for Weblogic portal domain 9.2.2.
    Actually, we are using weblogic 9.2.2 version.
    Actually, I created a portal domain configiuration using configuration wizard and the same I documented with screen shots.
    Now I need the wlst for the same configuration which i created the doc for.
    Please can you help me out doing this.
    If you are ok, then I will share you my doc, so that you can help me out easily.
    Please please please................
    Thanks in Advance..

    You have a few options to build a WLST script from the admin/config operations that you have performed in your development environment using console.
    OPTION 1: (WLST Recording)
    Check the below video. (The only drawback is that this video talks about the WLST recording feature which is available only on WLS10.0. Ofcourse, if you have a 10.0 installation you can still use this feature and then make some small modifications to the generated script to make it suitable for 9.2)
    http://www.youtube.com/watch?v=luhBaviP2uM
    OPTION 2: (Converting the configuration to a script)
    After you have configured your entire domain using the console, you run the configToScript command as per the below documentation (To run this you need to invoke WLST and then run the command with appropriate arguments such as path to the config.xml file etc)
    http://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html#wp1154848
    Then you can use the generated script to create similar domains in your Test AND Production environments.
    Arun

  • Problem with WLST in weblogic application server 10.3 on solaris 10 x86

    Hi Friends, I installed Sun Solaris 10 on my desktop x86. I am able to install oracle weblogic application server 10.3.
    I created one domain and I am trying to start AdminServer on that using WLST command.
    Before that , I started the admin server from command as normal start ( nohup ./startWebLogic.sh &) and the server started perfectly alright. After that I was trying to open admin console in firefox browser. It was opening perfectly alright.
    Now I stopped the server and checked no processes which are related to weblogic were running , and then initialized the WLST environment using the script "wlst.sh" , which is at (in my system) /usr/bea/wlserver_10.3/common/bin/wlst.sh. Now the environment had been set and the WLST offline prompt came up.
    Now I used the below WLST scirpt command
    startServer('AdminServer','mydomain','t3://localhost:7001','weblogic','weblogic1');
    and the server started perfectly alright, now what I did was , I started admin console at FireFox browser , it prompted me to enter user name and password , I gave them , and once the login is done, then in my shell window , I am seeing error as
    **wls:/offline> WLST-WLS-1263965848154: <Jan 19, 2010 11:39:24 PM CST> <Error> <HTTP> <BEA-101017> <[ServletContext@28481438[app:consoleapp module:console path:/console spec-version:2.5]] Root cause of ServletException.**
    **WLST-WLS-1263965848154: java.lang.OutOfMemoryError: PermGen space**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass1(Native Method)**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass(ClassLoader.java:616)**
    **WLST-WLS-1263965848154: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)**
    **WLST-WLS-1263965848154: at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)**
    **WLST-WLS-1263965848154: at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)**
    **WLST-WLS-1263965848154: Truncated. see log file for complete stacktrace**
    **WLST-WLS-1263965848154: >**
    **WLST-WLS-1263965848154: <Jan 19, 2010 11:39:24 PM CST> <Error> <JMX> <BEA-149500> <An exception occurred while registering the MBean com.bea:Name=mydomain,Type=SNMPAgentRuntime.**
    **WLST-WLS-1263965848154: java.lang.OutOfMemoryError: PermGen space**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass1(Native Method)**
    **WLST-WLS-1263965848154: at java.lang.ClassLoader.defineClass(ClassLoader.java:616)**
    **WLST-WLS-1263965848154: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)**
    **WLST-WLS-1263965848154: at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)**
    **WLST-WLS-1263965848154: at java.net.URLClassLoader.access$000(URLClassLoader.java:56)**
    **WLST-WLS-1263965848154: Truncated. see log file for complete stacktrace**
    **WLST-WLS-1263965848154: >**
    **WLST-WLS-1263965848154: Exception in thread "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space**
    So I thought I have less memory consuming for this weblogic admin server and opened up ,
    _/usr/bea/wlserver_10.3/common/bin/commEnv.sh_
    and changed the memory arguments as
    Sun)
    JAVA_VM=-server
    MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=1024m" <---- previously these were 32m and 200m and MaxPermSize
    and also in /usr/bea/wlserver10.3/common/bin/bin/setDomainEnv.sh_
    and in this file also I changed the memory arguments as
    *if [ "${JAVA_VENDOR}" = "Sun" ] ; then*
    *WLS_MEM_ARGS_64BIT="-Xms256m -Xmx512m"*
    *export WLS_MEM_ARGS_64BIT*
    *WLS_MEM_ARGS_32BIT="-Xms1024m -Xmx1024m"*
    *export WLS_MEM_ARGS_32BIT*
    and restarted the server using the WLST command and again tried to open the admin console on a browser, same error is showing.
    (1) Environment : Sun Solaris x86
    (2) JDK : sun jdk 1.6._17
    Please help me what I am doing wrong here and please let me know the solution.
    I was trying to install jrockit 1.6 on this since my OS is sun solaris X86 , there is no compatible jrockit version is not there.
    Thanks a lot
    Peter

    Hi Peter,
    As you have mentioned in your Post that
    MEM_ARGS="-Xms1024m -Xmx1024m -XX:MaxPermSize=1024m" <---- previously these were 32m and 200m and MaxPermSize
    The Setting you have provided is wrong ...that is the reason you are gettingjava.lang.OutOfMemoryError: PermGen space. There is a RRation between PermSize and the maximum Heap Size...
    Just a Bit Explaination:
    Formula:
    (OS Level)Process Size = Java Heap (+) Native Space (+) (2-3% OS related Memory)
    PermSize : It's a Netive Memory Area Outside of the Heap, Where ClassLoading kind of things happens. In an operating System like Windows Default Process Size is 2GB (2048MB) default (It doesnt matter How much RAM do u have 2GB or 4GB or more)...until we dont change it by setting OS level parameter to increase the process size..Usually in OS like Solaris/Linux we get 4GB process size as well.
    Now Lets take the default Process Size=2GB (Windows), Now As you have set the -Xmx512M, we can assume that rest of the memory 1536 Mb is available for Native codes.
    (ProcessSize - HeapSize) = Native (+) (2-3% OS related Memory)
    2048 MB - 512 MB = 1536 MB
    THUMB RULES:
    <h3><font color=red>
    MaxPermSize = (MaxHeapSize/3) ----Very Special Cases
    MaxPermSize = (MaxHeapSize/4) ----Recommended
    </font></h3>
    In your Case -Xmx (Max Heap Size) and -XX:MaxPermSize both were same ....That is the reason you are getting unexpected results. These should be in proper ration.
    What should be the exact setting of these parameters depends on the Environment /Applications etc...
    But Just try -Xmx1024m -Xms1024m -XX:MaxPermSize256m
    Another recommendation for fine tuning always keep (Xmx MaxHeapSize & Xms InitialHeapSize same).
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Jan 20, 2010 5:33 PM

  • WLST and WebLogic Integration

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

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

  • Does NetWeaver have same functionality like WLST in WebLogic?

    [WLST|http://download.oracle.com/docs/cd/E12840_01/wls/docs103/config_scripting/using_WLST.html] is powerful and convenient script for config WebLogic Server. I am wondering if NetWeaver has something similar to it?
    Thanks,
    -Jian

    Here I would like specify my question mnore clearly,
    CREATE TABLE t(
    line NUMBER(3),
    site VARCHAR2(4),
    phase VARCHAR2(5),
    test VARCHAR2(25));
    INSERT INTO t VALUES (1, '0100', '*','1111111111111111111111111' );
    INSERT INTO t VALUES (2, '0100', '=','2222222222222222222222222' );
    INSERT INTO t VALUES (3, '0100', '=','3333333333333333333333333' );
    INSERT INTO t VALUES (4, '0100', '*','4444444444444444444444444' );
    INSERT INTO t VALUES (5, '0100', '=','5555555555555555555555555' );
    INSERT INTO t VALUES (6, '0200', '*','6666666666666666666666666' );
    Here I want to retrieve the 'line' column information in ONE line way
    select line from t I want the result is like '1,2,3,4,5,6'
    Any generous help would be greatly appreciated!!!

  • Built-in wlst ant task does not work in weblogic 10.3.1

    Hi,
    We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
    [echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
    tmp/wlstTemp/packages'
    [echo] [wlst] java.io.IOException: No such file or directory
    [echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
    [echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1792)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1828)
    [echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
    [echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
    [echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
    <target name="init-taskdefs">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
    <pathelement location="ant-ext/ant-contrib.jar" />
    </classpath>
    </taskdef>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
    </target>
    <macrodef name="wlShutdownServer">
    <attribute name="adminUser" default="${deploy.admin.username}" />
    <attribute name="adminPassword" default="${deploy.admin.password}" />
    <attribute name="adminUrl" default="${deploy.admin.url}" />
    <attribute name="serverTarget" />
    <sequential>
    <trycatch property="server.error">
    <try>
    <wlst failonerror="true"
    arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
    <script>
    adminUser=sys.argv[0]
    adminPassword=sys.argv[1]
    adminUrl=sys.argv[2]
    serverTarget=sys.argv[3]
    connect(adminUser,adminPassword,adminUrl)
    target=getMBean("/Servers/"+serverTarget)
    if target == None:
    target=getMBean("/Clusters/"+serverTarget)
    type="Cluster"
    else:
    type="Server"
    print 'Shutting down '+serverTarget+'...'
    shutdown(serverTarget,type,'true',15,force='true')
    print serverTarget+' was shut down successfully.'
    </script>
    </wlst>
    <!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
    to start back up again. -->
    <echo message="Deleting any lok files that have not been removed..." />
    <delete failonerror="false">
    <fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
    </delete>
    </try>
    <catch>
    <fail message="@{serverTarget} shutdown failed. ${server.error}" />
    </catch>
    <finally/>
    </trycatch>
    </sequential>
    </macrodef>
    Any help would be appreciated. Thanks!

    Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
    I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change.

  • Could not find or load main class weblogic.WLST

    Hi,
    I am trying to run a python script to create JMS components for use with iHub and i got the following error message when i try to run the script:
    C:\ihub\bin>java weblogic.WLST omipmihubwlscript.py weblogicjms Welcome1 http://<servername>:7111 OMIPMIHUBServer
    Error: Could not find or load main class weblogic.WLST
    I have run the setWLSEnv.cmd file and got the following output
    C:\oracle\Middleware2\wlserver_10.3\server\bin>setWLSEnv.cmd
    CLASSPATH="C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_p
    atch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~2\mod
    ules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~2\modu
    les\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\sys_man
    ifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.
    jar;C:\oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1/lib/ant-all.j
    ar;C:\oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp37
    1\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSER
    V~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\module
    s\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;"
    PATH="C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDD
    LE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\oracle\MIDDLE~2\patch_wls1036\profiles\defa
    ult\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\module
    s\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\
    default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bi
    n;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\app\paul.currie\product\11.2.0\client_2\bin;C:\app\paul.currie\product\11.2.0\dbhome_3\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Wind
    ows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_13\jre\bin;;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x
    64\oci920_8;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\oci920_8;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\oci920_8"
    Your environment has been set.
    I am totally stuck at this point so any help would be much appreciated.
    Cheers
    Paul

    I have just tested both on a Windows and a Linux server and it works fine.
    D:\oracle\product\Middleware\wlserver_10.3\server\bin>setWLSEnv.cmd
    CLASSPATH=D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\oracle\
    product\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\oracle\product\JAVA_C~1\li
    b\tools.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\serve
    r\lib\weblogic.jar;D:\oracle\product\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;D:\oracle\product\MI
    DDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;D:\oracle\pro
    duct\MIDDLE~1\modules\NETSFA~2.0_1/lib/ant-contrib.jar;D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\sys_man
    ifest_classpath\weblogic_patch.jar;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\web
    logic_patch.jar;D:\oracle\product\JAVA_C~1\lib\tools.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.ja
    r;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;D:\oracle\product\MIDDLE~1\modules\features\weblogic.ser
    ver.modules_10.3.5.0.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\oracle\product\MIDDLE~1\mod
    ules\ORGAPA~1.1/lib/ant-all.jar;D:\oracle\product\MIDDLE~1\modules\NETSFA~2.0_1/lib/ant-contrib.jar;
    PATH=D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\native;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles
    \default\native;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server
    \bin;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\oracle\product\JAVA_C~1\jre\bin;D:\oracle\product\JAVA_C~1\bin
    ;D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\native;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles\def
    ault\native;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\bin
    ;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\oracle\product\JAVA_C~1\jre\bin;D:\oracle\product\JAVA_C~1\bin;C:\
    Program Files\Legato\nsr\bin;C:\PROGRA~2\CA\SHARED~1\ETPKI\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C
    :\Windows\System32\WindowsPowerShell\v1.0\;D:\oracle\Java\current\jre\bin;C:\PROGRA~2\CA\IDENTI~1\PROVIS~1\BIN;C:\Progra
    m Files (x86)\CA\SharedComponents\CAM\bin;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;D:\oracle
    \product\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
    Your environment has been set.
    D:\oracle\product\Middleware\wlserver_10.3\server\bin>java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline>

  • WLST Ant task not working -- error in finding weblogic.Home

    I am attempting to set up a WLST script to automatically set up my domain. The following is a minimal version of the Ant task I'm using:
    <wlst debug="true" failOnError="true">
        <classpath>
            <pathelement location="${weblogic10.home}/server/lib/weblogic.jar"/>
        </classpath>
        <script>
            connect('weblogic','weblogic','t3://localhost:5000')
        </script>
    </wlst>When I run the target, I get the following error:
    java.lang.RuntimeException: error in finding weblogic.Home
         at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:168)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
         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:585)
         at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)My weblogic10.home property (referenced in the ant target) points to the weblogic installation directory (C:/bea_10/wlserver_10.0). Weblogic.jar exists in the path specified, and contains the class weblogic.Home.
    What am I missing? Any help would be greatly appreciated. I'm using Ant 1.6.5 and Weblogic 10.0 on Windows XP, if that makes a difference.
    Thanks in advance!
    -Jake
    Edited by jakerobb at 07/12/2007 1:52 PM

    Hi,
    I too have this problem. I am trying to use my own ant installation. The docs say that we can do that. However, if i try to set the domain env then the ant command will point to bea's ant. Anyway I have defined the task using a taskdef as follows
    <path id="wl_classpath">
              <pathelement location="${BEA_HOME}/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar" />
              <pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
              <pathelement location="${WL_HOME}/server/lib/weblogic_sp.jar" />
              <pathelement location="${WL_HOME}/server/lib/weblogic.jar" />
              <pathelement location="${WL_HOME}/server/lib/webservices.jar" />
         </path>
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask">
              <classpath refid="wl_classpath" />
         </taskdef>
         <target name="start_appinstance" description="--> Starts the Appinstance"
              <wlst debug="true">
                   <script>
                        connect('weblogic','weblogic','t3://localhost:7001')
                   </script>
              </wlst>
         </target>there is no weblogichome or beahome attribute for this task.
    My objective is to control a server using the node manager. I believe the only way to do this is to use wlst and not wlserver.
    Thanks
    Shaival
    PS: i am using version 9.2MP2 for weblogic and ant 1.7

  • Trying to connect to a WebLogic Admin server via WLST

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

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

  • Using Weblogic 9.1 WLST to connect to WLS 8.1.5 Server

    Hello:
    I have 2 questions:
    Question 1: BEA documentation says WLST is support in version 8.*. However, I can't find weblogic.WLST class in v8.1 weblogic.jar. So do I need to get additional jars?
    Question 2: I can launch weblogic.WLST in Weblogic v9.1 and it works fine to connect to other v9.1 servers. However, when connecting to v8.1 servers, it complains MBean Server is not initially property and it can't find weblogic.management.MBeanServer in InitialContext. Does that mean I need to do some configuration change on v8.1 server in order to accept WLST commands?
    Thanks in advance!
    Jenny Chen

    Yes, you will need to download WLST for 8.1 from https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=S13 and follow the directions to install in your environment.
    No, connecting to WLS 8.1 servers from a 9.x WLST is not supported.
    HTH,
    -satya
    BEA Blog:
    http://dev2dev.bea.com/blog/sghattu/
    Get Involved in CodeShare:
    https://wls-console-extensions.projects.dev2dev.bea.com/
    https://wlnav.projects.dev2dev.bea.com/
    https://eclipse-wlst.projects.dev2dev.bea.com/
    https://wlst.projects.dev2dev.bea.com/

  • Creation of domain issues - migration from weblogic 10.3.0 to 10.3.5 versio

    Hello,
    i would like to kindly ask for a help with following issue:
    Basically we are migrating from the 10.3.0 to the 10.3.5 version. We are building the domain using the template in "silent mode". And when i try to create the domain with new weblogic 10.3.5 im getting some errors.
    The command to run the creation of the domain is following:
    ${WL_HOME}/common/bin/config.sh -mode=silent -silent_script=${SILENT_SCRIPT} -log=${WLLOGFILE} >> ${LOGFILE} 2>&1
    returnCode=$?
    SILENT_SCRIPT contains following commands:
    read template from "/local/wg372/BM/appl/config/NEW_DOMAIN_CONFIGURED.jar";
    write domain to "/local/wg372/BM/appl/BmDomain";
    set OverwriteDomain "true";
    close template;
    When i setup new env(solaris) with weblogic 10.3.5 im getting following error when the silent_script command (*write domain to "/local/wg372/BM/appl/BmDomain";*) is executed:
    2011-07-18 16:53:00,427 INFO [runScript] com.oracle.cie.domain.script.ScriptExecutor - succeed: read template from "/local/wg372/BM/appl/config/NEW_DOMAIN_CONFIGURED.jar"
    2011-07-18 16:53:00,427 INFO [runScript] com.oracle.cie.domain.script.ScriptExecutor - write Domain to "/local/wg372/BM/appl/BmDomain"
    2011-07-18 16:53:00,505 ERROR [runScript] com.oracle.cie.wizard.domain.silent.tasks.RunScriptTask - There was an error executing the script: /local/wg372/BM/appl/installer/silent_script
    java.lang.NullPointerException
         at com.oracle.cie.domain.security.SecurityGenerateLDIFT.buildSecurityInfo(SecurityGenerateLDIFT.java:460)
         at com.oracle.cie.domain.security.SecurityGenerateLDIFT.<init>(SecurityGenerateLDIFT.java:119)
         at com.oracle.cie.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:718)
         at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.processWrite(ScriptParserClassic.java:573)
         at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.execute(ScriptParserClassic.java:429)
         at com.oracle.cie.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:148)
         at com.oracle.cie.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:110)
         at com.oracle.cie.domain.script.ScriptParser.execute(ScriptParser.java:72)
         at com.oracle.cie.domain.script.ScriptParser.execute(ScriptParser.java:35)
         at com.oracle.cie.wizard.domain.helpers.Executor.runSilentScript(Executor.java:68)
         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:597)
         at com.oracle.cie.wizard.domain.silent.tasks.RunScriptTask.runScriptWithExecutor(RunScriptTask.java:551)
         at com.oracle.cie.wizard.domain.silent.tasks.RunScriptTask.execute(RunScriptTask.java:335)
         at com.oracle.cie.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
         at java.lang.Thread.run(Thread.java:662)
    In Windows env im getting following error:
    create.domain:
    [exec] -mode="silent" -silent_script=J:/_dev/build/installer/silent_script
    [exec] << read template from "J:/_dev/build/config/NEW_DOMAIN_CONFIGURED.jar"
    [exec] >> succeed: read template from "J:/_dev/build/config/NEW_DOMAIN_CONFIGURED.jar"
    [exec] << write Domain to "J:/_dev/build/BmDomain"
    [exec] CFGFWK-60550: Script execution aborted. The script may contain an error.
    [exec] null
    CFGFWK-60550: - doc says
    CFGFWK-60550: Script execution aborted. The script may contain an error.
    Cause:
    Action:
    Level: 1
    Type: ERROR
    Impact: Configuration
    I tried to google for this issue, look into the weblogic documentation but with no luck.
    So i would like to kindly ask, if anyone of you perhaps could give me a hint/advise with this problem.
    Thanks in advance.

    Hi,
    thanks for the reply but im not sure if we are talking about the same thing. What i need is to upgrade the weblogic "DOMAIN" not the weblogic installation itself.
    Anyway,
    after some googling and testing im again stucked with another issue:
    1. First i have created the old doman (10.3.0)
    2. Then i have tested the domain with the new weblogic version 10.3.5 - as it should be (and is) compatible within those 2 versions
    ---> worked fine
    3. Then via offline WLST(of weblogic 10.3.5) i have managed to create new template with command writeTemplate(nameOfTemplate.jar)
    4. But when i try to create the new domain with the new template via WLST(of weblogic 10.3.5) im again stucked (im able to read the template in wlst but not able to writeDomain ) - error:
    wls:/offline> readTemplate('/home/wg372/tmp/new_template.jar')
    wls:/offline/BmDomain>writeDomain('/home/wg372/tmp/new_domain')
    Error: writeDomain() failed. Do dumpStack() to see details.
    wls:/offline/BmDomain>dumpStack()
    com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: The application location must have write permission.
    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
    at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:803)
    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:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyInstance.invoke(Unknown Source)
    at org.python.pycode._pyx3.writeDomain$15(/var/tmp/WLSTOfflineIni6651397525640719781.py:71)
    at org.python.pycode._pyx3.call_function(/var/tmp/WLSTOfflineIni6651397525640719781.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx24.f$0(<console>:1)
    at org.python.pycode._pyx24.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:173)
    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:597)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: com.oracle.cie.domain.script.ScriptException: The application location must have write permission.
    at com.oracle.cie.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:757)
    at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:795)
    ... 29 more
    I tried to have a look around for the "The application location must have write permission." problem but again with no luck.
    Furthemore when i try to do the same with old domain template, with old version of WLST (of weblogic 10.3.0), i have no problems with creating of the domain.
    Any ideas?
    Ill keep you updated :-)

  • Integrated WebLogic Server won't start

    Hi,
    Hope someone can help asap, as I am about to tear my hair out :-) Hopefully it's something straight forward and just can't see it from staring at it for too long!!
    OS: Windows 7 Pro 64-bit
    Same happens, with or without the WebCenter Extensions installed via Check for Updates.
    Steps:
    Downloaded WC Portal 11.1.1.5.0 from http://www.oracle.com/technetwork/middleware/webcenter/portal/downloads/index.html
    Confirmed the user I log into Windows as - Admin, is part of the Administrators group.
    Confirmed no CLASSPATH variable set
    Installed, specifying MW_HOME as C:\Oracle\Middleware
    Set ide.user.dir = C:/OraJDevUserFiles in C:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.boot to avoid any Win directory spacing issues
    Confirmed Administrators group has full control over both directories: MW_HOME and C:/OraJDevUserFiles
    Run C:\Oracle\Middleware\jdeveloper\jdeveloper.exe
    Run --> Start Server Instance (IntegratedWebLogicServer) (no need to even go as far as creating an application)
    Message in log pane is as follows:
    [Waiting for the domain to finish building...]
    [05:44:01 PM] Creating Integrated Weblogic domain...
    [05:44:42 PM] ERROR: An error occurred while building the default domain.
    Please see this log file for more details:
    C:\OraJDevUserFiles\system11.1.1.5.37.60.13\o.j2ee.adrs\CreateDefaultDomain.log
    The Server Instance cannot be started because the Integrated Weblogic domain was not built successfully.
    Click the link for C:\OraJDevUserFiles\system11.1.1.5.37.60.13\o.j2ee.adrs\CreateDefaultDomain.log to open in JDeveloper and shows as follows:
    Log File: C:\OraJDevUserFiles\system11.1.1.5.37.60.13\o.j2ee.adrs\CreateDefaultDomain.log
    Label: JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    Product Home: C:\Oracle\Middleware\jdeveloper\jdev\
    Domain: C:\OraJDevUserFiles\system11.1.1.5.37.60.13\DefaultDomain
    "C:\Oracle\Middleware\oracle_common\common\bin\wlst.cmd" "C:\OraJDevUserFiles\system11.1.1.5.37.60.13\o.j2ee.adrs\CreateDefaultDomain.py"
    Process started
    wlst >
    wlst > CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jrf_11.1.1/jrf-wlstman.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\ADF-SH~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\ADFSCR~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\mdswlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\AUDITW~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\IGFWLS~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jps-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jrf-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAP_~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAUT~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\ossoiap.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OSSOIA~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OVDWLS~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\SSLCON~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\wsm-wlst.jar
    wlst >
    wlst > PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    wlst >
    wlst > Your environment has been set.
    wlst >
    wlst > CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jrf_11.1.1/jrf-wlstman.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\ADF-SH~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\ADFSCR~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\mdswlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\AUDITW~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\IGFWLS~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jps-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jrf-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAP_~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAUT~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\ossoiap.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OSSOIA~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OVDWLS~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\SSLCON~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\wsm-wlst.jar;C:\Oracle\MIDDLE~1\utils\config\10.3\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbynet.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbytools.jar;;
    wlst >
    wlst > Initializing WebLogic Scripting Tool (WLST) ...
    wlst >
    wlst > Welcome to WebLogic Server Administration Scripting Shell
    wlst >
    wlst > Type help() for help on available commands
    wlst >
    wlst > Creating Default Domain
    wlst > Reading template: /C:/Oracle/Middleware/wlserver_10.3/common/templates/domains/wls.jar
    wlst > Setting Name to 'DefaultServer'
    wlst > Setting ListenAddress to ''
    wlst > Setting ListenPort to 7101
    wlst > Setting domain administrator to 'weblogic'
    wlst > Setting domain password.
    wlst > Writing domain: /C:/OraJDevUserFiles/system11.1.1.5.37.60.13/DefaultDomain/
    wlst > Closing template.
    wlst > Reading domain: /C:/OraJDevUserFiles/system11.1.1.5.37.60.13/DefaultDomain/
    wlst > Adding domain extension template: /C:/Oracle/Middleware/jdeveloper/common/templates/jdeveloper/adrs_template.jar
    wlst > Adding domain extension template: /C:/Oracle/Middleware/jdeveloper/common/templates/domains/jsf_template_1.2.9.0.jar
    wlst > Adding domain extension template: /C:/Oracle/Middleware/oracle_common/common/templates/applications/jrf_template_11.1.1.jar
    wlst > Adding domain extension template: /C:/Oracle/Middleware/jdeveloper/common/templates/jdeveloper/adf.fine.logging_11.1.1.jar
    wlst > Adding domain extension template: /C:/Oracle/Middleware/jdeveloper/common/templates/jdeveloper/wsmpm_config_template.jar
    wlst > Updating domain.
    wlst > Error: updateDomain() failed. Do dumpStack() to see details.
    wlst > Problem invoking WLST - Traceback (innermost last):
    wlst > File "C:\OraJDevUserFiles\system11.1.1.5.37.60.13\o.j2ee.adrs\CreateDefaultDomain.py", line 103, in ?
    wlst > File "C:\Users\Admin\AppData\Local\Temp\WLSTOfflineIni943340424736161757.py", line 91, in updateDomain
    wlst > File "<iostream>", line 30, in ?
    wlst >
    wlst > ImportError: no module named socket
    wlst >
    wlst >
    wlst >
    wlst >      at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
    wlst >
    wlst >      at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
    wlst >
    wlst >      at com.oracle.cie.domain.script.jython.WLScriptContext.updateDomain(WLScriptContext.java:445)
    wlst >
    wlst >      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    wlst >
    wlst >      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    wlst >
    wlst >      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    wlst >
    wlst >      at java.lang.reflect.Method.invoke(Method.java:597)
    wlst >
    wlst >
    wlst > com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: Traceback (innermost last):
    wlst >
    wlst > File "<iostream>", line 30, in ?
    wlst >
    wlst > ImportError: no module named socket
    wlst >
    wlst >
    wlst >
    Elapsed time: 40529 ms
    1). Odd thing is C:\OraJDevUserFiles\system11.1.1.5.37.60.13 doesn't exist if I go to Windows Explorer, although JDeveloper suggests it is. If I do File-Save As from JDev for the log file, I can navigate through the system directory it thinks exists! If I try and save the log file somewhere that does exist, e.g. C drive, it doesn't appear there in Windows Explorer!
    2). What's causing the domain creation to fail in WL??
    I get different results if I run JDev from here: C:\Oracle\Middleware\jdeveloper\jdev\bin\jdev.exe
    C:\OraJDevUserFiles\system11.1.1.5.37.60.13 is immediately created once launched
    If I run the Integrated WebLogic Server, the domain is created correctly and everything apears within C:\OraJDevUserFiles\system11.1.1.5.37.60.13
    If I then try and run the Integrated WebLogic Server via C:\Oracle\Middleware\jdeveloper\jdeveloper.exe again (now that the domain has been created the other way!), I then get different errors in the JDev log:
    <04-Nov-2011 18:24:10 o'clock GMT> <Notice> <Log Management> <BEA-170019> <The server log file C:\OraJDevUserFiles\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <04-Nov-2011 18:24:13 o'clock GMT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <04-Nov-2011 18:24:15 o'clock GMT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: java.io.IOException: There are no more files
    java.lang.AssertionError: java.io.IOException: There are no more files
         at weblogic.deploy.internal.InternalAppProcessor.initStagingDir(InternalAppProcessor.java:629)
         at weblogic.deploy.internal.InternalAppProcessor.updateConfiguration(InternalAppProcessor.java:296)
         at weblogic.management.deploy.internal.DeploymentServerService.init(DeploymentServerService.java:151)
         at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:26)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         Truncated. see log file for complete stacktrace
    Caused By: java.io.IOException: There are no more files
         at java.io.WinNTFileSystem.canonicalize0(Native Method)
         at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
         at java.io.File.getCanonicalPath(File.java:559)
         at java.io.File.getCanonicalFile(File.java:583)
         at weblogic.deploy.internal.InternalAppProcessor.initStagingDir(InternalAppProcessor.java:627)
         Truncated. see log file for complete stacktrace
    >
    <04-Nov-2011 18:24:15 o'clock GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <04-Nov-2011 18:24:15 o'clock GMT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <04-Nov-2011 18:24:15 o'clock GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Further diagnostics on this can be seen in C:\OraJDevUserFiles\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log :
    ####<04-Nov-2011 18:16:36 o'clock GMT> <Notice> <WebLogicServer> <LenovoW520> <DefaultServer> <main> <<WLS Kernel>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-0000000000000007> <1320430596671> <BEA-000365> <Server state changed to RUNNING>
    ####<04-Nov-2011 18:16:36 o'clock GMT> <Notice> <WebLogicServer> <LenovoW520> <DefaultServer> <main> <<WLS Kernel>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-0000000000000007> <1320430596671> <BEA-000360> <Server started in RUNNING mode>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <J2EE> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597010> <BEA-160151> <Registered library Extension-Name: bea_wls_async_response (JAR).>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <EJB> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597038> <BEA-010008> <EJB Deploying file: mejb.jar>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <WebService> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597464> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceHttps for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <WebService> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597572> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceJms for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <WebService> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597583> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseService for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <WebService> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597593> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12Jms for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <WebService> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597610> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12 for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <WebService> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597618> <BEA-220103> <Async web service support is not fully configured. The async response web service /AsyncResponseServiceSoap12Https for this server was not fully deployed because the JMS reliability queue was not defined/deployed: weblogic.wsee.DefaultQueue. The server will periodically retry completing the deploy for the service. This message can usually be ignored unless there are async web service applications. To completely disable async web service support, thus avoiding this message, set -Dweblogic.wsee.skip.async.response=true.>
    ####<04-Nov-2011 18:16:37 o'clock GMT> <Info> <EJB> <LenovoW520> <DefaultServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001d> <1320430597642> <BEA-010009> <EJB Deployed EJB with JNDI name ejb.mgmt.MEJB.>
    ####<04-Nov-2011 18:17:36 o'clock GMT> <Info> <Health> <LenovoW520> <DefaultServer> <weblogic.GCMonitor> <<anonymous>> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001e> <1320430656514> <BEA-310002> <68% of the total memory in the server is free>
    ####<04-Nov-2011 18:23:23 o'clock GMT> <Info> <Server> <LenovoW520> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-000000000000001f> <1320431003626> <BEA-002638> <Graceful shutdown of DefaultServer was issued remotely from 192.168.56.1>
    ####<04-Nov-2011 18:23:23 o'clock GMT> <Alert> <WebLogicServer> <LenovoW520> <DefaultServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <1b7e5955c26b51de:4e122841:1336fcbb76d:-8000-0000000000000020> <1320431003631> <BEA-000396> <Server shutdown has been requested by weblogic>
    Any ideas please??

    I had already uninstalled/deleted folders several times but no difference.
    Oddly, to add into the mix....it didn't work, then uninstalled/cleaned-up/installed and then worked...I restarted machine and it no longer worked and back to square one?!?! uninstalled/cleaned-up/installed couple more times since but always the same issue, as described in original post. Very odd!
    No difference whether a project has been created or not - thought I'd just make it simple with description, as this doesn't seem to affect outcome...
    Thanks for responses so far. Any other ideas much appreciated!

  • How to print/list all the groups/users present in Weblogic using Java code

    Hi,
    Weblogic version : 11.1.1.5
    How to print/list all the groups/users present in Weblogic using Java code
    I want to make a remote connection to Weblogic server and print all the users/groups present in it.
    I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
    http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
    Thanks in advance,
    Edited by: 984107 on 05-Feb-2013 05:26
    Edited by: 984107 on 05-Feb-2013 22:59

    see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
    Hope this helps.

Maybe you are looking for