ADMU3007E websphere error

While starting the server if you are getting below error in log file.

[2/19/10 1:37:48:477 GMT+05:30] 00000000 AdminTool     A   ADMU3100I: Reading configuration for server: server1
[2/19/10 1:37:55:633 GMT+05:30] 00000000 WsServerLaunc E   ADMU3002E: Exception attempting to process server server1
[2/19/10 1:37:55:633 GMT+05:30] 00000000 WsServerLaunc E   ADMU3007E: Exception com.ibm.wsspi.runtime.variable.UndefinedVariableException: Undefined variable localhost_name
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:373)
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:382)
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:325)
at com.ibm.ws.management.connector.ConnectorHelper.initialize(ConnectorHelper.java:378)
at com.ibm.ws.management.connector.ConnectorHelper.<init>(ConnectorHelper.java:185)
at com.ibm.ws.management.tools.WsServerLauncher.serverIsRunning(WsServerLauncher.java:499)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:314)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:269)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:260)

[2/19/10 1:37:56:570 GMT+05:30] 00000000 AdminTool     E   ADMU0111E: Program exiting with error: com.ibm.wsspi.runtime.variable.UndefinedVariableException: Undefined variable localhost_name
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:373)
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:382)
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:325)
at com.ibm.ws.management.connector.ConnectorHelper.initialize(ConnectorHelper.java:378)
at com.ibm.ws.management.connector.ConnectorHelper.<init>(ConnectorHelper.java:185)
at com.ibm.ws.management.tools.WsServerLauncher.serverIsRunning(WsServerLauncher.java:499)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:314)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:269)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:260)

[2/19/10 1:37:56:570 GMT+05:30] 00000000 AdminTool     A   ADMU0111E: Program exiting with error: com.ibm.wsspi.runtime.variable.UndefinedVariableException: Undefined variable localhost_name
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:373)
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:382)
at com.ibm.ws.runtime.component.VariableMapImpl.expand(VariableMapImpl.java:325)
at com.ibm.ws.management.connector.ConnectorHelper.initialize(ConnectorHelper.java:378)
at com.ibm.ws.management.connector.ConnectorHelper.<init>(ConnectorHelper.java:185)
at com.ibm.ws.management.tools.WsServerLauncher.serverIsRunning(WsServerLauncher.java:499)
at com.ibm.ws.management.tools.WsServerLauncher.runTool(WsServerLauncher.java:314)
at com.ibm.ws.management.tools.AdminTool.executeUtility(AdminTool.java:269)
at com.ibm.ws.management.tools.WsServerController.executeUtilityOnWindows(WsServerController.java:136)
at com.ibm.ws.management.tools.WsServerLauncher.main(WsServerLauncher.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:260)

 

Resolving the problem

Manually create the missing objects in the WebSphere configuration.

1. Login to the Admin Console
2. Navigate to Environment => WebSphere Variables
3. Click New to create a new environment variable.
4. For Name, type in localhost_name
5. For Value, type in the 127.0.0.1
6. Click ‘OK’ to create the variable.

 

If above does not solve your problem then you can refer to Newly created additional Portal cluster member fails to start correctly

 

or create a SR with IBM to solve the issue.

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

8 Responses

  1. Lydia says:

    Undefined variable localhost_name

    How can you open the admin console when the server wont start? any other ideas for a workaround?
    thanks.

    • Lydia says:

      Ok, for anyone else out there in the ethers that comes across this problem – if you are doing a fresh Websphere Appserver install on a fresh Linux build, you will need to perform the following steps:
      1) Logon as: root
      2) Update HOSTNAME: locate and change the following
      # cd /etc
      # vi HOSTNAME (note upper case)
      hostname.your.com (replace hostname with your hostname)
      3)Update hosts file: locate and change the following
      # vi hosts
      127.0.0.1 hostname.your.com hostname
      (replace both hostnames with your hostname)

      To do this AFTER the fact, you might change it by following these instructions:
      http://publib.boulder.ibm.com/infocenter/tsmscv13/v1r0m0/index.jsp?topic=/com.ibm.mconsole.doc/fqg0_t_adding_the_host_name_to_was.html

      Hope that helps! it took me 1.5 days to figure this out! When I read the website above, it dawned on me that I never actually changed the hostnames after I installed Linux.
      Lydia

      • admin says:

        Nice steps Lydia. It will surely help someone.
        Appreciate it!

      • gdelory says:

        Thanks Lydia ! You saved me a lot of time, though I had to start again the install creating the /etc/HOSTNAME file before installing WAS 8, because the “after the fact” ibm’s instructions didn’t work for me.

        Guillaume

  2. vijay says:

    com ibm wsspi runtime variable recursivevariableexception:

    Solution for this is, you might have created 2 websphere variables by the same name in a different scopes. Click on Websphere variables, list all the variables and delete the one which you don’t require. This error will go away.

  3. udung says:

    very helpful
    thanks for shared

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.