WLS 10.3.x Silent Install Gotcha

I ran into an issue where I couldn't figure out why I was getting the
following error when running a WebLogic Server 10.3.2 upgrade in silent
mode pert the documentation:


C:\temp\ten_two_domain1>java
weblogic.Upgrade -mode silent -type domain

Calling Wizard
framework for upgrade: args2: [-mode=silent,
-file=wcf/plugin_silent_wizard.xml,
-p:plugin:plugin.silent.response.file=weblog

ic-upgrade-domain-responses.xml,
-log=stdout, -p:plugin:plugin.executionPlan.file=weblogic/upgrade/domain/execplan.xml,
-p:plugin:I18N_PLUGI

N=weblogic/upgrade/i18n_upgrade,
-p:plugin:TARGET_VERSION=10.3.2.0]

2011-05-03
12:12:25,926 ERROR [inputAdapter_silent]
com.bea.plateng.wizard.WizardController - Uncaught Exception

java.lang.ArrayIndexOutOfBoundsException:
0

     
  at
weblogic.upgrade.domain.directoryselection.SelectWebLogicVersionPlugIn.validateInputAdapter(SelectWebLogicVersionPlugIn.java:50)

     
  at com.bea.plateng.wizard.plugin.silent.tasks.InputAdapterSilentTask.execute(InputAdapterSilentTask.java:178)

     
  at
com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)

     
  at java.lang.Thread.run(Thread.java:619)

A fatal error has
occurred.  This application will terminate.
I thought I had followed the example from http://docs.oracle.com/cd/E15523_01/web.1111/e13754/xml_ref.htm#g1066162 perfectly:


Example E-3 Sample Silent-Mode XML Script for Upgrading a Domain


<?xml version="1.0" encoding="UTF-8"?>

<plugin-silent-responses>
</plugin-silent-responses>

<!-- SAMPLE BELOW -->
<!--
<plugin-silent-responses>
<group name="DomainSelectionGroup">
<plugin name="SelectWebLogicVersionPlugIn">
<input-adapter name="ChoiceIA">
<bind-property name="selectedChoiceIds">
<value>__WEBLOGIC_VERSION__</value>
</bind-property>
</input-adapter>
</plugin>
<plugin name="DomainDirectorySelectionPlugIn">
<input-adapter name="IA">
<bind-property name="selectedFile">
<value>__DOMAIN_DIR__</value>
</bind-property>
</input-adapter>
</plugin>
</group>
<group name="PostDirSelectionGroup">
<plugin name="AdminServerSelectionPlugIn">
<input-adapter name="IA">
<bind-property name="selectedChoiceIds">
<value>__ADMIN_SERVER_NAME__</value>
</bind-property>
</input-adapter>
</plugin>
<plugin name="NodeManagerCredentialsPlugIn">
<input-adapter name="UsernameIA">
<bind-property name="value">
<value>__NODE_MANAGER_USERNAME__</value>
</bind-property>
</input-adapter>
<input-adapter name="PasswordIA">
<bind-property name="value">
<value>__NODE_MANAGER_PASSWORD__</value>
</bind-property>
</input-adapter>
<input-adapter name="PasswordConfirmIA">
<bind-property name="value">
<value>__NODE_MANAGER_PASSWORD__</value>
</bind-property>
</input-adapter>
</plugin>
<plugin name="OptionalGroupsSelectionPlugIn">
<input-adapter name="IA">
<bind-property name="selectedChoiceIds">
<value>__OPTIONAL_ACTION_1__</value>
<value> . . . </value>
</bind-property>
</input-adapter>
</plugin>
</group>
<group name="PostDirSelectionPost81Group">
<plugin name="AdminServerSelectionPlugIn">
<input-adapter name="IA">
<bind-property name="selectedChoiceIds">
<value>__ADMIN_SERVER_NAME__</value>
</bind-property>
</input-adapter>
</plugin>
<plugin name="OptionalGroupsSelectionPlugIn">
<input-adapter name="IA">
<bind-property name="selectedChoiceIds">
<value>__OPTIONAL_ACTION_1__</value>
<value> . . . </value>
</bind-property>
</input-adapter>
</plugin>
</group>
<group name="DomainBackupGroup">
<plugin name="DomainDirectoryBackupPlugIn">
<input-adapter name="FileSelectionIA">
<bind-property name="selectedFileNames">
<value>__BACKUP_DIR__</value>
</bind-property>
</input-adapter>
<input-adapter name="TextIA">
<bind-property name="value">
<value>___BACKUP_FILE_NAME__</value>
</bind-property>
</input-adapter>
</plugin>
</group>
</plugin-silent-responses>

-->



But, as it turns out, where I wanted to be literal on the  SelectWebLogicVersionPlugIn value with 10.2, the correct format is to be a bit broader, with:


   
<plugin name="SelectWebLogicVersionPlugIn">

     
<input-adapter name="ChoiceIA">

     
  <bind-property name="selectedChoiceIds">

     
    <value>9.0 or higher</value>

     
  </bind-property>

     
</input-adapter>

   
</plugin>


I hope this saves some folks the time I spent figuring it out :)

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

bocadmin_ww

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today