[
https://issues.apache.org/jira/browse/SOLR-3648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419572#comment-13419572
]
Mark Miller commented on SOLR-3648:
-----------------------------------
In this case I assume the problem is in the VelocityResponseWriter.
{code}
VelocityEngine engine = new VelocityEngine();
String template_root = request.getParams().get("v.base_dir");
File baseDir = new
File(request.getCore().getResourceLoader().getConfigDir(), "velocity");
if (template_root != null) {
baseDir = new File(template_root);
}
engine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH,
baseDir.getAbsolutePath());
engine.setProperty("params.resource.loader.instance", new
SolrParamResourceLoader(request));
SolrVelocityResourceLoader resourceLoader =
new
SolrVelocityResourceLoader(request.getCore().getSolrConfig().getResourceLoader());
engine.setProperty("solr.resource.loader.instance", resourceLoader);
{code}
It looks like its asking for the location of config files - they are in
zookeeper - but this 'engine' wants a file path. Looks like some difficulties...
> /browse returns this stack trace to the browser HTTP ERROR 500
> --------------------------------------------------------------
>
> Key: SOLR-3648
> URL: https://issues.apache.org/jira/browse/SOLR-3648
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 4.0-ALPHA
> Environment: RHEL 5.4, SolrCloud
> Reporter: Nick Cotton
> Priority: Blocker
> Labels: patch
> Fix For: 4.0
>
>
> When run in a SolrCloud configuration the Velocity searchHandler responds to
> a /browse request with an HTTP error 500 and a stack trace indicating
> org.apache.solr.common.cloud.ZooKeeperException:
> ZkSolrResourceLoader does not support getConfigDir()
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]