# Kafka Connect Plugin Path

**URL:** <https://forum.confluent.io/t/kafka-connect-plugin-path/6204>\
**Category:** Kafka Connect\
**Created:** [6 October 2022 10:12 UTC](https://forum.confluent.io/t/kafka-connect-plugin-path/6204 "2022-10-06T10:12:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tushargoyal22](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/tushargoyal22/32/2447_2.png) [@tushargoyal22](https://forum.confluent.io/u/tushargoyal22)\
**Post date:** [6 October 2022 10:12 UTC](https://forum.confluent.io/t/kafka-connect-plugin-path/6204/1 "2022-10-06T10:12:58Z")

</div>

Hi,

In the worker\_config , I am specifying the plugin.path as `"/u/goyaltu/Documents/RAFT/raft-core/java/lean-jar"` , so there are 4 jars inside it, two are the lean jars of two connectors - JDBC and PyConnect, and other two are dependencies where one of the jar is dependency of both of the connectors.

In the logs I am able to see all 4 jars from plugin are loaded and registered.  
When I am submitting the connector, it is giving `java.lang.NoClassDefFoundError` which is there in the dependency jar already.

```auto
    "workers": {
      "count": 1,
      "worker_config": {
        "plugin.path": [
	    "/u/goyaltu/Documents/RAFT/raft-core/java/lean-jar"
        ]
      }
    }

```

![lean_jar](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/2X/4/4b2eefd23a6d86aac98c6a0695a1fb5a139c6e97.png)

Can someone help with the problem?

why is the class not able to found when connector is submitted although it is there in plugin.path already

---

<div class="post-metadata">

**Author:** ![greenhorntechie](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@greenhorntechie](https://forum.confluent.io/u/greenhorntechie)\
**Post date:** [11 October 2022 22:50 UTC](https://forum.confluent.io/t/kafka-connect-plugin-path/6204/2 "2022-10-11T22:50:02Z")

</div>

After deploying the connector plugin, did you restart the connect service? This step is mandatory for the connect service to pickup and add the latest connector-specific JARs to the classpath and make them available to the Connect service.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [10 November 2022 22:50 UTC](https://forum.confluent.io/t/kafka-connect-plugin-path/6204/3 "2022-11-10T22:50:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
