How to undeploy retired applications?

Hi there! I'm new to Weblogic Server and to this forum as well.
I am redeploying an application without any problem but before redeploying a new version I need to undeploy manually (through command line or webconsole) the old version of the app. My question is: how can the retired versions be deleted automatically when it is not active anymore? Do I need to create a script for that?
Secondly, I don't need to keep all deployed versions of the app. How can I avoid it? Is it because I use the -upload action in the command:
java -cp C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar weblogic.Deployer -adminurl t3://192.168.100.221:7001 -user weblogic -password weblogic -redeploy -name App -source "C:\Users\516230\.jenkins\jobs\PGU PRODUCTIU\workspace\UniVic.ear" -targets AdminServer -upload
Thanks!

Good Question and please refer the below links may narrow down the issue,
http://www.coderanch.com/t/64892/BEA-Weblogic/Undeployment-Web-App-EJB
If you want to do undeploy via Ant script refer below sample code for the same,
http://stackoverflow.com/questions/1212111/how-to-undeploy-the-weblogic-application-using-ant-task
Regard,
Ramprakash Arun
Industry Vertical
Please Mark Helpful / Correct Answer if so

Similar Messages

  • How to undeploy BPM application from Weblogic server

    Hi everyone,
    I try to undeploy some bpm application on the weblogic, using the weblogic admin console, under the deployments section, check the bpm application and click the delete button, however, when the server restart, I still see the soa server loading the bpm application, what is the correct way to uninstall the bpm application?
    Please advise.

    Hi
    Its preferable and better to use em (enterprise manager console) to UnDeploy any SOA/BPEL applications. Infact this may be the only way you should undeploy. The reason is when you undeploy from EM console, first of all it removes all the instances from the SOA_INFRA database also and also from the deployed-composites under the soa domain root folder.
    Em Console URL: http://yourhost:yourport/em and use the same username/pwd that you use for normal admin console.
    If you still see the composites, check the deployed-composites folder under the domain root folder. And delete from there. Note that, all the SOA/BPEL composites are stored in the soa_infra database also.
    Thanks
    Ravi Jegga

  • How to undeploy/delete application

    Looking for most convenient way to delete application.
    So far only way I know - manually delete from file system and config.xml.
    hope some core optimal solution available J

    Yes,
    in 6.1 it is possible to delete an application via console.
    Just right click on the deployment and use the delete option to delete the app
    Manoj wrote:
    I do not think there is any delete button on the console . Is it ??
    prasen <[email protected]> wrote:
    What is the problem with "delete" button in console ?
    prasen
    Tao Xie wrote:
    It's a known usability issue. currently no better way. 6.1 should solvethis
    issue.
    "Sergey Pomytkin" <[email protected]> wrote in message
    news:3b4a426e$[email protected]..
    Looking for most convenient way to delete application.
    So far only way I know - manually delete from file system and config.xml.
    hope some core optimal solution available J

  • Please help me to undeploy web applications without starting weblogic.

    My colleague deployed his web application to my weblogic domain. However, the domain cannot be started after deployment. How to undeploy that application without starting the weblogic?
    I use weblogic 10.3.3. His application uses servlet and jsp and tests that application in weblogic 10.3.2

    Delete the application from the deploy directory. The domains/base_domain/autodeploy is the directory for auto deployed applications, which get deployed when server is started. Or, the domain's InstallDir directory.
    Edited by: dvohra16 on Jan 22, 2011 4:43 PM

  • How to delete an application

    My colleague deployed his web application to my weblogic domain (10.3.3). However, the domain cannot be started after deployment. How to undeploy that application without starting the weblogic?
    ==========================================================
    ####<Jan 21, 2011 11:19:03 AM PST> <Critical> <WebLogicServer> <WIN-IT8WDLG81KH> <examplesServer> <Main Thread> <<WLS Kernel>> <> <> <1295637543702> <BEA-000386> <Server subsystem failed. Reason: java.lang.NullPointerException
    java.lang.NullPointerException
         at weblogic.deploy.internal.adminserver.DeploymentManager.getPendingDeploymentsForEditLockOwner(DeploymentManager.java:360)
         at weblogic.management.provider.internal.EditAccessImpl.removePendingUpdateTasks(EditAccessImpl.java:560)
         at weblogic.management.provider.internal.EditAccessImpl.undoUnsavedChanges(EditAccessImpl.java:555)
         at weblogic.management.provider.internal.EditAccessImpl.acquireLock(EditAccessImpl.java:264)
         at weblogic.management.provider.internal.EditAccessImpl.startEdit(EditAccessImpl.java:289)
         at weblogic.management.deploy.ApplicationsDirPoller.removeStagedFilesForAppsRemovedSinceLastShutdown(ApplicationsDirPoller.java:426)
         at weblogic.management.deploy.internal.DeploymentServerService.initializeApplicationPoller(DeploymentServerService.java:274)
         at weblogic.management.deploy.internal.DeploymentServerService.startAdminServerDeploymentService(DeploymentServerService.java:233)
         at weblogic.management.deploy.internal.DeploymentServerService.init(DeploymentServerService.java:154)
         at weblogic.management.deploy.internal.DeploymentPreStandbyServerService.start(DeploymentPreStandbyServerService.java:26)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    ####<Jan 21, 2011 11:19:03 AM PST> <Notice> <WebLogicServer> <WIN-IT8WDLG81KH> <examplesServer> <Main Thread> <<WLS Kernel>> <> <> <1295637543749> <BEA-000365> <Server state changed to FAILED>
    ####<Jan 21, 2011 11:19:03 AM PST> <Error> <WebLogicServer> <WIN-IT8WDLG81KH> <examplesServer> <Main Thread> <<WLS Kernel>> <> <> <1295637543749> <BEA-000383> <A critical service failed. The server will shut itself down>

    Hi YE,
    You can just remove the "app-deployment" tags from the config.xml file for the application you want to remove as show below.
    Example:
    <app-deployment>
    <name>AdministradorEscaner</name>
    <target>creadev01</target>
    <module-type>war</module-type>
    <source-path>/AD/herramientas/apps/intranet/administradorEscaner/AdministradorEscaner</source-path>
    <deployment-order>100</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    .However make sure that you keep a backup of the config.xml file before doing any changes it.
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Come, Join Us and Experience The Magic…

  • How to undeploy (delete) a Java application

    Hi all,
    i have deployed using the SAP Netweaver developer studio and the SDM tool a specific Java application.
    As i delete it on my PC i can not re-deploy it because the system tells me that there is already a application with the same name.
    How can i delete it directly on the server using for example the deploytool tool or another tool ?
    Thank in advance,
    Eric.

    Hello,
      You can also undeploy the application using the SDM tool. Launch the tool by running the remotegui from your usr\sap\SID\JC00\SDM\program. enter your sdm password and then go to the undeployment tab. Pick the application you want to undeploy and add it to the right hand pane and follow the steps in the wizard
    Regards
    Abdul

  • How to undeploy application on the PI 7.1 Java Engine

    Hi everyone,
    I have a very simple and stupid question: how can I undeploy the JEE Application on a PI 7.1 server?
    I mean, I've installed a JEE Application on the PI 7.1 server through JSPM. I don't use this application any longer and want to just remove it from the server. But I didn't find out how can I do this.
    Thanks a lot in advance
    with best regards
    Xiang
    Edited by: Xiang Zhang on Nov 10, 2008 10:36 AM

    Hi Prateek,
    thanks a lot for your reply. It almost solved the problem. Do you know how can use other tools to undeploy an application. I mean some tools, which have been delivered by SAP with PI 7.1, like NWA, or something else.
    with regards
    Xiang

  • Problem with again and again returned retired application to distribution process

    Hi,
    I have strange problem. In my SCCM enviroment, I have retired application (Flash Player). For time to time, this application is appear on some Distribution Points with status "In process". Application is not deployed. 
    Why it is still returning to distibution on DP? How to remove it pernamently?
    Thank you for answer.

    Probably I have found issue...
    I have found issue appear only on few DP's during system deployment. Next I have compared it with DP's where this issue not appear and found I have few DP's where "retired" application is missing. So, when system deployment process starting, and in TS is
    task where is defined installaltion of this application, DP trying download missing content. Becuse it is "retired" application, thi sprocess is still in "In process" state. 
    Now I need just only check TS where retired application appear and exchange it with newer version.

  • How to install .exe applications and the java on m...

    hi ! sorry if this has already been discussed but i wanted to know ~~~ how to install .exe applications and the java on my n9 ~~~ ... because i wanted to use plenty of other apps which are not supported  but these 2 would help fix the issue

    Is it stil not possible to install java applications on N9?
    Files containing JAD and JAR-ending in the file name.
    I am not familiar with Nokia N9 so I ask even if I suppose that JAR and JAD files are not able to install on a Nokia N9.
    Nokia 808 again (delight Belle), Nokia E7 and X7 ( again, all on Delight Belle...after some time on Nokia Lumia 925 (retired), 1020 (not that great)and Lumia 820 (Replaced my router at home, great for internet sharing).., N9 The best device ever (use it as much as Lumia 1020), Nokia 700 (Sport Phone/My Love :-) ) Nokia 701, Nokia E6 (Should have a follow-up from Nokia among with larger screen, NFC, Autofocus), Lumia 800 (Retired After 6 weeks), -Sports Tracker-Nokia Internet Radio-Handy Safe-Skype-Bambuser-Screenshot app pro-fMobi-ComingNext-Manual TaskSwitcher-jagiTimer-Easy StopWatch-Boldbeast-Equalizer-Financial Calculator-WiMP Music-YTasks-Davi-Thumbnail Folders-BizCalendar-Tiny7-Situations-nn reeder-Sport Timer-CameraLover-CameraPro-GrabRadio-LiveScore-Poddi-Gravity-SkyFilesPro

  • Is there a nice way to undeploy / redeploy applications

    How does one undeploy / redeploy applications without cycling the server and editing config.xml?
    And is it safe to delete .../applications/.wl_temp_do_not_delete when the server is not running?

    I'll look into this.
         -Don
    Brian Russell wrote:
    >
    Hi Don,
    When I "Install or Update an Application / Please locate an .ear, .jar, or .war file to install:" I get:
    java.io.EOFException: Unexpected end of ZLIB input stream
    at java.util.zip.ZipFile$1.fill(ZipFile.java:212)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:133)
    at java.io.FilterInputStream.read(FilterInputStream.java:93)
    at weblogic.j2ee.Component.retrieveComponent(Component.java:77)
    at weblogic.j2ee.Component.<init>(Component.java:43)
    at weblogic.j2ee.WebAppComponent.<init>(WebAppComponent.java:29)
    at weblogic.j2ee.Application.deploy(Application.java:126)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:149)
    at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:127)
    at weblogic.j2ee.DeploymentListener.handleNotification(DeploymentListener.java:27)
    The original .ear is still open (Windows says "...sharing violation...in use..."), and the
    new version is NOT deployed (however a server stop / start works from this point).
    And what about UNdeploy? The "Deployed" checkbox does not appear to do anything
    when unchecked / Apply'd.
    Don Ferguson <[email protected]> wrote:
    Brian Russell wrote:
    How does one undeploy / redeploy applications without cycling the server and editing config.xml?
    And is it safe to delete .../applications/.wl_temp_do_not_delete when the server is not running?You should be able to copy ear/war/jar files in the applications directory,
    and the server will automatically deploy (or redeploy) them.
    -Don

  • How to install Adobe Application Manager?

    How to install Adobe Application Manager? I downloaded it, but can't install.
    Just purchased the CC for photographers.  Have been using Photoshop since version 3.
    I have been studying your support docs for several days and have no business messing around with something called, .gz files and installation logs. Totally unsuccessful "Updating" my CS6 or CS6 bridge or Extension Manager or the Adobe Support Advisor by the CC Desktop.
    Have no Photoshop CS6 because I followed your CC support instructions.
    Uninstalled my CS6 today so I can finish a job tomorrow.  Bad decision on my part because I can't reinstall it and am unable to correct
    this problem. 
    I was able to use CC to update LR, but am absolutely too afraid to touch it now.
    I have been waiting inline for Chat also, but the numbers ahead of me are going up.
    If someone in this Community forum can help me, it would be fabulous.
    Thanks very much.

    Uninstalled Creative Cloud.
    Downloaded it again - 4th time.
    Deleted a AAMDetect file from the Library/Internet Plug-ins
    Downloaded and installed Adobe App Manager and an icon for it is on my Desktop
    Installed Creative Cloud.
    OK.
    Now how do get my Photoshop CS6 back before I download Photoshop CC?
    CS6 is not listed in the available Apps in the CC Desktop.
    Support wait time right now is 2 hours by phone.
    After sitting on Chat yesterday only to see the people "waiting ahead of me" go from 17 to 18, I gave up.
    Please advise.
    Thanks again.

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

  • OIM11gR2 - How to migrate an Application Instance Form

    Hello,
    I'm trying to migrate an Application Instance Form from my Dev env to my QA env.
    My target system is SAP
    I performed the following steps in Dev:
    1. Installed and configured the SAP Connector (no problem here)
    2. Created a sandbox
    3. Created an Application Instance
    4. Created the Application Instance Form
    5. Ran a target reconciliation to confirm everything is working properly
    6. Exported the sandbox
    7. Published the sandbox
    8. Via Deployment Manager I exported all objects related to SAP (Resource object, Process Forms, Lookups etc.)
    In QA I did:
    9. Installed and configured the SAP Connector (no problem here)
    10. Via Deployment Manager I imported the objects related to SAP
    11. Imported the sandbox
    Problem:
    To my surprise, the Application Instance does not have a Form in the QA env.
    I had to create it manually by performing the following:
    12. Create a sandbox
    13. Open the Application Instance definition
    14. Click on create (to create a form)
    15. Entered the same name I used in my Dev environment
    16. Received an error message saying that the form already exists
    17. Entered a different name for the Form
    18. Saved
    19. Exported the sandbox (to import in Prd)
    20. Published the sandbox
    21. Ran a target reconciliation to confirm everything is working properly
    I tried to reproduce the problem with another (test) destination environment because I don't want to have the same problem when migrating to Prd.
    I repeated the steps 9,10,11 except that I imported the sandbox exported from QA (step 19) instead.
    The same problem: Application Instance definition has no Form attached to it in my test destination environment.
    If I try to create the form with the same name, it gives an error message saying it is already there.
    Is my procedure wrong?
    Is there an official procedure explaining how to migrate only Application Instance Form from one env to another?
    My env:
    OS: Windows 2008 R2 SP1
    OIM: 11gR2 BP7
    SAP connector: 9.1.2.2.0
    Thanks,
    Adr

    This is a bug: Bug:16027176
    Check the [Article ID 1515225.1] which proposes a workaround that might be useful in your case (it was not in mine).
    In short the workaround is:
    The following order should be observed to export :
    - IT Resource & Application instance in one xml
    - Request DataSet in another xml
    - SysAdmin Sandbox (the one defined while creating the Application Instance and the Form)
    - Identity URL Sandbox (defined while customizing the fields on the Form, in the Catalogue page)
    Adr

  • How to keep an application level object running with SunIDM?

    We are working on intergrate a gmail project with SunIDM. We need an application level object running with SunIDM so it will maintain a token generated from Gmail side. In anther servlet project, I had this object saved in the attribute of the ServletContext, then other session level servlet could share this attribute anytime. Is there a way to store attribute in Servlet Context and have it shared by different user session in SunIDM? I have been reading documents and searched this forum, haven't find any topics related how to maintain an application level object live. Hopefully that I can get some hint here.
    Thank you so much.

    Paul, Thank you so much for the further explaination. I don't think it will work since the token generated from gmail will expire every 24 hours.
    We are using the gdata library published from by gmail people, and I create a new UserService object and have it run in the application level. The UserService object will generate a token and renew it every 24 hours behind the scene. Here is how I implement it in my Servlet project:
    //to have a UserService object running at the application level:
    public class GmailUserService extends HttpServlet {
    public void init(ServletConfig config) throws ServletException{
    super.init();
    userService = new UserService(myApplication);
    config.getServletContext().setAttribute("gmailUserService", userService);
    //to access this UserService object from other servlet in each user session:
    UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
    Gmail will trigger an error if we create a new UserService object for each user. They recommend to have all the user to share one UserService object. I am looking for similar approach in SunIDM.
    Thank you again, Paul, for trying to help.

  • How to set up Application specific custom ogoff (sign-off) page.

    Hi,
    I'm using OracleAS 10.1.2.2
    Note 333638.1 shows us how do make a custom SSO login page to be application specific. This works.
    Now, I want to do a custom SSO logout (sign-out) page. Using the redirect method described does not seem to work. Please note that in our version 10.1.2.2, there is no default logout.jsp page in the /sso/jsp directory. To deploy a custom logout page, I would need to update the WWSS_LS_CONFIGURATION_INFO$ view.
    I was able to test a custom SSO logout.jsp page sucessfully. However, when I tried using a redirect_logout.jsp to make it application, it no longer works.
    Does anyone know or have any idea on how to deploy an application specific logout page? (i.e. only specific applications uses the custom logout page, otherwise go to the default one).
    Thanks.
    - Kevin

    Well,
    There are 5 choices to choose from on the page. In the description of the choices at the bottom of the page there are 7, and the two additional choices talk about having to first have registered the site with SSO. So...I'm interpreting that as meaning that other 2 possible choices would be displayed if the site is registered with SSO. That, plus the fact that the page which describes how to add the site to SSO seems to think that the SSO choices are displayed in the wizard.
    So, no, there's no "exact launguage" that says what the reason is for the choices not being displayed. Can you point me to some exact language that tells me how to get those choices displayed?

Maybe you are looking for

  • Missing words and letters in pop up alert windows and other spaces

    I have snow leopard and I have noticed that in many things this problem occurs. Example 1. Empty trash, you receive and alert pop up always asking if you want to delete or cancel right? Well there are two button under the explanation of what emptying

  • Opening 16-bit TIFF in LabVIEW Pro

    16-bit images are captured from a PerkinElmer digital panel in an x-ray system. LabVIEW will not open these saved TIFF images directly. If images are first opened using ImageJ and then re-saved as a TIFF image LabVIEW can then open them. The images h

  • JAI and color palette

    Hi, I�m working with JAI, and I would like to know how could I change and manipulate the color palette of an image. I�m working with RenderedOp objects. I think that this could be done using ColorModel or Sample model classes, but i dont know how. I

  • Itunes 10.5 64 bit will not install.  I am getting the following error message.

    Anyone with the same issue please help.

  • Cant get disk to eject

    Please help. I put a cd in my imac and its making a noise likes its loading and now i cant get it to eject.