Skip to content

Why does Local WAR Upload and Redeploy fail when the application staging mode is explicitly set to stage or nostage? #136

Open

Description

@LeeJingu01

Hello,

I am testing a deployment workflow using WebLogic Remote Console where an application is initially deployed from a deployment source located on a Linux server, and later redeployed using a modified WAR file from a local PC.

During testing, I noticed different behavior depending on the application's Staging Mode.

I tested this with WebLogic Remote Console 3.0.4 and 3.0.5, and the same behavior occurs in both versions.

Test Scenario

The application is initially deployed using a deployment source located on the Linux server.

For example:

Linux Server

webapp/
├── index.jsp
└── WEB-INF/
├── web.xml
└── weblogic.xml

After the initial deployment, I recreate the same application structure on my local PC, modify files such as index.jsp, and package the application as a WAR file.

Local PC

webapp/
├── index.jsp
└── WEB-INF/
├── web.xml
└── weblogic.xml

    ↓

webapp.war

Then, in Remote Console, I select the existing application and use:

Image
Update/Redeploy
→ Redeploy - Deployment Source and Plan on Local Machine

In other words, I am attempting to upload a modified WAR from the local PC and redeploy the existing application.

Test Results

The result depends on the Staging Mode that was configured when the application was initially deployed.

Application Staging Mode Local WAR Upload and Redeploy
default Success
stage Failure
nostage Failure

When the application is explicitly configured with stage, Remote Console reports an error similar to:

Image

When the application is configured with nostage, the same type of error occurs:

Image

However, when the application staging mode is set to default, uploading and redeploying the same local WAR succeeds.

This behavior is reproducible in both Remote Console 3.0.4 and 3.0.5.

My Understanding

Based on the Oracle WebLogic documentation, my understanding is that stage and nostage determine how the deployment source is made available to the target servers.

With stage, the Administration Server copies the deployment source to the target server's staging directory.

With nostage, the target servers directly access the configured deployment source.

My understanding is also that using stage or nostage does not, by itself, prevent an application from being redeployed.

Since Remote Console officially provides the following operation:

Redeploy - Deployment Source and Plan on Local Machine

I expected the Local WAR Upload and Redeploy operation to work conceptually as follows:

Existing AppDeployment
├── Name
├── Targets
└── StagingMode = stage / nostage
↓
Existing settings remain

New local WAR
↓
Upload to AdminServer
↓
Redeploy

In other words, uploading a new WAR from the local machine does not appear to require changing AppDeployment.StagingMode.

I expected only the application source to be replaced while the existing staging mode remained unchanged.

For example:

StagingMode = stage
→ Redeploy using a new WAR
→ StagingMode remains stage

StagingMode = nostage
→ Redeploy using a new WAR
→ StagingMode remains nostage

Another point that makes this behavior unclear to me is the default case.

When the application staging mode is default, the target server's default staging mode is used. Therefore, if the target is a Managed Server whose default staging mode is stage, the application may effectively still use staged deployment.

However, Local WAR Upload and Redeploy succeeds when the application-level value is default, while it fails when stage is explicitly configured.

Therefore, it does not appear that the actual use of staged deployment itself is what prevents the Local WAR redeployment.

Questions

Could you please clarify the following?

  1. Is it expected behavior for Redeploy - Deployment Source and Plan on Local Machine to reject an application when its application-level StagingMode is explicitly configured as stage or nostage?

  2. If this behavior is intentional, what is the technical reason that default is allowed while explicit stage or nostage is rejected?

  3. My understanding is that Local WAR redeployment does not change the existing StagingMode. Is there another WebLogic deployment restriction that prevents replacing the application source when an explicit staging mode is configured?

  4. Is there any official documentation or Known Issue describing this behavior?

  5. For a workflow where an application is initially deployed from a Linux server and later repeatedly redeployed using WAR files created on a developer's local PC through Remote Console, is using StagingMode=default the recommended configuration, or is there another recommended deployment approach?

As a workaround, I have confirmed that keeping the application staging mode as default allows Local WAR Upload and Redeploy to complete successfully.

I would like to understand whether this is an intentional Remote Console limitation, a WebLogic Server deployment restriction, or an issue in Remote Console.

Thank you.

Activity

  1. TheFrogPad commented on Oct 16, 2026

    @TheFrogPad
    Member

    So deployment is a complicated space with numerous options and has undergone changes based on reported issues over time and I'm personally not an expert on deployments. My suggestion would be to open an SR so the support team can help answer and draw on a larger knowledge base to help answer/resolve your questions.

    Based on what I'm seeing, when uploading a new archive and redeploying with the app staging mode set, the rejection is because the staging mode for the app cannot be changed since the uploaded archive is replacing the existing deployment (i.e. perform a remove/add instead). If the existing deployment on the admin server can be updated in place by a separate action, then only a redeploy is needed to be performed. As Is said, the options can be numerous...

    An app with only the defaulted/unset staging mode will go through for upload and redeploy, but the deployment machinery may run into problems based on the actual staging modes and the targeting of the app. The remote console is logically the middle man here by leveraging the rest api that interacts with the admin server, as the admin server is the entity updating the config and coordinating the deployment across the servers in the domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions