AppAlreadyExistsException when attempting to deploy a portlet

Technote (troubleshooting)


Problem

When you attempt to deploy a portlet you have previously uninstalled in WebSphere Portal, the deployment may fail with the errors com.ibm.wps.command.applications.AppAlreadyExistsException and com.ibm.wps.pe.mgr.exceptions.DuplicateAppException.

Symptom

If you are deploying via the admin console, you may see these errors in the browser:

=========================

EJPPF0181E: Error occurred. The id=MyApplication.webmod already exists for stored standard portlet application MyApplication in the XML element portlet-app MyApplication.war.

com.ibm.wps.command.applications.AppAlreadyExistsException: EJPPF0181E: Error occurred. The id=MyApplication.webmod already exists for stored standard portlet application MyApplication in the XML element portlet-app MyApplication.war.

WrappedException is:

com.ibm.wps.pe.mgr.exceptions.DuplicateAppException: EJPPF0181E: Error occurred. The id=MyApplication.webmod already exists for stored standard portlet application MyApplication in the XML element portlet-app MyApplication.war.

=========================

Cause

A remnant of the application remains in the Portal database and this prevents the app from reinstalling correctly.

Resolving the problem

There are two ways to workaround/resolve the problem:

1. Rename the portlet-app ID in portlet.xml within the WAR file to something unique. This will allow you to workaround the problem and deploy your application.

or

2. Manually remove the entries from the database.

IMPORTANT: Use caution when editing the Portal database and take backups of whatever tables you edit.

- The relevant tables to check are in the RELEASE domain and are:

WEB_MOD
WEB_MOD_UATTR
SERV_DESC
SERV_DESC_MAD
SERV_DESC_DD
SERV_DESC_PREF
SERV_DESC_LOD
PORT_DESC
PORT_DESC_LOD
PORT_DESC_DD
PORT_DESC_PREF

- In the error message, an ID is referenced: "The id=MyApplication.webmod already exists....". Check these tables for any reference to this ID. Generally it will be in the WEB_MOD table, but could also be in other tables.

- Remove any rows from the tables that contain this ID.

- Reattempt application deployment.



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Portal
Installation & Configuration

Software version:

6.1, 7.0

Operating system(s):

AIX, IBM i, Linux, Solaris, Windows

Reference #:

1589423

Modified date:

2013-03-18

Translate my page

Machine Translation

Content navigation