[ 
https://issues.apache.org/jira/browse/KAFKA-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601453#comment-13601453
 ] 

Dragos Manolescu commented on KAFKA-797:
----------------------------------------

I second David's and Phil's observations, the scala-compiler and scala-library 
JARs are not downloaded by sbt: I wiped the ivy cache and ran into the same 
problem. I also agree that referencing ~/.ivy2/cache from the classpath is 
asking for trouble ;)

Poking around the build file I noticed that the sbt-assembly plugin is already 
there, though nothing seems to be using it. Perhaps leveraging it to package 
all dependencies into a single jar would be more robust than extending the 
classpath with individual JARs in kafka-run-class.sh?
                
> Cannot start Kafka 0.8 per Quick Start instructions
> ---------------------------------------------------
>
>                 Key: KAFKA-797
>                 URL: https://issues.apache.org/jira/browse/KAFKA-797
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: David Arthur
>
> Checked out latest 0.8 (b5edbb193b33ebf0b3056935a537967ff21478a6), and ran:
> ./sbt update
> ./sbt package
> Both complete successfully. Then I try to start the server:
> $ ./bin/kafka-server-start.sh config/server.properties 
> Exception in thread "main" java.lang.NoClassDefFoundError: scala/ScalaObject
>       at java.lang.ClassLoader.defineClass1(Native Method)
>       at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>       at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>       at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>       at java.lang.ClassLoader.defineClass1(Native Method)
>       at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>       at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>       at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>       at kafka.Kafka.main(Kafka.scala)
> Caused by: java.lang.ClassNotFoundException: scala.ScalaObject
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>       ... 25 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to