You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Ross Crawford-d'Heureuse (Created) (JIRA)" <ji...@apache.org> on 2012/01/31 13:42:10 UTC
[jira] [Created] (KAFKA-259) Exception in thread "main"
java.lang.NoClassDefFoundError: kafka/Kafka Caused by:
java.lang.ClassNotFoundException: kafka.Kafka
Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka Caused by: java.lang.ClassNotFoundException: kafka.Kafka
-------------------------------------------------------------------------------------------------------------------------------
Key: KAFKA-259
URL: https://issues.apache.org/jira/browse/KAFKA-259
Project: Kafka
Issue Type: Bug
Affects Versions: 0.6
Environment: Mac OSX Lion
Reporter: Ross Crawford-d'Heureuse
Priority: Minor
Hi there, I've cloned from the kafka github repo and tried to run the start server script:
./bin/kafka-server-start.sh config/server.properties
Which results in:
Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
Caused by: java.lang.ClassNotFoundException: kafka.Kafka
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)
It seems that Im missing a build step? what have I forgotten to do?
Thanks in advance and I look forward to using kafka.
regards
rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KAFKA-259) Give better error message when trying
to run shell scripts without having built/downloaded the jars yet
Posted by "Jay Kreps (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Kreps updated KAFKA-259:
----------------------------
Labels: newbie (was: )
Summary: Give better error message when trying to run shell scripts without having built/downloaded the jars yet (was: Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka Caused by: java.lang.ClassNotFoundException: kafka.Kafka)
> Give better error message when trying to run shell scripts without having built/downloaded the jars yet
> -------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-259
> URL: https://issues.apache.org/jira/browse/KAFKA-259
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: Mac OSX Lion
> Reporter: Ross Crawford-d'Heureuse
> Priority: Minor
> Labels: newbie
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
> ./bin/kafka-server-start.sh config/server.properties
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 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)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-259) Give better error message when
trying to run shell scripts without having built/downloaded the jars yet
Posted by "Ross Crawford-d'Heureuse (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198103#comment-13198103 ]
Ross Crawford-d'Heureuse commented on KAFKA-259:
------------------------------------------------
@jay, absolutely no problem mate, sorry if I sounded snooty ;) was not meant as such. As far as I can see maven +- sbt are really good tools. But for a rank noob with java its a case of figuring out the nomenclature and processes that is the java world lol ;)
> Give better error message when trying to run shell scripts without having built/downloaded the jars yet
> -------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-259
> URL: https://issues.apache.org/jira/browse/KAFKA-259
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: Mac OSX Lion
> Reporter: Ross Crawford-d'Heureuse
> Priority: Minor
> Labels: newbie
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
> ./bin/kafka-server-start.sh config/server.properties
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 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)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-259) Exception in thread "main"
java.lang.NoClassDefFoundError: kafka/Kafka Caused by:
java.lang.ClassNotFoundException: kafka.Kafka
Posted by "Jay Kreps (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197344#comment-13197344 ]
Jay Kreps commented on KAFKA-259:
---------------------------------
This is covered in the README and the releases come with packaged jars. The only thing I think we could do better is error out if there are no jars in dist, let's change this bug to be about doing that.
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-259
> URL: https://issues.apache.org/jira/browse/KAFKA-259
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: Mac OSX Lion
> Reporter: Ross Crawford-d'Heureuse
> Priority: Minor
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
> ./bin/kafka-server-start.sh config/server.properties
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 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)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-259) Give better error message when
trying to run shell scripts without having built/downloaded the jars yet
Posted by "Ross Crawford-d'Heureuse (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197630#comment-13197630 ]
Ross Crawford-d'Heureuse commented on KAFKA-259:
------------------------------------------------
as a noob to java/scala I can honestly say that it may be covered in the readme but there is allot of forest in there and not many trees to be seen ;) its just the basics (and probably only form my point of view) :) thanks for your time and effort guys and keep up the great work!
> Give better error message when trying to run shell scripts without having built/downloaded the jars yet
> -------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-259
> URL: https://issues.apache.org/jira/browse/KAFKA-259
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: Mac OSX Lion
> Reporter: Ross Crawford-d'Heureuse
> Priority: Minor
> Labels: newbie
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
> ./bin/kafka-server-start.sh config/server.properties
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 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)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-259) Exception in thread "main"
java.lang.NoClassDefFoundError: kafka/Kafka Caused by:
java.lang.ClassNotFoundException: kafka.Kafka
Posted by "Joe Stein (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196942#comment-13196942 ]
Joe Stein commented on KAFKA-259:
---------------------------------
cd kafka
./sbt update
./sbt package
this will make the jars for you to be able to run the server as you are attempting to-do
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-259
> URL: https://issues.apache.org/jira/browse/KAFKA-259
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: Mac OSX Lion
> Reporter: Ross Crawford-d'Heureuse
> Priority: Minor
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
> ./bin/kafka-server-start.sh config/server.properties
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 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)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-259) Give better error message when
trying to run shell scripts without having built/downloaded the jars yet
Posted by "Jay Kreps (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197972#comment-13197972 ]
Jay Kreps commented on KAFKA-259:
---------------------------------
Yeah, I didn't mean that in a snotty way, just that if we version control the jars the java people get all sulky and complain that we aren't using maven to download them, but if we do that then the non-maven people are unhappy because nothing works.
> Give better error message when trying to run shell scripts without having built/downloaded the jars yet
> -------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-259
> URL: https://issues.apache.org/jira/browse/KAFKA-259
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 0.6
> Environment: Mac OSX Lion
> Reporter: Ross Crawford-d'Heureuse
> Priority: Minor
> Labels: newbie
>
> Hi there, I've cloned from the kafka github repo and tried to run the start server script:
> ./bin/kafka-server-start.sh config/server.properties
> Which results in:
> Exception in thread "main" java.lang.NoClassDefFoundError: kafka/Kafka
> Caused by: java.lang.ClassNotFoundException: kafka.Kafka
> 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)
> It seems that Im missing a build step? what have I forgotten to do?
> Thanks in advance and I look forward to using kafka.
> regards
> rcdh
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira