Changing WL port using pack and unpack Commands

Hi,
I am an experienced WL8 user, just starting with WL9.
I created a first domain relatively easily using "config.sh"; and after finishing this proof of concept thought that it might be a good idea to create a template from it for the rest of the guys here.
For that I used the ?pack? command, which works fine.
The completing ?unpack? command also seems to works fine.
The only thing is that I fail to locate any option to determine the server?s listen port (always sets to be 7001 like my original domain), and this is problem because we all work on the same linux machine.
The only option I found so far is to start the server on it original port (7001) and than change it using the admin console. This is not good enough since we want to use an automatic install wizard?
Did I miss something?
Is there any command line to help?
Or any other tips?
Your help is appreciated,
zilbi

Hi Again,
solved it using the WLST offline tool.
the script (customCmpDomain.py):
#=======================================================================================
# Open the domain template.
#=======================================================================================
readTemplate("cmpDomainTemplate.jar")
#=======================================================================================
# Change server's port
#=======================================================================================
cd('Servers/AdminServer')
set('ListenPort', 7080)
#=======================================================================================
# Open (unpack) the domain.
#=======================================================================================
writeDomain("/home/rami/domains/cmpDomain")
#=======================================================================================
# Close & Exit
#=======================================================================================
closeTemplate()
exit()
and just run it using 'weblogic.WLST'
thanks anyway!
zilbi

