cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eldar Nugaev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-948) Cannot Start Cassandra Under Windows
Date Tue, 20 Apr 2010 14:22:52 GMT

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

Eldar Nugaev commented on CASSANDRA-948:
----------------------------------------

Hi guys. 
User skanga from http://www.sodeso.nl/?p=80 resolve the problem such way: 

The substitution in the batch file did not work for me as shown below.

C:\Java\servers\Apache-Cassandra-0.6.0-beta2\bin>cassandra
Invalid parameter - P:
Starting Cassandra Server
Listening for transport dt_socket at address: 8888
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/cassandra/thrift/CassandraDaemon
Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.thrift.CassandraDaemon
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon. Program will exit.

C:\Java\servers\Apache-Cassandra-0.6.0-beta2\bin>cassandra.bat

I fixed it in cassandra.bat by replacing

REM Shorten lib path for old platforms
subst P: "%CASSANDRA_HOME%\lib"
P:
set CLASSPATH=P:\

for %%i in (*.jar) do call :append %%i
goto okClasspath

:append
set CLASSPATH=%CLASSPATH%;P:\%*
goto :eof

WITH

REM For each jar in the CASSANDRA_HOME lib directory call append to build the CLASSPATH variable.
for %%i in (%CASSANDRA_HOME%\lib\*.jar) do call :append %%~fi
goto okClasspath

:append
set CLASSPATH=%CLASSPATH%;%1%2
goto :eof


> Cannot Start Cassandra Under Windows
> ------------------------------------
>
>                 Key: CASSANDRA-948
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-948
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6
>         Environment: Windows 7 (NT 6.1) 64-bit, Java 6 Update 19 64-bit, Cassandra 0.6
RC
>            Reporter: Nick Berardi
>            Assignee: Mark Wolfe
>             Fix For: 0.6.2
>
>         Attachments: cassandra.bat, storage-conf.xml
>
>
> I get the following error when I try to launch the RC of Cassandra from the command line:
> Starting Cassandra Server
> Listening for transport dt_socket at address: 8888
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/cassandra/thrift/CassandraDaemon
> Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.thrift.CassandraDaemon
>         at java.net.URLClassLoader$1.run(Unknown Source)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon.  Program
will exit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message