Pages

Thursday, February 26, 2015

Error Running wsadmin.sh

I've been making extensive use of wsadmin.sh as part of scripted WebSphere application installs to virtual machines, and today a script which I had written a long time ago started to throw the following error:

com.ibm.websphere.management.exception.AdminException: ADMA0043E: /tmp/app9215861615159415312.ear does not exist for installation.

I didn't find any conclusive solution to the error on the web although some suggested there was a mismatch in the location of the temp folder. I changed the websphere variable (Environment > Websphere variables) from

WAS_TEMP_DIR = ${USER_INSTALL_ROOT}/temp

to

WAS_TEMP_DIR = /tmp

Restarted the server and the problem went away. I have no idea why this worked before, but I guess it's fixed now.