You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2017/10/25 00:05:59 UTC
[GitHub] merlimat commented on issue #855: NoClassDefFoundError encountered when using Producer (Java API)
merlimat commented on issue #855: NoClassDefFoundError encountered when using Producer (Java API)
URL: https://github.com/apache/incubator-pulsar/issues/855#issuecomment-339172713
Hi @rstout610, I'm not familiar with sbt. Is it fetching all the dependencies from `pulsar-client`?
Can you show the classpath is using?
Another option is to use the `shaded` jar for the pulsar client dependency. That will include all the required dependencies (also shaded to avoid conflicts).
In next release, this shaded jar will be the default, in the meantime you can use the Maven classifier to use it.
For example, change the dependency as:
```
"org.apache.pulsar" % "pulsar-client" % "1.20.0-incubating" classifier "shaded"
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services