users@glassfish.java.net

Could no longer startup GF 2.1 server

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Sep 2010 07:44:14 PDT

Hi All,

I can no longer startup GF 2.1 server after having changed the hostname of the server with the following error:

[b]15/09/2010 11:57:20 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: oldname; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
        at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
        at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
        at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
        at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
        at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
        at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
        at com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:134)
        at com.sun.enterprise.naming.SerialContext.getCachedProvider(SerialContext.java:259)
        at com.sun.enterprise.naming.SerialContext.getRemoteProvider(SerialContext.java:204)
        at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:159)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:409)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.util.Utility.lookupObject(Utility.java:145)
        at com.sun.enterprise.ServerConfiguration.<init>(ServerConfiguration.java:96)
        at com.sun.enterprise.ServerConfiguration.getConfiguration(ServerConfiguration.java:80)
        at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.createTransactionManager(J2EETransactionManagerImpl.java:294)
        at com.sun.enterprise.appclient.AppContainer.initializeNaming(AppContainer.java:207)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:364)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
        at com.sun.enterprise.appclient.Main.main(Main.java:200)
Caused by: java.lang.RuntimeException: java.net.NoRouteToHostException: No route to host: connect
        at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
        at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
        ... 21 more
Caused by: java.net.NoRouteToHostException: No route to host: connect
        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:105)
        at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
        ... 22 more[/b]
I also had problem running a working Java EE 5 application when going online (connected to Internet) prior to changing the hostname. There were no such issue when the system was offline prior to changing hostname. GF 2.1 was installed in offline/standalone mode. I have replaced the previous hostname in the following line of C:/Sun/AppServer/domains/domain1/config/domain.xml to LOCALHOST without success:

      <mdb-container idle-timeout-in-seconds="600" max-pool-size="32" pool-resize-quantity="8" steady-pool-size="0"/>
      <jms-service addresslist-behavior="random" addresslist-iterations="3" default-jms-host="default_JMS_host" init-timeout-in-seconds="60" reconnect-attempts="3" reconnect-enabled="true" reconnect-interval-in-seconds="5" type="EMBEDDED">
        <jms-host admin-password="admin" admin-user-name="admin" host="[b]LOCALHOST[/b]" name="default_JMS_host" port="7676"/>
      </jms-service>

It appears that GF 2.1 installation, part of Netbeans 6.7 bundle pack had saved the previous hostname somewhere (file/registry) and continues to reference it whenever the server is started up. Is it possible to configure GF to work while the system is online as well as offline?

I am running JDK1.6.0_17, Netbeans 6.7 on Windows XP platform.

Any assistance would be appreciated.

Thanks,

Jack
[Message sent by forum member 'htran_888']

http://forums.java.net/jive/thread.jspa?messageID=482843