Solfish在Glassfish上出现错误503

时间:2013-04-26 12:40:04

标签: solr glassfish-3

我是Solr的新手,我使用Solr示例编辑的example-DIH版本。使用start.jar(Solr的Jetty容器)可以很好地工作。但现在我想在我的localhost 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 =螺纹-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 |严重| glassfish3.1.2 | javax.enterprise.system.tools.deployment.org.glassfish.deployment.common | _ThreadID = 83; _ThreadName = Thread- 2; | DPL8006:   get / add描述符失败:filter-dispatched-requests-enabled TO   假|#]

     

[#| 2013-04-26T13:38:52.816 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.servlet.SolrDispatchFilter | _ThreadID = 83; _ThreadName =螺纹-2; | SolrDispatchFilter.init() |#]

     

[#| 2013-04-26T13:38:52.864 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.core.SolrResourceLoader | _ThreadID = 83; _ThreadName =线程2; |没有   / solr / home in JNDI |#]

     _ThreadName =线程2;; |使用52.864 + 0200 | INFO | glassfish3.1.2 | | org.apache.solr.core.SolrResourceLoader _ThreadID = 83:38:2013-04-26T13 | [#

  系统属性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 =线程2; |寻找   for 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 =线程2; |新   CoreContainer 1748362605 |#]

     

[#| 2013-04-26T13:38:52.904 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.core.CoreContainer | _ThreadID = 83; _ThreadName =线程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 =线程2; |新   目录的SolrResourceLoader:   'C:/ solr的/示例/实施例-DIH / solr的\' |#]

     

[#| 2013-04-26T13:38:53.604 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   socketTimeout to:0 |#]

     

[#| 2013-04-26T13:38:53.605 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   urlScheme:http:// |#]

     

[#| 2013-04-26T13:38:53.605 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   connTimeout to:0 |#]

     

[#| 2013-04-26T13:38:53.605 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   maxConnectionsPerHost:20 |#]

     

[#| 2013-04-26T13:38:53.606 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   corePoolSize为:0 |#]

     

[#| 2013-04-26T13:38:53.606 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   maximumPoolSize:2147483647 |#]

     

[#| 2013-04-26T13:38:53.607 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   maxThreadIdleTime to:5 |#]

     

[#| 2013-04-26T13:38:53.607 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   sizeOfQueue to:-1 |#]

     

[#| 2013-04-26T13:38:53.608 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.handler.component.HttpShardHandlerFactory | _ThreadID = 83; _ThreadName =线程2; |设定   fairnessPolicy to:false |#]

     

[#| 2013-04-26T13:38:53.643 + 0200 | INFO | glassfish3.1.2 | org.apache.solr.client.solrj.impl.HttpClientUtil | _ThreadID = 83; _ThreadName =线程2; |创建新的http客户端,配置: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; _TreadName = Thread-2; |无法启动Solr。检查solr / home属性和日志|#]

我知道Solr没有开始,但我不知道为什么。我做错了吗?

1 个答案:

答案 0 :(得分:2)

看起来像Glassfishs密钥文件的问题。您可以尝试通过将这些特定的JVM参数添加到Glassfish配置来提供密码:

-Djavax.net.ssl.keyStorePassword=changeit
-Djavax.net.ssl.trustStorePassword=changeit

您也可以使用asadmin执行此操作:

asadmin create-jvm-options -Djavax.net.ssl.keyStorePassword=changeit
asadmin create-jvm-options -Djavax.net.ssl.trustStorePassword=changeit

我自己尝试过,但Glassfish会引发与某些缺失依赖关系相关的其他错误。
修复这些导致其他问题...... :(