Tuesday, September 3, 2013

Weblogic 10.3.5 to 10.3.6 error.

We faced issue with 10.3.5 to 10.3.6. The weblogic was used by 2 domains.OSR and SOA domain.SOA again had OER with it.Yes, a complex one. Strangely upgrade of weblogic failed with

"A fatal error has occured, application will terminate".Below command was used.

./java  -Djava.io.tmpdir=/prod/tmp -d64 -jar /prod/patch_11.1.1.7/weblogic1036/wls1036_upgrade_generic.jar

We enabled log and got the error,


2013-09-03 00:16:56,909 INFO  [workshopConfig_gui] com.bea.plateng.wizard.installer.helpers.WorkshopConfigTaskHelper - /resources/bids/WebLogic Platform10.3.6.0_wsconfig.xmlis not available. Nothing to configure.
2013-09-03 00:16:57,341 ERROR [setPatchEnv_silent] com.bea.plateng.wizard.WizardController - Uncaught Exception java.lang.IllegalArgumentException: Invalid product-ref! Unable to locate product=Oracle Enterprise Repository release=11.1.1.4
        at com.bea.cie.gpr.internal.model.dao.reg.DelegateRegistryHelper.getProductMap(DelegateRegistryHelper.java:185)
        at com.bea.plateng.wizard.installer.silent.tasks.PatchScriptHandlerTask.getProdInstallDirToProdSet(PatchScriptHandlerTask.java:228)
        at com.bea.plateng.wizard.installer.silent.tasks.PatchScriptHandlerTask.handleBEAHome(PatchScriptHandlerTask.java:128)
        at com.bea.plateng.wizard.installer.silent.tasks.PatchScriptHandlerTask.execute(PatchScriptHandlerTask.java:60)
        at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)
        at java.lang.Thread.run(Thread.java:662)


We found by searching oracle documentation that it was related to Bug 13004222 - WLS UPGRADE FAILURE



Below is the solution:
================
1. Extract gpr.xml file from wls1036_upgrade_generic.jar
2. Open gpr.xml with any text editor
3. Search for product id="Oracle Enterprise Repository" as there is already one entry for 11.1.1.3.0
4. Add a new product entry as follows

         <product id="Oracle Enterprise Repository" release="11.1.1.5" symbol="aler">
        <jvm-ref id="jdk160_05">
          <include platform="win" arch="32" />
          <include platform="solaris" arch="32" default="true"/>
          <include platform="linux" arch="32" />
        </jvm-ref>
        <jvm-ref id="jrockit_160_05">
          <include platform="win" arch="32" default="true"/>
          <include platform="linux" arch="32" default="true"/>
        </jvm-ref>

        <component id="Core Repository with Examples" symbol="alerc">
          <feature-ref feature="com.bea.aler.db.config" feature-version="1.1.0.0"/>
        </component>
  </product>

5. update the wls1036_upgrade_generic.jar with gpr.xml as follows
jar -uvf wls1036_upgrade_generic.jar gpr.xml
6. Run the WLS upgrade

No comments:

Post a Comment