Skip to Content

How to uninstall package(s) on NetWeaver AS Java ?

Dear Experts,

today I faced the following big challenge - I had to remove a few packages from NetWeaver AS Java 7.3 EHP 1.

On 7.0, this can easily be done with both JSPM and SDM, but those tools are dismissed since 7.1...

For installing those packages, we used SUM, but SUM is unable to undeploy them.

I found an article, that it is possible to undeploy packages with the telnet undeploy command, though this didn't

work for me:

>undeploy list=/usr/sap/EJ7/J02/j2ee/console/undeploy.xml

Undeploy settings:
on_undeploy_error=stop
on_prerequisite_error=stop
workflow=normal

If there is an offline undeployment, Telnet connection to host may be lost, but the result can be seen us ing [get_result] command

Processing undeployment operation, wait...

===== PROGRESS START =====


===== UNDEPLOY RESULT =====

type: [SDA], name: [SAP-WEC-FRW], vendor: [sap.com], location: [null], version: [null], status: [NotDe ployed], description: [There is no component which corresponds to the specified undeployment item 'sap.co m_SAP-WEC-FRW'.]

type: [SDA], name: [XLSO-WEC], vendor: [sap.com], location: [null], version: [null], status: [NotDeplo yed], description: [There is no component which corresponds to the specified undeployment item 'sap.com_X LSO-WEC'.]

type: [SDA], name: [SAP-WEC], vendor: [sap.com], location: [null], version: [null], status: [NotDeploy ed], description: [There is no component which corresponds to the specified undeployment item 'sap.com_SA P-WEC'.]

===== END UNDEPLOY RESULT =====

===== Summary - Undeploy Result - Start =====
------------------------
Type | Status : Count
------------------------
> SCA(s)
> SDA(s)
- [NotDeployed] : [3]
------------------------
------------------------
Type | Status : Id
------------------------
> SCA(s)
> SDA(s)
- [NotDeployed] : sap.com_SAP-WEC-FRW, sap.com_XLSO-WEC, sap.com_SAP-WEC,
------------------------
===== Summary - Undeploy Result - End =====

>undeploy list=/usr/sap/EJ7/J02/j2ee/console/undeploy.xml on_undeploy_error=skip_depending on_prerequisit e_error=skip_depending

Undeploy settings:
on_undeploy_error=skip_depending
on_prerequisite_error=skip_depending
workflow=normal

If there is an offline undeployment, Telnet connection to host may be lost, but the result can be seen us ing [get_result] command

Processing undeployment operation, wait...

===== PROGRESS START =====


===== UNDEPLOY RESULT =====

type: [SDA], name: [SAP-WEC-FRW], vendor: [sap.com], location: [null], version: [null], status: [NotDe ployed], description: [There is no component which corresponds to the specified undeployment item 'sap.co m_SAP-WEC-FRW'.]

type: [SDA], name: [XLSO-WEC], vendor: [sap.com], location: [null], version: [null], status: [NotDeplo yed], description: [There is no component which corresponds to the specified undeployment item 'sap.com_X LSO-WEC'.]

type: [SDA], name: [SAP-WEC], vendor: [sap.com], location: [null], version: [null], status: [NotDeploy ed], description: [There is no component which corresponds to the specified undeployment item 'sap.com_SA P-WEC'.]

===== END UNDEPLOY RESULT =====

===== Summary - Undeploy Result - Start =====
------------------------
Type | Status : Count
------------------------
> SCA(s)
> SDA(s)
- [NotDeployed] : [3]
------------------------
------------------------
Type | Status : Id
------------------------
> SCA(s)
> SDA(s)
- [NotDeployed] : sap.com_SAP-WEC-FRW, sap.com_XLSO-WEC, sap.com_SAP-WEC,
------------------------
===== Summary - Undeploy Result - End =====

vi undeploy.xml

"undeploy.xml" [New file]

<Components>

<DevelopmentComponentLine vendor="sap.com" name="SAP-WEC"/>

<DevelopmentComponentLine vendor="sap.com" name="SAP-WEC-FRW"/>

<DevelopmentComponentLine vendor="sap.com" name="XLSO-WEC"/>

</Components>

I have also tried specifying only 1 package, like:

>undeploy XLSO-WEC

but it didn't work either... Many thanks for any possible ideas, suggestions, hints...

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 22, 2014 at 12:23 AM

    Hi Symon,

    By using the below method, you should be able to uninstall the software component archives (SCAs) on telnet console. First, check the names of applications (development components) installed with SAP-WEC, SAP-WEC-FRW and XLSO-WEC packages.

    You can find these details in System Information: Components Info in NetWeaver Administrator.

    Open a command prompt,

    telnet localhost 50008

    Logon as Administrator and try the following command:

    undeploy vendor=sap.com name=<development component>

    For example:

    undeploy vendor=sap.com name=xapps~xmii~ear

    BR,

    Alper Somuncu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 22, 2014 at 09:42 AM

    Hi Symon,

    That's right. You need to remove all the DCs and execute undeploy command for the packages. You can also handle it by creating the xml file, personally I prefer to do it manually.

    BR,

    Alper Somuncu

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.