Forums Register Login

Error for EJB jndi lookup ip farwrding issue

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Yupi i sloved it kool .....
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 692 times.
Similar Threads
Nio server Socket Listener?
JNDI Connection refused
SocketTimeoutException when doing JNDI lookup
remote JNDI lookup fails
Could not look up EJBs deployed in remote Linux Machine
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:40:24.