My Oracle Support Banner

WebLogic Server JMS Migratable Target's Post and Pre Migration Script Fails to Run (Doc ID 1386231.1)

Last updated on AUGUST 17, 2023

Applies to:

Oracle WebLogic Server - Version 10.3.3 and later
Information in this document applies to any platform.


ServiceMigration is failing because pre- and post- scripts fail to execute when the path for it is given from the console. To replicate this problem, follow these instructions:

  1. Create a domain with Administration Server and 2 managed servers (MS1 and MS2 as examples).
  2. Create a cluster and add the two managed servers created in step 1.
  3. Create a Machine and associate the 3 previously created servers to it.
  4. Start Admin Server
  5. Login into Administration console and navigate to the following location: Environment -> Clusters -> ClusterName -> Migration.
  6. Locate the dropdown Migration Basis and change its value to Consensus.
  7. Save changes.
  8. Navigate to the following location to create a JMS Server, targeted to MS1: Environment -> Services -> Messaging -> JMS Servers.
  9. Create a new JMS Server by clicking on new.
    1. Create a File store and target the File store to the Migratable target (MS1). This will request a physical path where the filestore will be stored.
    2. Once the File Store gets created, select the newly created filestore as the Persistent Store for the JMS server. Later, select from the drop down, the MS1 (migratable) option as target for the newly created JMS Server.
    3. Click on finish to finalize the JMS Server creation.
  10. Navigate to Environment -> MigratableTargets.
  11. Select the migratable target MS1 and navigate to tab Configuration -> General
    If you choose Database in step 6, you need to have 'Database' configured at your end. If this is not in place, an exception like the one below will be thrown:

    The scripts are placed in $ORACLE_HOME/user_projects/domains/ServiceMigration/bin/service_migration. When or are specified in the console, the scripts fail to run and the service migration fails. However, the same script works as expected when run as java weblogic.WLST




    To view full details, sign in with your My Oracle Support account.

    Don't have a My Oracle Support account? Click to get started!

    In this Document

    My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.