Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7435795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:08:08+00:00 2026-05-29T10:08:08+00:00

I have an application named HelloWorld installed, yet not deployed. Its state is Installed

  • 0

I have an application named HelloWorld installed, yet not deployed. Its state is Installed, like such:

enter image description here

When I’m trying to deploy it on target server, say AdminServer, it results in creating a new application named helloworld.war which is deployed on AdminServer whereas the original HelloWorld app remains in Installed state. App helloworld.war is the one that is in state Active… Snapshot:

enter image description here

Here’s the code I use to deploy the already installed app:

File warFilePath = new File("c:/helloworld.war"); // war file path on AdminServer machine

Target adminServerTarget = deployManager.getTarget("AdminServer");
WebLogicTargetModuleID targetModuleID = deployManager.createTargetModuleID(
        "HelloWorld", ModuleType.WAR, adminServerTarget);
WebLogicTargetModuleID[] targetModuleIDs = new WebLogicTargetModuleID[1];
targetModuleIDs[0] = targetModuleID;

ProgressObject redeployProcessObject =
    deployManager.redeploy(targetModuleIDs, warFilePath, null /*no deployment plan*/ );

There are two surprising facts, though.

First, when running this code on WebLogic versions 9.x to 10.3.3 it works great.

Second, when running this code from WLST prompt, with jython it also works great even on version 10.3.4 (I can attach the exact commands although they’re the same as java except for syntactic adoptions)…

My question is, how do I make it work also on 10.3.4?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:08:08+00:00Added an answer on May 29, 2026 at 10:08 am

    I should have thought that no one would answer this question… 🙂

    Anyway, I found a solution. I should have used deploy instead of redeploy, with a DeploymentOptions of which name is the existing application name (HelloWorld):

          ProgressObject redeployProcessObject = null;
          try {
              final DeploymentOptions options = new DeploymentOptions();
              options.setName(applicationName);
              redeployProcessObject = deployManager.deploy(
                  targetModuleIDs, warFilePath, null /*no deployment plan*/, options);
          } catch (TargetException e) {
              final String message =
                      String.format("Deployment of application %s on target %s failed: %s",
                              applicationName, allTargets, e.getMessage());
              _log.error(message, e);
          }
    

    According to the docs, redeploy only replaces the current application files and plan with an updated version. Whereas deploy distributes the files (from the AdminServer) to the target(s) and starts the application.

    Also, after digging deep in WebLogic’s jython scripts and jars I found out that this is exactly what’s done when invoking redeploy in the WLST.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that uses CoreData. I previously had a class named Marker
Hokay so I have an application where I need some IPC... I'm thinking named
I have one grails application.In that I have one model class named Book. From
In the root of my application I have 5 named slots (layers) that I
I have created a file named MyFile.db using SQLite3 from my C#.net application. This
If I have a console application containing the class public class HelloWorld { public
I have a blank HelloWorld Application: package tutorials.TestReceivers; import android.app.Activity; import android.os.Bundle; public class
I am trying to deploy a helloworld site from my local machine to a
I have two .NET applications that talk to each other over a named pipe.
Have Log4Net configured in our application to use a date stamped name and a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.