title: wso2 Inbound endpoint - Kafka consumer
body: <p>I am creating a Kafka consumer.</p>
  
  <p>Using this article I Installed Zooker and Kafka.
  <a href="https://dzone.com/articles/running-apache-kafka-on-windows-os" rel="nofollow noreferrer">https://dzone.com/articles/running-apache-kafka-on-windows-os</a></p>
  
  <p>Using this documentation I am configuring the Inbound Kafka Endpoint
  <a href="https://docs.wso2.com/display/EI611/Kafka+Inbound+Protocol" rel="nofollow noreferrer">https://docs.wso2.com/display/EI611/Kafka+Inbound+Protocol</a></p>
  
  <p>When I try to deploy the Inbound Endpoint I am getting this error</p>
  
  <pre><code>[2017-09-22 12:19:06,161] [] ERROR - KAFKAPollingConsumer  Error in Creating Kafka Consumer Connector
  [2017-09-22 12:19:08,150] []  INFO - KAFKAMessageListener Creating Kafka Consumer Connector...
  </code></pre>
  
  <blockquote>
    <p>[2017-09-22 12:19:08,152] [] ERROR - KAFKAMessageListener  Error in
    Creating Kafka Consumer Connector.Exception while loading Zookeeper
    JAAS login context 'Client'
        <strong><em>org.apache.kafka.common.KafkaException: Exception while loading Zookeeper JAAS login context 'Client'</em></strong></p>
  </blockquote>
  
  <pre><code>        at org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled(JaasUtils.java:43)
          at kafka.consumer.ZookeeperConsumerConnector.connectZk(ZookeeperConsumerConnector.scala:197)
          at kafka.consumer.ZookeeperConsumerConnector.&lt;init&gt;(ZookeeperConsumerConnector.scala:142)
          at kafka.javaapi.consumer.ZookeeperConsumerConnector.&lt;init&gt;(ZookeeperConsumerConnector.scala:67)
          at kafka.javaapi.consumer.ZookeeperConsumerConnector.&lt;init&gt;(ZookeeperConsumerConnector.scala:70)
          at kafka.consumer.Consumer$.createJavaConsumerConnector(ConsumerConnector.scala:123)
          at kafka.consumer.Consumer.createJavaConsumerConnector(ConsumerConnector.scala)
          at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAMessageListener.createKafkaConsumerConnector(KAFKAMessageListener.java:56)
          at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAPollingConsumer.poll(KAFKAPollingConsumer.java:145)
          at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKAPollingConsumer.execute(KAFKAPollingConsumer.java:116)
          at org.wso2.carbon.inbound.endpoint.protocol.kafka.KAFKATask.taskExecute(KAFKATask.java:48)
          at org.wso2.carbon.inbound.endpoint.common.InboundTask.execute(InboundTask.java:45)
          at org.wso2.carbon.mediation.ntask.NTaskAdapter.execute(NTaskAdapter.java:98)
          at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.execute(TaskQuartzJobAdapter.java:67)
          at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:748)
  Caused by: java.lang.SecurityException: java.io.IOException: C:\WS02\WSO2EI~1.1\bin\..\repository\conf\identity\jaas.conf (No such file or directory)
          at sun.security.provider.ConfigFile$Spi.&lt;init&gt;(ConfigFile.java:137)
          at sun.security.provider.ConfigFile.&lt;init&gt;(ConfigFile.java:102)
          at sun.reflect.GeneratedConstructorAccessor74.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
          at java.lang.Class.newInstance(Class.java:442)
          at javax.security.auth.login.Configuration$2.run(Configuration.java:255)
          at javax.security.auth.login.Configuration$2.run(Configuration.java:247)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:246)
          at org.apache.kafka.common.security.JaasUtils.isZkSecurityEnabled(JaasUtils.java:40)
          ... 19 more
  </code></pre>
  
  <blockquote>
    <p><strong><em>Caused by: java.io.IOException: C:\WS02\WSO2EI~1.1\bin..\repository\conf\identity\jaas.conf (No such
    file or directory)</em></strong></p>
  </blockquote>
  
  <pre><code>        at sun.security.provider.ConfigFile$Spi.ioException(ConfigFile.java:666)
          at sun.security.provider.ConfigFile$Spi.init(ConfigFile.java:262)
          at sun.security.provider.ConfigFile$Spi.&lt;init&gt;(ConfigFile.java:135)
  </code></pre>