Still looks like a classpath issue to me then. If that didn't help, something 
is still off. Either the war has not been exploded yet, your classpath entries 
point to the wrong places, or the classpath is not being specified right. Those 
would be my guesses.

Given you are using the out of the box scripts and it should be setup to look 
at the right places and have a solid cp entry (*should*), my first guess would 
be that the war is not exploded yet. You have to manually unzip or start and 
stop solr.

This logic could probably be added to those scripts (unzip it), but it's 
annoying to have any logic in them since everything has to be mirrored in bat 
and sh.

- Mark

On Nov 16, 2012, at 11:18 AM, Nick Chase <nch...@earthlink.net> wrote:

> I agree that it *shouldn't* be OS specific. :)  Anyway, thanks for the 
> suggestion, but that's not it.  I get the same error with the script right 
> out of the box:
> 
> Error: Could not find or load main class 
> C:\sw\apache-solr-4.0.0\example\cloud-scripts\..\solr-webapp\webapp\WEB-INF\lib\apache-solr-solrj-4.0.0.jar
> 
> And anyway, it's a weird error, referencing a jar as a class, isn't it?  
> Start up a JIRA?
> 
> -----  Nick
> 
> On 11/16/2012 10:42 AM, Mark Miller wrote:
>> I *think* I tested the script on windows once way back.
>> 
>> Anyway, the code itself should not be OS specific.
>> 
>> One thing you might want to check if you are copying unix cmd line
>> stuff - I think windows separates classpath entries with ; rather than
>> : - so you likely to need to change that. You'd think java could have
>> been smart enough to accept either/or at worst, but meh.
>> 
>> For example:
>> .:/Users/jeeva/dc-1/solr-cli-lib/*
>> should be
>> .;/Users/jeeva/dc-1/solr-cli-lib/*
>> 
>> - Mark
>> 
>> On Thu, Nov 15, 2012 at 8:53 PM, Nick Chase <nch...@earthlink.net> wrote:
>>> Unfortunately, this doesn't seem to solve the issue; now I'm beginning to
>>> wonder if maybe it's because I'm on Windows.  Has anyone successfully run
>>> ZkCLI on Windows?
>>> 
>>> ----  Nick
>>> 
>>> 
>>> On 11/12/2012 2:27 AM, Jeevanandam Madanagopal wrote:
>>>> 
>>>> Nick - Sorry, embedded links are not shown in previous email. I'm
>>>> mentioning below.
>>>> 
>>>>> Handy SolrCloud ZkCLI Commands
>>>>> (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#handy-solrcloud-cli-commands)
>>>> 
>>>> 
>>>>> Uploading Solr Configuration into ZooKeeper ensemble
>>>>> (http://www.myjeeva.com/2012/10/solrcloud-cluster-single-collection-deployment/#uploading-solrconfig-to-zookeeper)
>>>> 
>>>> 
>>>> 
>>>> Cheers,
>>>> Jeeva
>>>> 
>>>> 
>>>> On Nov 12, 2012, at 12:48 PM, Jeevanandam Madanagopal <je...@myjeeva.com>
>>>> wrote:
>>>> 
>>>>> Nick -
>>>>> 
>>>>> I believe you're experiencing a difficulties with SolrCloud CLI commands
>>>>> for interacting ZooKeeper.
>>>>> Please have a look on below links, it will provide you direction.
>>>>> Handy SolrCloud ZkCLI Commands
>>>>> Uploading Solr Configuration into ZooKeeper ensemble
>>>>> 
>>>>> Cheers,
>>>>> Jeeva
>>>>> 
>>>>> On Nov 12, 2012, at 4:45 AM, Mark Miller <markrmil...@gmail.com> wrote:
>>>>> 
>>>>>> On 11/11/2012 04:47 PM, Yonik Seeley wrote:
>>>>>>> 
>>>>>>> On Sun, Nov 11, 2012 at 10:39 PM, Nick Chase <nch...@earthlink.net>
>>>>>>> wrote:
>>>>>>>> 
>>>>>>>> So I'm trying to use ZkCLI without success.  I DID start and stop Solr
>>>>>>>> in
>>>>>>>> non-cloud mode, so everything is extracted and it IS finding
>>>>>>>> zookeeper*.jar.
>>>>>>>> However, now it's NOT finding SolrJ.
>> 
>> 
>> 

Reply via email to