<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    javax naming serviceunavailableexception failed to connect to server localhost 1099
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/dattathreya">dattathreya bonakurthi</a> in <i>JNDI and Naming</i> - <a href="https://community.jboss.org/message/833021#833021">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi team,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I m getting below error </p><p>javax naming serviceunavailableexception failed to connect to server &lt;old_hostname&gt; 1099</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>At present in my system, the jboss is clonned from the another system and make up.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>It is running well but whenever if there are requests coming to it they taking more time compared to earlier one.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>From the serverlog file I can see it is trying to point to the old hostname...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>At the time of clonning I had made required changes and updated all the HOST &amp; IP entries.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can anyone suggest me how I can make my system not to point to old host name ..</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>javax.naming.CommunicationException: Failed to connect to server TVCLTAPSE01:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server TVCLTAPSE01:1099 [Root exception is java.net.UnknownHostException: TVCLTAPSE01]]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.naming.InitialContext.lookup(InitialContext.java:351)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.helpers.NamingContextPool.createContext(NamingContextPool.java:350)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.helpers.NamingContextPool.getContext(NamingContextPool.java:304)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.helpers.NamingContextPool.getContext(NamingContextPool.java:159)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.helpers.NamingContextPool.getNamingContext(NamingContextPool.java:410)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getFactoryConnection(JmsConnectionPool.java:310)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.internalGetSession(JmsConnectionPool.java:222)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getSession(JmsConnectionPool.java:194)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.couriers.JmsCourier.getJmsSession(JmsCourier.java:159)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.couriers.JmsCourier.createMessageProducer(JmsCourier.java:385)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.couriers.JmsCourier.internalDeliver(JmsCourier.java:209)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.couriers.JmsCourier.deliver(JmsCourier.java:181)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.deliver(TwoWayCourierImpl.java:189)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker.attemptDelivery(ServiceInvoker.java:667)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.client.ServiceInvoker$EPRInvoker.access$200(ServiceInvoker.java:569)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.client.ServiceInvoker.post(ServiceInvoker.java:359)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.client.ServiceInvoker.deliverSync(ServiceInvoker.java:219)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.listeners.message.UncomposedMessageDeliveryAdapter.deliverSyncWithoutDecomposing(UncomposedMessageDeliveryAdapter.java:107)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.listeners.message.UncomposedMessageDeliveryAdapter.deliverSync(UncomposedMessageDeliveryAdapter.java:86)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.soa.esb.listeners.gateway.JBossRemotingGatewayListener.invoke(JBossRemotingGatewayListener.java:371)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting.transport.coyote.CoyoteInvoker.service(CoyoteInvoker.java:310)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:595)</p><p>Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server TVCLTAPSE01:1099 [Root exception is java.net.UnknownHostException: TVCLTAPSE01]</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ... 29 more</p><p>Caused by: java.net.UnknownHostException: TVCLTAPSE01</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.net.InetAddress.getAllByName0(InetAddress.java:1150)</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/833021#833021">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>