我是 Solr 的新手,我使用 Solr 示例中的 example-DIH 的编辑版本。使用 start.jar(Solr 的 Jetty 容器)一切正常。但现在我想在我的本地主机 Glassfish 3.1.2.2 上运行它。Solr 是 4.2.1
我从这里开始
http://wiki.apache.org/solr/SolrGlassfish
我在服务器/属性中添加了属性
solr.data.dir with value C:/solr/example/example-DIH/solr/db/data
solr.solr.home with value C:/solr/example/example-DIH/solr
我重新启动服务器并部署了 solr-4.2.1.war(在 C:\solr\dist 中找到)。但是当我开始的时候,Glassfish 说HTTP Status 503 - Server is shutting down
我检查了日志
[#|2013-04-26T13:38:50.313+0200|INFO|glassfish3.1.2|org.glassfish.admingui|_ThreadID=113;_ThreadName=Thread-2;|uploadFileName=solr-4.2.1.war|#]
[#|2013-04-26T13:38:51.864+0200|警告|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=83;_ThreadName=Thread-2;| DPL8007:不支持的部署描述符元素 schemaLocation 值 http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd|#]
[#|2013-04-26T13:38:51.865+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=83;_ThreadName=Thread-2;| DPL8006:获取/添加描述符失败:filter-dispatched-requests-enabled TO false|#]
[#|2013-04-26T13:38:52.816+0200|INFO|glassfish3.1.2|org.apache.solr.servlet.SolrDispatchFilter|_ThreadID=83;_ThreadName=Thread-2;|SolrDispatchFilter.init()|#]
[#|2013-04-26T13:38:52.864+0200|INFO|glassfish3.1.2|org.apache.solr.core.SolrResourceLoader|_ThreadID=83;_ThreadName=Thread-2;|JNDI 中没有 /solr/home| #]
[#|2013-04-26T13:38:52.864+0200|INFO|glassfish3.1.2|org.apache.solr.core.SolrResourceLoader|_ThreadID=83;_ThreadName=Thread-2;|使用系统属性 solr.solr.home : C:/solr/example/example-DIH/solr|#]
[#|2013-04-26T13:38:52.895+0200|INFO|glassfish3.1.2|org.apache.solr.core.CoreContainer|_ThreadID=83;_ThreadName=Thread-2;|寻找 solr.xml: C: \solr\example\example-DIH\solr\solr.xml|#]
[#|2013-04-26T13:38:52.899+0200|INFO|glassfish3.1.2|org.apache.solr.core.CoreContainer|_ThreadID=83;_ThreadName=Thread-2;|New CoreContainer 1748362605|#]
[#|2013-04-26T13:38:52.904+0200|INFO|glassfish3.1.2|org.apache.solr.core.CoreContainer|_ThreadID=83;_ThreadName=Thread-2;|使用 Solr Home 加载 CoreContainer:'C :/solr/example/example-DIH/solr\'|#]
[#|2013-04-26T13:38:52.905+0200|INFO|glassfish3.1.2|org.apache.solr.core.SolrResourceLoader|_ThreadID=83;_ThreadName=Thread-2;|用于目录的新 SolrResourceLoader:'C: /solr/example/example-DIH/solr\'|#]
[#|2013-04-26T13:38:53.604+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 socketTimeout 设置为:0| #]
[#|2013-04-26T13:38:53.605+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 urlScheme 设置为:http: //|#]
[#|2013-04-26T13:38:53.605+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 connTimeout 设置为:0| #]
[#|2013-04-26T13:38:53.605+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 maxConnectionsPerHost 设置为:20| #]
[#|2013-04-26T13:38:53.606+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 corePoolSize 设置为:0| #]
[#|2013-04-26T13:38:53.606+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 maximumPoolSize 设置为:2147483647| #]
[#|2013-04-26T13:38:53.607+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 maxThreadIdleTime 设置为:5| #]
[#|2013-04-26T13:38:53.607+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 sizeOfQueue 设置为:-1 |#]
[#|2013-04-26T13:38:53.608+0200|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=83;_ThreadName=Thread-2;|将 fairnessPolicy 设置为:false| #]
[#|2013-04-26T13:38:53.643+0200|INFO|glassfish3.1.2|org.apache.solr.client.solrj.impl.HttpClientUtil|_ThreadID=83;_ThreadName=Thread-2;|创建新的http客户端, config:maxConnectionsPerHost=20&maxConnections=10000&socketTimeout=0&connTimeout=0&retry=false|#]
[#|2013-04-26T13:38:53.791+0200|SEVERE|glassfish3.1.2|org.apache.solr.servlet.SolrDispatchFilter|_ThreadID=83;_ThreadName=Thread-2;|无法启动 Solr。检查 solr/home 属性和日志|#]
我知道 Solr 没有启动,但我不知道为什么。我设置错了吗?