title: Remote connection of Jboss 7 server fails with Proxy exception
body: <p>I have a Jboss 7 server running &amp; accepting secure connections on port 443. </p>
  
  <p>All along i was testing locally which was working fine . However now when i make connection attempts i get a</p>
  
  <p>"<code>javax.naming.NamingException: Failed to create proxy [Root exception is java.lang.IllegalStateException: ...</code>" . </p>
  
  <p>I tried to follow what is written @ <a href="https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI" rel="nofollow">EJB invocations from a remote client using JNDI</a></p>
  
  <p>I guess my jndi.properties &amp; jboss-ejb-client.properties file need changes . I think i got it right but still no success .</p>
  
  <p>1 ) jndi.properties </p>
  
  <pre><code>java.naming.factory.url.pkgs=org.jboss.ejb.client.naming
  </code></pre>
  
  <p>2 ) jboss-ejb-client.properties</p>
  
  <pre><code>remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
  
  remote.connections=default
  
  remote.connection.default.host=10.160.148.61
  remote.connection.default.port = 4447
  remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
  </code></pre>
  
  <p>Any suggestions anyone . Making the port 443 also doesnt help . </p>
  
  <p>My ejb call from the client </p>
  
  <pre><code>    InitialContext aJNDI = new InitialContext();
      Ppi handle = (Ppi) aJNDI
              .lookup("ejb:PPIEAR/PService/PConnect!com.gem.p.PConnection?stateful");
  </code></pre>
  
  <p>Posting Full stracktrace :</p>
  
  <pre><code>log4j: Finished configuring.
  - JBoss EJB Client version 1.0.5.Final
  - XNIO Version 3.0.3.GA
  - XNIO NIO Implementation Version 3.0.3.GA
  - JBoss Remoting version 3.2.3.GA
  - Could not register a EJB receiver for connection to remote://10.160.148.61:4447
  java.lang.RuntimeException: Operation failed with status WAITING
      at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:93)
      at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:121)
      at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.&lt;init&gt;(ConfigBasedEJBClientContextSelector.java:78)
      at org.jboss.ejb.client.EJBClientContext.&lt;clinit&gt;(EJBClientContext.java:77)
      at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:160)
      at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:135)
      at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:113)
      at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:96)
      at javax.naming.InitialContext.lookup(Unknown Source)
  ..
  </code></pre>