• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net.UnknownHostException occurred when invoke Clustered EJB  RSS feed

Robert Strong
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • 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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!