You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2012/12/14 22:58:13 UTC

[jira] [Resolved] (SOLR-4192) There is an odd classpath gotchya with ZkCli scripts.

     [ https://issues.apache.org/jira/browse/SOLR-4192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Miller resolved SOLR-4192.
-------------------------------

    Resolution: Invalid
    
> There is an odd classpath gotchya with ZkCli scripts.
> -----------------------------------------------------
>
>                 Key: SOLR-4192
>                 URL: https://issues.apache.org/jira/browse/SOLR-4192
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>             Fix For: 4.1, 5.0
>
>
> I saw this many months ago while working with a customer, but forgot to investigate further.
> When using a classpath that just points to the webapp libs, you seem to get an error about not being able to find one of the jars in that folder. If you also specifically include the one solrj jar it complains about, everything works. WTF?
> Does not work:
> {code}java -classpath example/solr-webapp/webapp/WEB-INF/lib/* org.apache.solr.cloud.ZkCLI -cmd bootstrap -zkhost 127.0.0.1:9983 -solrhome example/solr -runzk 8983{code}
> Works
> {code}java -classpath example/solr-webapp/webapp/WEB-INF/lib/*:example/solr-webapp/webapp/WEB-INF/lib/apache-solr-solrj-5.0-SNAPSHOT.jar org.apache.solr.cloud.ZkCLI -cmd bootstrap -zkhost 127.0.0.1:9983 -solrhome example/solr -runzk 8983
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org