• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.net.UnknownHostException

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am not sure to which section this question belongs but the question is kind of in a generic sense...

I just created an instance of Http Server and Websphere app server 8.5.5. When I start the Websphere app server, I get the below error. If you notice the host name is blank in "java.net.UnknownHostException: : ". I know the IP address where the WAS is running. So where and how do I update the host name to fix the UnknownHostException ? I assume this host name fix kind of a thing would be similar in most of application servers?
Thanks a lot for your help and the moderator can forward to different thread if needed.

 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I figured out - who ever did the WAS installation on new IBM i did not set the host name before he installed; so it ended up looking for blank host name.
I don't know what's the work around way to fix host name.. I don't think just giving host name using CFGTCP command will fix the problem.

Maybe experts here can throw some options... Thanks
 
Bartender
Posts: 3904
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

prasad agarwal wrote:
I figured out - who ever did the WAS installation on new IBM i did not set the host name before he installed; so it ended up looking for blank host name.
I don't know what's the work around way to fix host name.. I don't think just giving host name using CFGTCP command will fix the problem.

Maybe experts here can throw some options... Thanks



Not sure what your problem is.

If you want to change hostname configured in WebShere Application Server, my guide might help you.

Best regards,
MZ
 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Mikalai Zaikin,

Thanks for your reply.
In our case, what happened was they set up new IBM i system and without setting any host name, WAS was installed.
I later have created an instance of HTTP server and WAS. When I start it fails.

Today, I was playing around and changed directly serverindex.xml with new host name that I setup and added host entries which fixed the problem and it finally started
 
Mikalai Zaikin
Bartender
Posts: 3904
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am glad that you fixed it.
However, it's not recommended to edit .xml files manually, there is a risk to break server completely.
Moreover, in complicated topologies local changes will be overwritten by configs from master repository on next DMGR startup.
Probably you have a standalone server, so manual edit worked.
 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi Mikalai Zaikin ,

Thanks a lot on that warning. Yes, we have a standalone server where we have both the Apache Http server and Websphere running.

I still have the last task to complete, for me to consider that I am ready for the migration of applications. Maybe you can help me on this

When I login to Admin console on my Websphere 6.x, under servers -> Web server is where I generate the plug-in to setup connection between them where as when using Websphere 8.5.5, surprisingly in Admin Console under servers -> Web server, I do not see the Http Server that I created ? I am not able to figure out what must have gone wrong... because of which I cannot create the web-server plugin. The documentation is also about Web server and Websphere on different machines but in our case, we have both installed on same machine (as was the case even in our previous Websphere 6.x)

Maybe you can throw some light.. I would really appreciate and thanks a lot.
I will spend some time today to see if I can find the solution myself and in which case I will definitely write back here.
 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have got this web-server plugin issue fixed; actually it has something to do with installing some patch/fix on the system.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic