• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

java.net.UnknownHostException occurred when invoke Clustered EJB

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

I'm using BEA weblogic8.1 to develop J2EE application in a cluster environment, where EJB is clustered.

But java.net.UnknownHostException occurred, when I call clustered Stateless session bean from a webapp outside of the cluster.

my code is below:

CatalogServiceRemote catalogServiceRemote = (CatalogServiceRemote)Locator.getSessionBean("CatalogService");
//Remote Stub is successfully acquired using ServiceLocator

this.categoryList = (ArrayList)catalogServiceRemote.getTopCategories();
//when a remote method is called, remote exception is thrown

catch(NamingException ne){
catch(RemoteException re){

exception like below:

java.rmi.RemoteException: EJB Exception: ; nested exception is:
javax.ejb.EJBException: nested exception is: javax.naming.ServiceUnavail
ableException [Root exception is java.net.UnknownHostException:]

I'm not sure why it cannot find host:, which is a host where a weblogic instance of the cluster resides. and I can ping successfully.

any help appreciated!
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic