IBM Support

Error "undefined variable: WAS_INSTALL_ROOT" in WPG server logs

Troubleshooting


Problem

Problem(Abstract) The following exception seen in the WPG server logs when starting the WPG server first time on WAS855. [2/4/15 7:59:00:429 UTC] 00000072 R UOW= source=SystemErr org=IBM prod=WebSphere component=Application Server thread=[WebContainer : 1] java.lang.IllegalArgumentException: undefined variable: WAS_INSTALL_ROOT [2/4/15 7:59:00:445 UTC] 00000072 O UOW= source=SystemOut org=IBM prod=WebSphere component=Application Server thread=[WebContainer : 1] org.eclipse.help.was.cfg.ConfigException: undefined variable: WAS_INSTALL_ROOT [2/4/15 7:59:00:548 UTC] 00000072 E UOW=null source=com.ibm.ws.wswebcontainer.servlet.ServletWrapper org=IBM prod=WebSphere component=Application Server thread=[WebContainer : 1] Deregister the mbean because of uncaught init() exception thrown by servlet InitServlet: javax.servlet.ServletException: undefined variable: WAS_INSTALL_ROOT at org.eclipse.help.was.InitServlet.init(InitServlet.java:102) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:235) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:342) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:466) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:526) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:673) at com.ibm._jsp._index._jspService(com.ibm._jsp._index:71) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)

Resolving The Problem

Here is the procedure to verify the value for WAS_INSTALL_ROOT environment variable :

1. Logon to IBM® WebSphere Admin Console.

2. Browse to Environment section.

3. Choose WebSphere Variables.

4. Verify whether the value for variable "WAS_INSTALL_ROOT" exists.

5. The value for variable "WAS_INSTALL_ROOT" should point to WAS855 home directory.

Example:

WAS_INSTALL_ROOT= C:\Program Files\IBM\WebSphere\AppServer

6. Restart the WPG servers.

[{"Product":{"code":"SSDKJ8","label":"WebSphere Partner Gateway Enterprise Edition"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.2.1.4","Edition":"Advanced;Enterprise","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

WPG

Document Information

Modified date:
16 June 2018

UID

swg21701459