Jacek Lewandowski created CASSANDRA-17129:
---------------------------------------------

             Summary: 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
            Reporter: Jacek Lewandowski


{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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to