Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Published version for Scala 2.10.x throws java.lang.NoClassDefFoundError: com/twitter/finagle/server/DefaultServer #17

Open
mljsimone opened this issue Jun 11, 2017 · 3 comments

Comments

@mljsimone
Copy link

This is the full stacktrace:

java.lang.NoClassDefFoundError: com/twitter/finagle/server/DefaultServer
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at okapies.finagle.Kafka$.(Kafka.scala:76)
at okapies.finagle.Kafka$.(Kafka.scala)

How can this be fixed?

I'm using Scala 2.10.6 and finagle-kafka 0.2.0

@okapies
Copy link
Owner

okapies commented Jun 11, 2017

What version of finagle-core do you use?

@mljsimone
Copy link
Author

I don't use finagle-core directly. I use these:

"com.twitter" %% "finagle-redis" % "6.35.0"
"com.twitter" %% "finagle-mysql" % "6.35.0"

I guess, 6.35.0?

@okapies
Copy link
Owner

okapies commented Jun 12, 2017

Hmm. finagle no longer support Scala 2.10 after 6.35. I recommend you to use Scala 2.11 and its corresponding version instead.

https://finagle.github.io/blog/2016/04/20/scala-210-and-java7/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants