title: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found when configuring JBoss EAP 7.1 Client
body: <p>I am trying to configure my ESB server as a client for JBoss EAP 7.1 integrated Active MQ Artemis which will connect using the RemoteConnectionFactory. However, I couldn't use the JBoss client jar as it conflicts with the internal JARs. Therefore, I added all the necessary JARs separately.</p>
  
  <p>Now an exception is being thrown saying no provider found.</p>
  
  <p>I have added both xnio-api and xnio-nio jars.</p>
  
  <p>Below is the exception.</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
      at org.xnio.Xnio.doGetInstance(Xnio.java:226)
      at org.xnio.Xnio.getInstance(Xnio.java:192)
      at org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:47)
      at org.jboss.naming.remote.client.InitialContextFactory.createEndpoint(InitialContextFactory.java:226)
      at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateEndpoint(InitialContextFactory.java:207)
      at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:170)
      at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)
      ... 50 more
  </code></pre>
  
  <p>How do I resolve this error?</p>