saranyaeu2987 opened a new issue #251:
URL: https://github.com/apache/camel-kafka-connector/issues/251


   I am trying to run camel-kafka-connector in my minikube and Strimzi but 
getting 
   Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.camel.kafkaconnector.CamelSinkConnectorConfig
   
   Here is my image Docker file
   
   ```
   FROM strimzi/kafka:0.18.0-kafka-2.5.0
   USER root:root
   COPY ./my-plugins/ /opt/kafka/plugins/
   USER 1001
   ```
   
   Here is my plugins folder contains the following jars 
   <img width="1602" alt="Screen Shot 2020-05-27 at 10 25 32 PM" 
src="https://user-images.githubusercontent.com/19850718/83171319-8c478200-a0db-11ea-974e-7bc6c313b649.png";>
   
   When I see the pod logs, this is what I see
   ```
   2020-05-28 16:17:11,313 INFO Registered loader: 
PluginClassLoader{pluginLocation=file:/opt/kafka/plugins/camel-kafka-connector-0.2.0.jar}
 (org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) [main]
   2020-05-28 16:17:11,313 INFO Added plugin 
'org.apache.camel.kafkaconnector.CamelSinkConnector' 
(org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) [main]
   2020-05-28 16:17:11,313 INFO Added plugin 
'org.apache.camel.kafkaconnector.CamelSourceConnector' 
(org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) [main]
   2020-05-28 16:17:11,313 INFO Added plugin 
'org.apache.camel.kafkaconnector.transforms.CamelTypeConverterTransform$Key' 
(org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) [main]
   2020-05-28 16:17:11,313 INFO Added plugin 
'org.apache.camel.kafkaconnector.transforms.CamelTypeConverterTransform$Value' 
(org.apache.kafka.connect.runtime.isolation.DelegatingClassLoader) [main]
   ```
   
   I dont see org.apache.camel.kafkaconnector.CamelSinkConnectorConfig getting 
loaded from camel-kafka-connector-0.2.0.jar
    Which I feel would have caused the following error 
   
   ```
   Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.camel.kafkaconnector.CamelSinkConnectorConfig
        at 
org.apache.camel.kafkaconnector.CamelSinkConnector.config(CamelSinkConnector.java:67)
        at 
org.apache.kafka.connect.connector.Connector.validate(Connector.java:129)
   ...
   ```
   **Full log from connector pod **
   
[logs-from-my-connect-cluster-connect-in-my-connect-cluster-connect-8866c5d89-rd4zs.txt](https://github.com/apache/camel-kafka-connector/files/4697195/logs-from-my-connect-cluster-connect-in-my-connect-cluster-connect-8866c5d89-rd4zs.txt)
   
   
   Any suggestions??
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to