Jboss EAP 7.0 - javax.naming.NamingException: Unable to invoke lookup, status=WAITING

Posted on

I am running 2 application servers. Server-1 on 7.0.0(standalone) and the Server-2 on 7.0.8(domain). When Server-1 tries to consume JMS Topic messages using http-remoting on port 8080, it works.

Location - http-remoting://server-2:8080
JNDI - org.jboss.naming.remote.client.InitialContextFactory
Factory - jms/RemoteConnectionFactory.

After enabling https on both the servers, port 8080 has been disabled. So, all requests have to use 443. Without much knowledge on remoting, I have chanegd the configuration to
Location - https-remoting://server-2:443

But it fails with error -
javax.naming.NamingException: Unable to invoke lookup, status=WAITING
org.jboss.naming.remote.protocol.v1.Protocol$1.execute(Protocol.java:98)
org.jboss.naming.remote.protocol.v1.RemoteNamingStoreV1.lookup(RemoteNamingStoreV1.java:95)
org.jboss.naming.remote.client.HaRemoteNamingStore$1.operation(HaRemoteNamingStore.java:276)
org.jboss.naming.remote.client.HaRemoteNamingStore.namingOperation(HaRemoteNamingStore.java:132)
org.jboss.naming.remote.client.HaRemoteNamingStore.lookup(HaRemoteNamingStore.java:272)
org.jboss.naming.remote.client.RemoteContext.lookupInternal(RemoteContext.java:104)
org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:93)
org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:146)
javax.naming.InitialContext.lookup(InitialContext.java:417)
javax.naming.InitialContext.lookup(InitialContext.java:417)

I have imported server-2 certificates to truststore and I am sure it works as other requests(synchronous SOAP requests) work on port 443/https.
I have tried with jboss-client jar of both versions of jboss(7.0.0 and 7.0.8). But no luck
Please let me know if I am missing something.