IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this community and its apps will no longer be available. More details available on our FAQ.
Topic
  • 16 replies
  • Latest Post - ‏2015-08-12T18:05:58Z by anantharam
SystemAdmin
SystemAdmin
37421 Posts

Pinned topic Error starting webshpere server using VMware virtual Image

‏2011-06-07T06:14:23Z |
Hi ,
I have Installed WAS 7 on my linux server and then i have created a VMWare image for that machine and now I have installed this VM machine on my windows machine. But when I am starting my websphere server I am getting following error ..Please let me know if I am missing any configuration

I am attaching the error log
Updated on 2013-01-18T12:06:07Z at 2013-01-18T12:06:07Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T06:57:26Z  
    Hi,

    Kindly make sure from HOST name on this VM as there problem in getting virtual host or local host!

    There is a problem to get either virtual host or local host

    //Ahmed
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T10:30:36Z  
    Hi,

    Kindly make sure from HOST name on this VM as there problem in getting virtual host or local host!

    There is a problem to get either virtual host or local host

    //Ahmed
    Hi Ahmed ,

    Thanks for your reply. when i Type command hostname in my installed vm image i get this hostname "26541-CentOS-Kshiteej.perficient.com" while the hostname of the machine from where i created the image is "denvmg116.perficient.com"

    This is my scenario
    1) I had a linux machine with hostname "denvmg116.perficient.com" where we installed WAS7 and db2 and was server is starting without any problem
    2) Now we created an image out of it
    3) Installed that image on our local windows machine through vmware
    4) Now in installed image when i type hostname i get this hostname "26541-CentOS-Kshiteej.perficient.com"
    5) Here when i am starting my websphere application server then i am getting this error

    so please suggest me do i need to change values in my websphere installation folder for host everywhere and change it to "26541-CentOS-Kshiteej.perficient.com" and if so where all

    or i need to change hostname of my installed vm image
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T10:41:30Z  
    Hi Ahmed ,

    Thanks for your reply. when i Type command hostname in my installed vm image i get this hostname "26541-CentOS-Kshiteej.perficient.com" while the hostname of the machine from where i created the image is "denvmg116.perficient.com"

    This is my scenario
    1) I had a linux machine with hostname "denvmg116.perficient.com" where we installed WAS7 and db2 and was server is starting without any problem
    2) Now we created an image out of it
    3) Installed that image on our local windows machine through vmware
    4) Now in installed image when i type hostname i get this hostname "26541-CentOS-Kshiteej.perficient.com"
    5) Here when i am starting my websphere application server then i am getting this error

    so please suggest me do i need to change values in my websphere installation folder for host everywhere and change it to "26541-CentOS-Kshiteej.perficient.com" and if so where all

    or i need to change hostname of my installed vm image
    I think it is easier to change your VM host name to the original one you installed this WAS on it.

    //Ahmed
  • LyndonL
    LyndonL
    10 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T13:35:51Z  
    Hi,

    I have had this happen before in earlier versions of WebSphere. If this is a stand alone WAS installation and not part of a cell it should be pretty easy to search through your configuration files and change the value of the hostname.

    In your profile directory you should have a config directory and various levels of directories underneath. I would use grep or similar to check recursively through your config directory for occurences of the original hostname used for the install and then go change it in each file it occurs in.

    Best of Luck,

    Lyndon
  • LyndonL
    LyndonL
    10 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T13:49:54Z  
    I forgot to mention, the easiest solution to this problem is to add a hostname alias to your hosts file that points to an entry for your vm host. However, this may not work for everyone, especially if you need to access the original server from your new server (hostname collision) or if you don't want to add an entry for your new server in the hosts file because your address is dynamically assigned.

    -Lyndon
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T15:29:27Z  
    Thanks alot Ahmed and Lyndon

    Lyndon I want to try the easiest solution first :)..For that you suggest to define hostname alias in webshphere Installation directory ? When you say host files it is something in <WAS_Install_Direcorty>\profiles\AppSrv01\config\cells\sys-PCNode01Cell in file like virtualhosts.xml ?

    And if i am wrong can you please suggest me where exactly i can define it

    Puneet
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T16:29:33Z  
    Thanks alot Ahmed and Lyndon

    Lyndon I want to try the easiest solution first :)..For that you suggest to define hostname alias in webshphere Installation directory ? When you say host files it is something in <WAS_Install_Direcorty>\profiles\AppSrv01\config\cells\sys-PCNode01Cell in file like virtualhosts.xml ?

    And if i am wrong can you please suggest me where exactly i can define it

    Puneet
    No, hosts file of your OS itself, i think it is in "/etc/hosts" for linux.

    //Ahmed
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-07T19:10:34Z  
    No, hosts file of your OS itself, i think it is in "/etc/hosts" for linux.

    //Ahmed
    I changed hostname by using this command
    sudo hostname denvmg116.perficient.com
    and this set the hostname temporarily

    I verified it by giving command hostname

    But i am getting this strange error of not able to resolve the variable HOST in security.xml

    6/5/11 9:15:20:224 MDT 00000000 VariableExpan E WSVR0244E: An undefined HOST product variable has been encountered in the krb5Spn property of the /apps/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/denvmg116Node01Cell/security.xml#KRB5_1 configuration object.
    6/5/11 9:15:20:323 MDT 00000000 FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /apps/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_26882688_11.06.05_09.15.20.24434858.txt com.ibm.ws.security.auth.ContextManagerImpl.getInvocationSubject 1315
    6/5/11 9:15:20:340 MDT 00000000 VariableExpan E WSVR0244E: An undefined HOST product variable has been encountered in the krb5Spn property of the /apps/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/denvmg116Node01Cell/security.xml#KRB5_1 configuration object.
    6/5/11 9:15:20:360 MDT 00000000 FfdcProvider I FFDC provider error
    com.ibm.wsspi.runtime.variable.UndefinedVariableException: Undefined variable HOST

    Then i hardcode the value in security.xml for ${HOST} to denvmg116.perficient.com but again i am getting the same old error of not able to get virtual or local host
  • LyndonL
    LyndonL
    10 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-08T14:21:07Z  
    I changed hostname by using this command
    sudo hostname denvmg116.perficient.com
    and this set the hostname temporarily

    I verified it by giving command hostname

    But i am getting this strange error of not able to resolve the variable HOST in security.xml

    6/5/11 9:15:20:224 MDT 00000000 VariableExpan E WSVR0244E: An undefined HOST product variable has been encountered in the krb5Spn property of the /apps/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/denvmg116Node01Cell/security.xml#KRB5_1 configuration object.
    6/5/11 9:15:20:323 MDT 00000000 FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on /apps/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/ffdc/server1_26882688_11.06.05_09.15.20.24434858.txt com.ibm.ws.security.auth.ContextManagerImpl.getInvocationSubject 1315
    6/5/11 9:15:20:340 MDT 00000000 VariableExpan E WSVR0244E: An undefined HOST product variable has been encountered in the krb5Spn property of the /apps/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/denvmg116Node01Cell/security.xml#KRB5_1 configuration object.
    6/5/11 9:15:20:360 MDT 00000000 FfdcProvider I FFDC provider error
    com.ibm.wsspi.runtime.variable.UndefinedVariableException: Undefined variable HOST

    Then i hardcode the value in security.xml for ${HOST} to denvmg116.perficient.com but again i am getting the same old error of not able to get virtual or local host
    Unfortunately the error I have seen is a little different from the one you get. However, I'm not sure that just changing the hostname using the hostname command is sufficient. Based on how address resolution is performed I wouldn't be confident of just changing it that way. Try the hosts file alias method first.

    Also, since it seems the problem is localized to the security component you may want to try disabling security to see if the server will start. You can do this without the server running by using wsadmin with the conntype of 'none'. I can't remember the exact commands but search the WAS support pages for details on how to disable security.

    Best of Luck,

    -Lyndon
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-09T05:59:28Z  
    Thanks alot Ahmed and Lyndon...You guys are awesome..

    I am able to bring up my server now :)
  • LyndonL
    LyndonL
    10 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2011-06-09T12:23:30Z  
    Thanks alot Ahmed and Lyndon...You guys are awesome..

    I am able to bring up my server now :)
    What was the final solution?
  • pengli
    pengli
    1 Post

    Re: Error starting webshpere server using VMware virtual Image

    ‏2012-04-26T09:01:43Z  
    • LyndonL
    • ‏2011-06-09T12:23:30Z
    What was the final solution?
    I hit by the same issue today. Could someone tell me the solution please ?

    Thanks in advance !
    Peng Li
  • SystemAdmin
    SystemAdmin
    37421 Posts

    Re: Error starting webshpere server using VMware virtual Image

    ‏2013-01-18T12:06:07Z  
    • pengli
    • ‏2012-04-26T09:01:43Z
    I hit by the same issue today. Could someone tell me the solution please ?

    Thanks in advance !
    Peng Li
    You must write hsotname in host file
  • KellyYao
    KellyYao
    1 Post

    Re: Error starting webshpere server using VMware virtual Image

    ‏2014-06-06T03:57:40Z  
    You must write hsotname in host file

    The host file -- Do you mean /etc/hosts file as for Linux OS?

  • NRQQ_Gilbert_Kabugi
    NRQQ_Gilbert_Kabugi
    1 Post

    Re: Error starting webshpere server using VMware virtual Image

    ‏2014-07-09T12:10:01Z  
    • KellyYao
    • ‏2014-06-06T03:57:40Z

    The host file -- Do you mean /etc/hosts file as for Linux OS?

    This worked for me:

     

    # vi /etc/hosts

    192.168.xx.xx             myserver

     

    save changes and try starting your server

  • anantharam
    anantharam
    1 Post

    Re: Error starting webshpere server using VMware virtual Image

    ‏2015-08-12T18:05:58Z  

    This worked for me:

     

    # vi /etc/hosts

    192.168.xx.xx             myserver

     

    save changes and try starting your server

    Apart from  /etc/hosts files

    1. Run hostname command and make sure it returns correct hostname

    2. try ping <hostname got from hostname command above>  and make sure it  pingable

    To correct hostname run hostname <correct hostname> this should solve the issue