users@glassfish.java.net

JNDI Lookup giving java.net.ConnectException: Connection refused

From: <forums_at_java.net>
Date: Tue, 5 Jul 2011 09:19:28 -0500 (CDT)

Hi,

I have a GlassFish Server 3.1 b43 with an EJB I want to access from a client
on another computer. So I am setting (using -D):

org.omg.CORBA.ORBInitialPort=21037

org.omg.CORBA.ORBInitialHost=glassfishHostname

And using the no-args InitialContext to make the lookup.

I am sure that the server is setup to listen on port 21037 (can see that in
the admin-app: IIOP-ports), my .ear was also deployed at the time.

At the lookup I get:

org.omg.CORBA.COMM_FAILURE: FEIN: IOP00410001: Connection failure:
socketType: IIOP_CLEAR_TEXT; hostname: glassfishHostname; port: 21037 
vmcid: OMG  minor code: 1  completed: No
  at sun.reflect.GeneratedConstructorAccessor27.newInstance(Unknown Source)
  at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at
com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248)
  ...
Caused by: java.net.ConnectException: Connection refused
  at sun.nio.ch.Net.connect(Native Method)
  at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
  at
com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:110)
  at
org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:325)
  ... 18 more

The problem is that this already worked like a charme, then the error came, I
deployed a new version of the .ear and it worked again.

So, my question is: Did this happen because of a version mismatch of the the
class files in the client and server? If so, I would have excepted another
error message.

And, can't I tell corba/IIOP/glassfish to ignore such a mismatch, because the
ejb itself didn't change, just te application containing it.

If not, what caused it, and did the "restart" of the application "solve" it?

I just want to make sure that this doesn't happen again.

Thanks in advance,

Regards


--
[Message sent by forum member 'MohamzJava']
View Post: http://forums.java.net/node/818720