• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error for EJB jndi lookup ip farwrding issue

 
tahir bashir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Hi everybody, I have a j2ee application which works fine, I deployed on the machine which has two IP address external and internal.
When jndi lookup (using external static IP Address) is initiated in my swing ejb client the following error comes indicating connection refuse to internal IP address.
How to solve this issue I am trying to for 4 days
Thank in advance
Following is the Error :

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usermanager' defined in class path resource [BeanConfig.xml]: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.0.8; nested exception is:
java.net.ConnectException: Connection timed out: connect]
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.0.8; nested exception is:
java.net.ConnectException: Connection timed out: connect]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:718)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:583)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:90)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)
at
 
tahir bashir
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yupi i sloved it kool .....
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!