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

Michael Semb Wever commented on CASSANDRA-17129:
------------------------------------------------

PR at https://github.com/apache/cassandra/pull/1308

> Classpath can be broken when multiple artifacts are present in build dir
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-17129
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17129
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build
>            Reporter: Jacek Lewandowski
>            Assignee: Jacek Lewandowski
>            Priority: Normal
>             Fix For: 2.2.x, 3.0.x, 3.11.x, 4.0.x, 4.x
>
>
> {noformat}
> $ ant artifacts
> $ ls -1 build/apache-cassandra-*.jar
> build/apache-cassandra-4.1-SNAPSHOT-javadoc.jar
> build/apache-cassandra-4.1-SNAPSHOT-sources.jar
> build/apache-cassandra-4.1-SNAPSHOT.jar
> $ bin/cassandra -f
> ...
> Error: Could not find or load main class 
> org.apache.cassandra.service.CassandraDaemon
> {noformat}
> Classpath is something like:
> {noformat}
> ...bin/../conf:bin/../build/apache-cassandra-4.1-SNAPSHOT-javadoc.jar 
> bin/../build/apache-cassandra-4.1-SNAPSHOT-sources.jar 
> bin/../build/apache-cassandra-4.1-SNAPSHOT.jar:bin/../lib/HdrHistogram-2.1.9.jar:bin/../lib/ST4-4.0.8.jar:bin/../lib/airline-0.8.jar:bin/../lib/antlr-runtime-3.5.2.jar:bin/../lib/asm-7.1.jar:bin/../lib/caffeine-2.9.2.jar:bin...
> {noformat}
> notice that:
> - javadoc and sources jars are on the classpath
> - classpath is broken because javadoc, sources and main jar are separated by 
> blankspaces instead of colons
> The problem is in {{cassandra.in.sh}} where the main jar gets added to the 
> classpath:
> {noformat}
> cassandra_bin=`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar`
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to