2 Replies Latest reply: Feb 20, 2013 11:18 AM by Ramprakash Arun RSS

    creating domain using unpack.sh

    Ramprakash Arun
      hi,

      am getting "Error: Invalid template jar file /opt/wls/deployments/backup/template [error in opening zip file]" while creating domain using unpack.sh

      template created with unix box 1 and moved to box 2.
      While creating in box 2 am getting this error.

      both unix boxes are having same RHEL and Weblogic server version.

      here the log ...

      bin]$./unpack.sh -domain=/opt/wls/Oracle/Middleware/user_projects/domains/test_dev -template=/opt/wls/deployments/backup/template/dev_templet.jar '-managed=true'

      Error: Invalid template jar file /opt/wls/deployments/backup/template [error in opening zip file]

      ------*

      box 1

      setDomainENV.sh
      -------
      WL_HOME="/opt/wls/Oracle/Middleware/wlserver_10.3"
      export WL_HOME

      BEA_JAVA_HOME=""
      export BEA_JAVA_HOME

      SUN_JAVA_HOME="/opt/wls/Oracle/Middleware/jdk1.6.0_26"
      export SUN_JAVA_HOME

      box 2

      WL_HOME="/opt/wls/Oracle/Middleware/wlserver_10.3"
      export WL_HOME

      BEA_JAVA_HOME=""
      export BEA_JAVA_HOME

      SUN_JAVA_HOME="/opt/wls/Oracle/Middleware/jdk1.6.0_26"
      export SUN_JAVA_HOME

      ---*
      what could be the reason for this error ?
        • 1. Re: creating domain using unpack.sh
          Kishore Rout
          Hi,
          Can you check "dev_templet.jar" jar file is present in "/opt/wls/deployments/backup/template/" directory in box 2. Have you transfered the jar file from box 1 to box2. Also check the permission of the jar file in box-2 starting from root directory("/"). From root user issue below command then try to execute unpack command.

          chmod -R 750 /opt/wls/deployments/backup/template/dev_templet.jar

          Regards,
          Kishore
          Mark if this helps.
          • 2. Re: creating domain using unpack.sh
            Ramprakash Arun
            Kishore,

            i have tried with chmod 775 also, same error am getting again.

            Error: Invalid template jar file /opt/wls/deployments/backup/template/pnbr21dev_templet.jar [error in opening zip file]

            Any clue ?