Similar Messages

  • WebLogic Pack and Unpack

    When you pack and unpack the domain from one server to another server, config.xml is missing while we unpack the same,
    here we would like to know, do we need to metion the same path(Same folder structure) while pack and unpack?

    Hi
    Yes, one of the basic requirements is all the Machines should have Absolutely same version of Weblogic Software and in the same folder structure. The reason is when we run Pack command on the main master domain, it does store the full folder structure of some folders that has all the modules. So when you run UnPack on this other machine, basically it will unpack. But runtime, if folder structure is not matching, the most common error you may get is like Java home not found, middleware home not found and ofcourse ends up with all NoClassDefFound errors.
    Hence the folder structure should be same. And one more thing. After running unpack command, immediately you will NOT see any managed server folders under your domain/servers. That folder will be still Empty only. Only when you start the managed server like startManagedWeblogic.cmd myMS1 adminurl, thats when under domain/servers you will see a new folder named "myMS1" which is the name of managed server that you gave when you created the main master domain and packed it. Also, note it will prompt for username and password. ALSO, everytime you start managed servers, it will go to Admin Server and get some important files like config.xml file, jdbc files and few other config files and mainly all the LDAP files. Basically everytime it Syncs from AdminServer. So do NOT make any changes to any files on ManagedServer. Because when you restart they will get overwritten by admin files.
    Thanks
    Ravi Jegga

  • Pack and unpack in ABAP objects

    can anyone explain me how to pack or unpack a field inside a method which is inside a class.

    Hi
    See the doc of PACK and UNPACK
    PACK source TO destination.
    This statement, <b>which is forbidden in classes</b>, converts the content of the data object source to the data type p of length 16 without decimal places. In contrast to the conversion rules for elementary data types, a decimal separator in source is ignored. This assigns the converted content to the data object destination.
    The data type of source must be character-type, flat, and its content must be interpretable as a numeric value. The data type of destination must be flat. If destination has the data type p, the interim result is assigned to it from left to right. Surplus characters are cut off on the left, and the decimal places are determined by the data type of destination. If destination does not have the data type p, the interim result is converted to the data type of destination according to the rules in the conversion table for source field type p.
    UNPACK source TO destination.
    This statement converts the content of the data object source according to a specific rule and assigns the converted content to data object destination. For source, the data type p of length 16 without decimal places is expected. The data type of destination must be character-type and flat.
    The conversion is performed according to the following rules:
    If the data type of source is not of the type p with length 16 and without decimal places, then the content of source is converted to this data type. Contrary to the rules described in conversion rules for elementary data types, any decimal separator in source is completely ignored.
    The digits of the interim result are assigned to data object destination right-aligned and without +/- sign. Any additional places in destination are filled with leading zeros. If the length of destination is not sufficient, the assigned variable is truncated from the left.
    Reward points for useful Answers
    Regards
    Anji

  • Packing and Unpacking BITS from a SHORT

    Hello everyone,
    I am have six pieces of data packed into a 16bit short value and I am wondering if my code to pack and unpack the short looks right to everyone else. The six smaller values that I am pulling out of the short are of the length (in order) 2+2+3+3+3+3 bits . My approach to unpacking the short is applying a bitmask to isolate just the sub-value I want, then using the bitwise-left shift ( << operator) to move that value to the 0-position in the short, then casting the value to a byte for use in my program. The code to do that looks something like this:
    public final short maskValue1 = Short.parseShort("0000000000000011", 2);
    public final short maskValue2 = Short.parseShort("0000000000001100", 2);
    public final short maskValue3 = Short.parseShort("0000000001110000", 2);
    public final short maskValue4 = Short.parseShort("0000001110000000", 2);
    public final short maskValue5 = Short.parseShort("0001110000000000", 2);
    public final short maskValue6 = Short.parseShort("111000000000000", 2);
         public void unpackEncodedMap(short map, byte[] outMap) {
              outMap[0] = (byte)((map & maskValue1) << 14);
              outMap[1] = (byte)((map & maskValue2) << 12);
              outMap[2] = (byte)((map & maskValue3) << 9);
              outMap[3] = (byte)((map & maskValue4) << 6);
              outMap[4] = (byte)((map & maskValue5) << 3);
              outMap[5] = (byte)(map & maskValue6);
    The approach I use to encode the short value involves taking my input byte array and casting each into a short. Then I use the bitwise-right shift operator ( >> ) to move the bit value into the appropriate position. To apply the next byte-value I bitwise-OR the previous value onto the new mask. The values in the byte-array are assured not to be greater then their sub-value bit lengths ... so the downcast is all right. Here is my code to do the packing:
         public short encodeMap(byte[] mymap) {
              short out = (short)(((short)mymap[0]) >> 2);
              out = (short)((out | ((short)mymap[1])) >> 2);
              out = (short)((out | ((short)mymap[2])) >> 3);
              out = (short)((out | ((short)mymap[3])) >> 3);
              out = (short)((out | ((short)mymap[4])) >> 3);
              out = (short)(out | ((short)mymap[5]));
              return out;
    Thanks for looking at my functions and point out any inconsistencies. I feel like there is something I am not seeing in my code. Thanks!

    Well...thanks for the one-line answer :) yes, in the sense that it compiles and runs, but I am not sure if there is a problem with my logic or not.My program is acting strange and I am trying to isolate my problem, I think the problem might be in my pack/unpack methods.... possibly in my bit-math.

  • Pack and unpack a JFrame

    Hi,
    I'm using a JFrame and I 'd like to put a JButton to pack and unpack the window. Now, the pack is simple (I use the pack() method), but to enlarge the window? I've tried to store the original size before pack, and then resize the window but, since I use a BorderLayout layout manager the center panel doen't return visible.
    can anyone help me?

    You likely are not calling validate() on the layout after the resize
    Eximport javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test extends JFrame implements ActionListener
       private JPanel p;
       private Rectangle r;
       public Test()
          super("Flip");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setSize(770,580);
          p = new JPanel(new BorderLayout());
          JPanel p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("North"));
          p.add(p2, BorderLayout.NORTH);
          p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("West"));
          p.add(p2, BorderLayout.WEST);
          p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("East"));
          p.add(p2, BorderLayout.EAST);
          p2 = new JPanel(new FlowLayout());
          p2.add(new JLabel("Center"));
          p.add(p2, BorderLayout.CENTER);
          p2 = new JPanel(new FlowLayout());
          JButton pack = new JButton("Pack");
          JButton unpack = new JButton("Unpack");
          pack.addActionListener(this);
          unpack.addActionListener(this);
          p2.add(pack);
          p2.add(unpack);
          p.add(p2, BorderLayout.SOUTH);
          setContentPane(p);
       public void actionPerformed(ActionEvent ae)
          String s = ae.getActionCommand();
          if(s.equals("Pack"))
             r= getBounds();
             pack();
          else
             setBounds(r);
             validate();
       public static void main(String[] args)
          new Test().setVisible(true);
    }

  • My ipod gen 3 is frozen after the latest update from itunes,it will not power on or restore without error.Itunes is up to date,changed usb ports,even uninstalled and reinstalled all apple software, error 1601 during restore

    My ipod gen 3 is frozen after the latest update from itunes,it will not power on or restore without error.Itunes is up to date,changed usb ports,even uninstalled and reinstalled all apple software, error 1601 during restore

    Hello, VvioletT. 
    Thank you for visiting Apple Support Communities.
    I see you are experiencing issues syncing your iOS device.  Here are a couple articles that I would recommend going through when experiencing this issue.
    iOS: Troubleshooting USB-related alerts when syncing
    http://support.apple.com/kb/TS5254
    Resolve issues between iTunes and security software
    http://support.apple.com/kb/ts3125
    Cheers,
    Jason H.

  • Pack and Unpack in HU

    Hi MM Gurus,
    I have a requirement of packing one HU of say 5EA Qty and Unpack in two HUs say 4EA & 1EA.Is this scenario is  possible in Handling Unit Management. If possible please explain.
    Regards,
    Manikyappa

    hi,
    if you have handling unit management activated (TVSHP-EXIDV_UNIQUE), you can create HUs within hu02. Here you can pack the f.e. 5 pieces into one HU or also unpack it into two HUs with 4+1 pieces (add material, total quantity, plant and storage location and the packaging material -> select these to lines and push "pack" button in the middle of the screen for packing it; to unpack HUs use the "empty" or "delete HU" button on the left side of the screen, after this you can pack again like you want... you have several possibilities to create HUs within this transaction). You can also use transaction humo for changing HUs (and for a lot of useful things used with HUs).
    (If you do not have handling unit management activated, you can only create shipping units within a delivery (you have the same screen there as in hu02).)
    I hope I could help you.
    Regards, Ely

  • E55 - language pack and voice commander software

    Hello first! The phone is cool, but i dont have fully packed bulgarian language. I dont mind using english, but want to use voice commands, which i cant because the names in the contacts are bulgarian and they get scrambled and SIND becomes unuseful. For instance Uliqn Pavlov is like you read it, SIND changes it to Ilki Pavlov, and its for every contact. In the menu i got bulgarian, everything becomes bulgarian but cant write on bulgarian, perpahps of the e55 keypad dunno. Whatever im looking for something like this http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/voice-command-features.mspx   just want to use the phone and dont get it out from the pocket

    On Thu, 26 Mar 2015 00:36:04 +0000, Carey Frisch [MVP] wrote:
    In order for Cortana to be enabled, the initial install of Tech Preview must be done in the Cortana-supported language you want to be in.
    To resolve your issue, please go to Windows 10 Tech Preview ISO <http://windows.microsoft.com/en-us/windows/preview-iso> to install the localized build in Italian.
    I'm not exactly sure how you expect the OP to install the Windows 10 ISO on
    to his phone.
    Paul Adare - FIM CM MVP
    NT and security should not be used in the same sentence without negation
    -- Joe Zeff

  • Getting Proxy name and proxy port using Hostname and port

    Hi Colleagues,
    I my Application i am consuming webserice and i am setting proxy host and proxy port using the below code :
    httpItf  = HTTPControlFactory.getInterface(port);
    httpItf.setHTTPProxy("proxy", 8080);
    But this "Proxy" is getting changed if the application is deployed to another network. (like some other landscape)
    So Could it be possible to get the proxy dynamically depending on the Hostname and port.
    such that it should automatically pick up the "ProxyHost" and "Proxy port".........depending upon the system it runs .
    Please help me out here
    Thanks & Regards
    Swetha
    Edited by: Swetha Nellore on Sep 17, 2009 7:52 AM

    Hi Colleagues,
    i have solved this by maintaining a proxy settings properties file.....where proxy settings can be changed using system administrator
    Thanks & Regards
    Swetha

  • Hanlding Unit Pack and Unpack Function module

    Hi All,
        Can any one know the functiona modules for PACK Handling Unit and UNPACK Handling Unit? If so please reply me.
    Thanks,
      Pranav

    Hi,
    Please check this FM.
    PACK_HANDLING_UNIT
    UNPACK_HANDLING_UNIT
    Hope this will help.
    Regards,
    Ferry Lianto

  • Language pack and voice command

    Hi i got a new lumia 635. I installed on it Win 10 tech preview and i wanted to try out cortana.. but here is the problem.. i selected im italian i live in italy and my region is Italy.. and guess what.. when i go to date/language settings it says: Italian,
    Language: active Region: Active , Voice command: NEEDS DOWNLOAD, keyboard: italian.
    So the problem is , i cant figure out how to download the speech/voice command in Italian.. i tried everything.. switching language to english restart then back to italian.. Nothing appears.. no windows where it asks to download something, nothing.
    Also if i go under settings--> speech   in the menu its already selected Italian and if i want to change that nothing happens. it just highlights italian in blue and there is no other option.. Help.

    On Thu, 26 Mar 2015 00:36:04 +0000, Carey Frisch [MVP] wrote:
    In order for Cortana to be enabled, the initial install of Tech Preview must be done in the Cortana-supported language you want to be in.
    To resolve your issue, please go to Windows 10 Tech Preview ISO <http://windows.microsoft.com/en-us/windows/preview-iso> to install the localized build in Italian.
    I'm not exactly sure how you expect the OP to install the Windows 10 ISO on
    to his phone.
    Paul Adare - FIM CM MVP
    NT and security should not be used in the same sentence without negation
    -- Joe Zeff

  • String pack and unpack

    Hi, i�m having trouble trying to write a methode to unpack a string packed with the following methode.
    can some one tell me how to write the unpack methode ?
    thanks.
    public String pack(String s) {
    byte[] a = new byte[16];
    //If the string is an odd length then pack with an F
    if ( s.length() % 2 == 1 ) {  
    s = (char) 0xFF + s ;
    //Now pack each pair of bytes into the array
    for ( int i = 0, j = 0 ; i < s.length() ; i += 2, j++ ) {
    a[j] = (byte) ( ( (s.charAt(i) & 0x0F) << 4 ) +
    (s.charAt(i+1) & 0x0F) ) ;
    return new String(A);
    }

    You need know the assumptions about the content of the original string. A packing algorithm like the one you describe might be used to pack a numeric string into an array of bytes. In that case, you assume that the original string consisted of nothing but ASCII digits, and you can recover the string with the following method:
    public String unpack(String a) {
      byte [] b = a.getBytes();
      StringBuffer buff = new StringBuffer(b.length * 2);
      for (int i = 0; i < b.length; i++) {
        buff.append((char)(0x30 | ((b[i] & 0xf0) >> 4)));
        buff.append((char)(0x30 | (b[i] & 0x0f)));
      // If the first char was a pad char, then remove it
      if (buff.charAt(0) == (char)0x3f)
        return buff.substring(1);
      return buff.toString();
    }

  • Unable to capture C drive using Dism and imageX commands

    I am trying to capture C drive using dism command but it did not work, but the same command is capturing E drive. i am using following command.
    dism /Capture-Image /ImageFile:E:\image.wim /CaptureDir:C:\  /name:"Image File"
    I am getting following error.
    Deployment Image Servicing and Management tool
    Version: 6.3.9431.0
    Error: 32
    The process cannot access the file because it is being used by another process.
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    An in the log file the error is:   DISM   DISM.EXE: WimManager processed the command line but failed. HRESULT=80070020

    Hi,
    As far as I know, Dism command doesn't support hot image backup, that to say, you do need to complete the image backup job at Windows PE enviroment.
    The contents of the link below also list the Dism command capture image requirement:
    http://technet.microsoft.com/en-us/library/hh825072.aspx
    Roger Lu
    TechNet Community Support

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

  • PROBLEMS USING WEBUTIL_FILE_TRANSFER AND CLIENT_HOST COMMAND TO VIEW BLOB

    I am using webutil_file_transfer.DB_To_Client_with_progress to retrieve a blob
    from the database (that was saved in a word format) into a .doc file on the
    client.
    1st problem: The document that is being saved is not readable. It has all
    kind of special characters in it.
    Then using the client_host command, I open the document into ms word.
    2nd problem: The document opens fine (again not readable in garbage
    characters) but when I close the document, notepad pops up blank with nothing
    in it.
    Below is a sample of the code.:
    PROCEDURE DOWNLOAD_DB IS
    l_success boolean;
    username varchar2(30);
    document_name varchar2(20);
    wordexe varchar2(20);
    BEGIN
         username := webutil_clientinfo.get_user_name;
         document_name := 'wo'||:wod.fk_work_order_number||'.doc';
         :locals.file_name := 'Documents and Settings\'||username||'\my documents\'||document_name;
    l_success := webutil_file_transfer.DB_To_Client_with_progress
    (clientFile => 'C:\'||:locals.file_name
    ,tableName => 'DEFECTS'
    ,columnName => 'DESCRIPTION'
    ,whereClause => 'FK_WORK_ORDER_DATE_ID = '||:DEF.FK_WO_DATE_ID
    ,progressTitle => 'Defect document being opened'
    ,progressSubTitle=> 'Please wait'
    if l_success
    then
    CLIENT_HOST('cmd /c start /wait winword.exe C:\'||'"'||:locals.file_name||'"');
    else
    message('File download from Database failed');
    end if;
    exception
         when others
         then
         message('File download failed: '||sqlerrm);
    END;
    Any ideas?

    Hello,
    I use this kind of code with 9i and 10g and it works fine with word, excel and any of windows files.
    I think that, if the file is not correct, the cause may be the first save of the file in the database.
    Which instruction did you use to save first the doc in the BLOB column ?
    Francois

Maybe you are looking for

  • InDesign CS3 web layout

    We are making a layout with a lot of text for the web at 480px x 640px. The smallest text is 11pt Eurostile Bold Condensed. It looks terrible on screen and in an exported JPEG. We have gotten it to look pretty good by exporting a PDF X1-A, rasterizin

  • Mail - Deletion of Mail e-mails

    Trying to delete a number of e-mails using delete icon; the e-mails initally clear but on re-use find that the deleted e-mails are still present on the system. Any ideas on how to delete deleted e-mails!!!

  • How to address an cell in a boolean array

    Hello I am intersted in addessing a certain cell in a boolean array. Suppose I have a boolean array called bArr which is of length 10 and contains  values  of { T,T,F,F,F,F,T,F,T,F } and I want to send to an "AND" gate bArr[0] together with  "TRUE" c

  • 0 idocs generated for msg type cosmas

    Hi everyone.. please help out with this idoc issue I'm trying to send data with msg type COSMAS from 800 to 810 using BD16 as follows: it just says 0 idocs generated. I have again gone back and checked my customizations but can't figure it out. the s

  • Does income xml request get validated against wsdl?

    Hi, there: I'm using document/literal web service. My question is: Does income xml request get validated automatically against wsdl complex type xml schema? If not is there any configuration way we can set to validate income xml request automatically