Apache Tomcat/7.0.42 +solr4.5 配置安装时,遇到 500 错误,求解,多谢~~

发布于 2021-11-21 12:01:42 字数 11174 浏览 854 评论 5

Apache Tomcat/7.0.42 +solr4.5 部署时以下问题,求解!!

可以成功访问tomcat的主页http://localhost:8983/

但访问http://localhost:8983/solr/时出现以下错误,

HTTPステータス 500 - {msg=SolrCore 'collection1' is not available due to init failure:

 Error loading class 'solr.clustering.ClusteringComponent',trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Error loading class 'solr.clustering.ClusteringComponent'

    at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:785)

    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:295)

    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:195)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

    at java.lang.Thread.run(Thread.java:619)

Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent'

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:834)

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:625)

    at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:524)

    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:559)

    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249)

    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:241)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    ... 3 more

Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent'

    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:449)

    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:381)

    at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:526)

    at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:582)

    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2128)

    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2122)

    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2155)

    at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:1177)

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:762)

    ... 13 more

Caused by: java.lang.ClassNotFoundException: solr.clustering.ClusteringComponent

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:592)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:247)

    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:433)

    ... 21 more

,code=500}</h1><HR size="1" noshade="noshade"><p><b>type</b> ステータスレポート</p><p><b>メッセージ</b> <u>{msg=SolrCore 'collection1' is not available due to init failure: Error loading class 'solr.clustering.ClusteringComponent',trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Error loading class 'solr.clustering.ClusteringComponent'

    at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:785)

    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:295)

    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:195)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)

    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

    at java.lang.Thread.run(Thread.java:619)

Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent'

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:834)

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:625)

    at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:524)

    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:559)

    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:249)

    at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:241)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    ... 3 more

Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.clustering.ClusteringComponent'

    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:449)

    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:381)

    at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:526)

    at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:582)

    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2128)

    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2122)

    at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2155)

    at org.apache.solr.core.SolrCore.loadSearchComponents(SolrCore.java:1177)

    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:762)

    ... 13 more

Caused by: java.lang.ClassNotFoundException: solr.clustering.ClusteringComponent

    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:592)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

    at java.lang.Class.forName0(Native Method)

    at java.lang.Class.forName(Class.java:247)

    at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:433)

    ... 21 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

多情癖 2021-11-23 20:00:00

solr-4.5.0/example/solr/collection1/conf/solrconfig.xml 这里面的jar包地址找对

猫性小仙女 2021-11-23 11:02:47

这是因为你solr的solrconfig.xml包引入的路径有问题,这里有解决方案:http://www.devnote.cn/article/34.html

一个人的旅程 2021-11-23 10:18:50

关于solr的教程请查看:
http://www.luoshengsha.com/frame/solr

一笔一画续写前缘 2021-11-23 01:46:33

船老大,是那个目录下少了jar包?

晚风撩人 2021-11-22 08:17:19

少jar包了吧

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文