Solr无法提供JSP,管理界面404 [英] Solr fails to serve JSPs, admin interface 404s

查看:163
本文介绍了Solr无法提供JSP,管理界面404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用solr时遇到麻烦.我正在使用OpenJDK在Ubuntu上运行它:

I'm having trouble with solr. I'm running it on Ubuntu with OpenJDK:

>> java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

管理界面应由Jetty 7提供服务,Jetty 7根据以下说明安装在solr/example文件夹中: http://wiki.apache.org/solr/SolrJetty#Update_Jetty

The admin interface should be served by Jetty 7, which is installed in the solr/example folder according to these instructions: http://wiki.apache.org/solr/SolrJetty#Update_Jetty

使用"start.jar"启动solr时,我看到以下内容:

On starting solr with 'start.jar' I see the following:

>> java -jar
2012-05-21 14:03:01.121:WARN:oejd.ContextDeployer:ContextDeployer is deprecated. Use ContextProvider
2012-05-21 14:03:01.126:WARN:oejd.WebAppDeployer:WebAppDeployer is deprecated. Use WebAppProvider

...此过程结束.

如果我改用'jetty7.jar',则solr会启动并运行,但是在尝试访问localhost:8983/solr/上的管理界面时,会看到以下内容:

If I instead use 'jetty7.jar', solr starts and runs, but on attempting to access the admin interface at localhost:8983/solr/ I see the following:

HTTP ERROR 404

Problem accessing /solr/. Reason:

    Servlet Not Initialized
Caused by:

javax.servlet.UnavailableException: Servlet Not Initialized

命令行上的输出如下:

>> java -jar jetty7.jar 
2012-05-21 14:03:01.121:WARN:oejd.ContextDeployer:ContextDeployer is deprecated. Use ContextProvider
2012-05-21 14:03:01.126:WARN:oejd.WebAppDeployer:WebAppDeployer is deprecated. Use WebAppProvider
2012-05-21 14:03:01.129:INFO:oejs.Server:jetty-7.6.3.v20120416
2012-05-21 14:03:01.238:INFO:oejw.WebInfConfiguration:Extract jar:file:/var/lib/solr/apache-solr-3.6.0/example/webapps/solr.war!/ to /tmp/jetty-0.0.0.0-8983-solr.war-_solr-any-/webapp
2012-05-21 14:03:02.518:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet
2012-05-21 14:03:02.565:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/solr,file:/tmp/jetty-0.0.0.0-8983-solr.war-_solr-any-/webapp/},file:/var/lib/solr/apache-solr-3.6.0/example/webapps/solr.war
May 21, 2012 2:03:02 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)

我认为是没有对/solr的JSP支持,没有找到org.apache.jasper.servlet.JspServlet"这一行.

I assume that the "NO JSP Support for /solr, did not find org.apache.jasper.servlet.JspServlet" line is the culprit.

有什么想法会发生这种情况吗?

Any ideas why this would happen?

推荐答案

最终破解了它:我意识到我没有从jetty文件夹中复制start.ini和start.jar,并且其中存在一些需要的配置.

Eventually cracked it: I realized I had not copied start.ini along with start.jar from the jetty folder and there was some needed configuration in there.

这篇关于Solr无法提供JSP,管理界面404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