6 Replies Latest reply: Feb 2, 2012 7:15 PM by 746931 RSS

    unpack.sh script not working for WLS 11g (10.3.2.0)

    694204
      I can sucessfully pack my domain using the pack script to generate me a jar file. I copied this to my other phsical server and when I attempt to unpack it I get the following error:-

      read template from "/pkg/vddi6/home/testdi6/Oracle/Middleware/wlserver10.3/common/bin/sebula-ct2.jar"
      fail: read template from "/pkg/vddi6/home/testdi6/Oracle/Middleware/wlserver10.3/common/bin/sebula-ct2.jar"
      CFGFWK-60550: Script execution aborted. The script may contain an error.
      Required component home not found for component 'WebLogic Server' version '10.3.2.0'
      bash-3.2$

      However the WL_HOME that is set in the unpack.sh script is correct. Any ideas on what could be causing this. I have the same WLS version on both machines as they were both installed from the same binaries....

      Regards
      Martin

      Edited by: martinjporter@gmail.com on Feb 8, 2010 6:44 AM
        • 1. Re: unpack.sh script not working for WLS 11g (10.3.2.0)
          595762
          Please verify is you tuble in the following:

          "2.2.6 Running unpack.sh or unpack.cmd on a Different Host

          If you are running the unpack.sh (on UNIX) or unpack.cmd (on Windows) command to unpack a domain on a remote host, the Oracle Home location and the Middleware Home location on the remote host should match the locations on the host where the pack was performed.

          Below is a valid example:

          Host 1:
          MW_HOME = /user/home/Middleware
          ORACLE_HOME =/user/home/Middleware/Oracle_SOA1

          @ Host 2:
          MW_HOME = /user/home/Middleware
          ORACLE_HOME =/user/home/Middleware/Oracle_SOA1

          The example below is NOT valid because the Oracle Homes do not match:

          Host 1:
          MW_HOME = /user/home/Middleware
          ORACLE_HOME =/user/home/Middleware/Oracle_SOA1

          @ Host 2:
          MW_HOME = /user/home/Middleware
          ORACLE_HOME =/user/home/Middleware/SOA_Home

          The example below is NOT valid because the Middleware Homes do not match:

          Host 1:
          MW_HOME = /user/home/Middleware
          ORACLE_HOME =/user/home/Middleware/Oracle_SOA1

          @ Host 2:
          MW_HOME = /user/home/MWHome
          ORACLE_HOME =/user/home/Middleware/Oracle_SOA1
          "

          http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14773/install.htm#BABBGBDG

          Oracle® Fusion Middleware Release Notes
          11g Release 1 (11.1.1) for HP-UX Itanium
          Part Number E14773-06

          Regards
          • 2. Re: unpack.sh script not working for WLS 11g (10.3.2.0)
            User738616-Oracle
            Hi Martin,

            How did you got it working? Please advise!

            Thanks in advance!

            Regards,
            Jermy
            • 3. Re: unpack.sh script not working for WLS 11g (10.3.2.0)
              René van Wijk
              Maybe this can help - http://middlewaremagic.com/weblogic/?p=6637
              • 4. Re: unpack.sh script not working for WLS 11g (10.3.2.0)
                746931
                Rene, your website has useful info but it does not have any info on how to resolve this problem. I 'm seeing this with 12.1.1 as well. Here's the log of an error I had when all I was trying to do is make a copy of the domain with a different name.

                $ echo $MW_HOME
                /app/tools/oracle/weblogic/12.1/x86-64-linux

                $ echo $WL_HOME
                /app/tools/oracle/weblogic/12.1/x86-64-linux/wlserver_12.1

                ORACLE_HOME isn't set.

                $ pack.sh -domain=/app/cmt/domains/cmtdev -template=/app/cmt/domains/cmtdev-template.jar -template_name="cmtdev"
                << read domain from "/app/cmt/domains/cmtdev"
                succeed: read domain from "/app/cmt/domains/cmtdev"
                << write template to "/app/cmt/domains/cmtdev-template.jar"
                ....................................................................................................
                succeed: write template to "/app/cmt/domains/cmtdev-template.jar"
                << close template
                succeed: close template
                On the same host.
                $ mkdir /app/cmt/domains/cmtdev2

                $ unpack.sh -domain=/app/cmt/domains/cmtdev2 -template=/app/cmt/domains/cmtdev-template.jar
                << read template from "/app/cmt/domains/cmtdev-template.jar"
                fail: read template from "/app/cmt/domains/cmtdev-template.jar"
                CFGFWK-60550: Script execution aborted. The script may contain an error.


                I ran with logging turned using info from this manual page: http://docs.oracle.com/cd/E21764_01/web.1111/e14144/commands.htm

                The command is:

                $ unpack.sh -domain=/app/cmt/domains/cmtdev2 -template=/app/cmt/domains/cmtdev-template.jar -log_priority=debug -log=unpack.log


                Here's the relevant error from the log file:


                2012-02-02 11:13:51,318 DEBUG [runScript] com.oracle.cie.domain.security.AttributeProcessor - Process at the eachTag level with params: CustomRealm:PasswordEncrypted:true
                2012-02-02 11:13:51,533 INFO [runScript] com.oracle.cie.domain.WLSTemplateBuilder - No config-groups.xml found in template
                2012-02-02 11:13:51,537 INFO [runScript] com.oracle.cie.domain.WLSTemplateBuilder - No template-database.xml found in template
                2012-02-02 11:13:52,948 DEBUG [runScript] com.oracle.cie.oui.impl.FMWHomeInventoryImpl - Trying to find a match for WebLogic Server:10.3.2.0.0 using default minimum matching positions.
                2012-02-02 11:13:52,952 DEBUG [runScript] com.oracle.cie.oui.impl.ProductHomeInventoryImpl - Trying to find a match for WebLogic Server:10.3.2.0.0 in /app/tools/oracle/weblogic/12.1/x86-64-linux/coheren
                ce_3.7 using 2 minimum matching positions.
                2012-02-02 11:13:53,004 DEBUG [runScript] com.oracle.cie.oui.impl.ProductHomeInventoryImpl - Found no match.
                2012-02-02 11:13:53,004 DEBUG [runScript] com.oracle.cie.oui.impl.ProductHomeInventoryImpl - Trying to find a match for WebLogic Server:10.3.2.0.0 in /app/tools/oracle/weblogic/12.1/x86-64-linux/wlserve
                r_12.1 using 2 minimum matching positions.
                2012-02-02 11:13:53,007 DEBUG [runScript] com.oracle.cie.oui.impl.ProductHomeInventoryImpl - Found a match WebLogic_Server_12.1.1.0_wlserver_12.1 with 0 matching positions.
                2012-02-02 11:13:53,007 DEBUG [runScript] com.oracle.cie.oui.impl.ProductHomeInventoryImpl - The match has fewer matching positions than required. No matching component found.
                2012-02-02 11:13:53,007 DEBUG [runScript] com.oracle.cie.oui.impl.FMWHomeInventoryImpl - Final match(es): []
                2012-02-02 11:13:53,008 ERROR [runScript] com.oracle.cie.domain.DomainTemplate - Required component home not found for component 'WebLogic Server' version '10.3.2.0'
                2012-02-02 11:13:53,009 INFO [runScript] com.oracle.cie.domain.script.ScriptExecutor - fail: read template from "/app/cmt/domains/cmtdev-template.jar"
                2012-02-02 11:13:53,011 ERROR [runScript] com.oracle.cie.domain.script.ScriptExecutor - read template from "/app/cmt/domains/cmtdev-template.jar"
                com.oracle.cie.domain.ConfigRuntimeException: Required component home not found for component 'WebLogic Server' version '10.3.2.0'
                     at com.oracle.cie.domain.DomainTemplate.<init>(DomainTemplate.java:257)
                     at com.oracle.cie.domain.DomainTemplate.<init>(DomainTemplate.java:183)
                     at com.oracle.cie.domain.WLSTemplateBuilder.parseTemplate(WLSTemplateBuilder.java:576)
                     at com.oracle.cie.domain.WLSTemplateBuilder.parseDomainTemplate(WLSTemplateBuilder.java:486)
                     at com.oracle.cie.domain.WLSTemplateBuilder.buildDomainTemplate(WLSTemplateBuilder.java:1386)
                     at com.oracle.cie.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:429)
                     at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.processRead(ScriptParserClassic.java:522)
                     at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.execute(ScriptParserClassic.java:426)
                     at com.oracle.cie.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:148)
                     at com.oracle.cie.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:111)
                     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:69)
                     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:558)
                     at com.oracle.cie.wizard.domain.silent.tasks.RunScriptTask.execute(RunScriptTask.java:342)
                     at com.oracle.cie.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
                     at java.lang.Thread.run(Thread.java:662)
                2012-02-02 11:13:53,019 ERROR [runScript] com.oracle.cie.wizard.domain.silent.tasks.RunScriptTask - There was an error executing the script: /tmp/tmpUnpack2688991386685955069cws
                com.oracle.cie.domain.script.ScriptException: com.oracle.cie.domain.ConfigRuntimeException: Required component home not found for component 'WebLogic Server' version '10.3.2.0'
                     at com.oracle.cie.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:465)
                     at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.processRead(ScriptParserClassic.java:520)
                     at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.execute(ScriptParserClassic.java:426)
                     at com.oracle.cie.domain.script.ScriptParserClassic.parseAndRun(ScriptParserClassic.java:148)
                     at com.oracle.cie.domain.script.ScriptParserClassic.doExecute(ScriptParserClassic.java:111)
                     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:69)
                     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:558)
                     at com.oracle.cie.wizard.domain.silent.tasks.RunScriptTask.execute(RunScriptTask.java:342)
                     at com.oracle.cie.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
                     at java.lang.Thread.run(Thread.java:662)
                Caused by: com.oracle.cie.domain.ConfigRuntimeException: Required component home not found for component 'WebLogic Server' version '10.3.2.0'
                     at com.oracle.cie.domain.DomainTemplate.<init>(DomainTemplate.java:257)
                     at com.oracle.cie.domain.DomainTemplate.<init>(DomainTemplate.java:183)
                     at com.oracle.cie.domain.WLSTemplateBuilder.parseTemplate(WLSTemplateBuilder.java:576)
                     at com.oracle.cie.domain.WLSTemplateBuilder.parseDomainTemplate(WLSTemplateBuilder.java:486)
                     at com.oracle.cie.domain.WLSTemplateBuilder.buildDomainTemplate(WLSTemplateBuilder.java:1386)
                     at com.oracle.cie.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:429)
                     at com.oracle.cie.domain.script.ScriptParserClassic$StateMachine.processRead(ScriptParserClassic.java:522)
                     ... 14 more
                2012-02-02 11:13:53,038 DEBUG [WizardController] com.oracle.cie.wizard.WizardController - Terminating.
                • 5. Re: unpack.sh script not working for WLS 11g (10.3.2.0)
                  915012
                  Trying the pack/unpack script in 10.3.2 works - perhaps some hard-coded references to 10.3.2 were left behind in 12.1?
                  • 6. Re: unpack.sh script not working for WLS 11g (10.3.2.0)
                    746931
                    I got past the above problem by extracting the template-info.xml file and removing all 10.3.2 references in it to 12.1.1 version and updating the template jar file with it. We have upgraded the source domain from 10.3.2 to 12.1.1 a few weeks ago. the upgrade appeared to go fine (our apps are working fine) but it probably left some 10.3.2 references in there.