wps.ear application fails to update when running wsadmin command

Technote (troubleshooting)


Problem

When using the following wsadmin command to update a Portal theme, a NoSuchElementException is thrown:


./wsadmin.sh -user wpadmin -password <password> -c '$AdminApp update wps app
{-operation update -contents /opt/IBM/WebSphere/AppServer/profiles/bin/wps.ear -nodeployejb}'


Symptom

The following exception occurs:


Caused by: com.ibm.wsspi.management.bla.op.OpExecutionException:
Exception create contexts for asset:java.util.NoSuchElementException
at
com.ibm.ws.management.bla.model.BLAOutImpl.findContext(BLAOutImpl.java:2
01)
at
com.ibm.ws.management.bla.model.BLAOutFactoryImpl.getBLAOut(BLAOutFactor
yImpl.java:41)
at
com.ibm.ws.management.bla.steps.StepSaveBLA.getBLAOut(StepSaveBLA.java:2
63)
at
com.ibm.ws.management.bla.steps.StepSaveBLA.execute(StepSaveBLA.java:215
)
at
com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151)..

Cause

This exception occurs because specific files are missing from the config folder.

Diagnosing the problem

Above the error shows there is something wrong with business level application entry creation. After looking in to the configuration we see all the applications including the wps.ear file, exist under
/opt/IBM/WebSphere/AppServer/profiles/config/cells/<cell_name>/applications directory.

But when we look under blas (business level applications) and cus (composition units) directories

/opt/IBM/WebSphere/AppServer/profiles/config/cells/<cell_name>/blas
/opt/IBM/WebSphere/AppServer/profiles/config/cells/<cell_name>/cus

We see the wps.ear folder is missing


Resolving the problem

Basically there are missing folders/files which the wsadmin command is looking for.

Specifically the wps folder is missing from blas and cus:

../wps/bver/BASE which has bla.xml
../wps/cver/BASE which then has 3 xml files (controlOpDefs.xml, cu.xml,
cu-ref.xml)

The quickest solution is to copy the wps folder from a non-upgraded Portal system.

Once this is done, re-run the wsadmin update command.



Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Portal

Software version:

6.1, 6.1.5, 7.0

Operating system(s):

AIX, HP-UX, IBM i, Linux, Solaris, Windows, i5/OS, z/OS

Reference #:

1496456

Modified date:

2013-07-10

Translate my page

Machine Translation

Content navigation