H5W3
当前位置:H5W3 > 其他技术问题 > 正文

Solr 6.6,配置tomcat启动报错

问题1:solr 自带jetty启动是没有问题的,现在想将项目配置到 tomcat 下,用tomcat 启动,一直报错
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
七月 31, 2017 11:40:38 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/solr] startup failed due to previous errors
问题2:感觉这个问题不好描述,我启动是按照他人的步骤:http://www.cnblogs.com/qishao…

启动的日志

31-Jul-2017 13:46:47.815 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.16
31-Jul-2017 13:46:47.819 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jun 21 2017 17:01:09 UTC
31-Jul-2017 13:46:47.819 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.16.0
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Mac OS X
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.12.6
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          x86_64
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_121-b13
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
31-Jul-2017 13:46:47.820 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16
31-Jul-2017 13:46:47.821 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16
31-Jul-2017 13:46:47.821 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/conf/logging.properties
31-Jul-2017 13:46:47.821 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
31-Jul-2017 13:46:47.822 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
31-Jul-2017 13:46:47.822 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
31-Jul-2017 13:46:47.822 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16
31-Jul-2017 13:46:47.822 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16
31-Jul-2017 13:46:47.822 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/temp
31-Jul-2017 13:46:47.822 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/niuhesm/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
31-Jul-2017 13:46:47.955 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
31-Jul-2017 13:46:47.988 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-Jul-2017 13:46:47.992 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
31-Jul-2017 13:46:47.994 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-Jul-2017 13:46:47.995 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 636 ms
31-Jul-2017 13:46:48.024 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
31-Jul-2017 13:46:48.024 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.16
31-Jul-2017 13:46:48.035 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/docs]
31-Jul-2017 13:46:48.355 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/docs] has finished in [320] ms
31-Jul-2017 13:46:48.355 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/examples]
31-Jul-2017 13:46:48.665 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/examples] has finished in [310] ms
31-Jul-2017 13:46:48.666 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/host-manager]
31-Jul-2017 13:46:48.695 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/host-manager] has finished in [28] ms
31-Jul-2017 13:46:48.695 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/manager]
31-Jul-2017 13:46:48.718 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/manager] has finished in [23] ms
31-Jul-2017 13:46:48.718 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/ROOT]
31-Jul-2017 13:46:48.736 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/ROOT] has finished in [18] ms
31-Jul-2017 13:46:48.736 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/solr]
31-Jul-2017 13:46:53.911 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
31-Jul-2017 13:46:53.916 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
31-Jul-2017 13:46:53.916 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/solr] startup failed due to previous errors
31-Jul-2017 13:46:53.927 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/niuhesm/Library/ApacheTomcat/apache-tomcat-8.5.16/webapps/solr] has finished in [5,191] ms
31-Jul-2017 13:46:53.930 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
31-Jul-2017 13:46:53.945 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
31-Jul-2017 13:46:53.949 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 5953 ms


回答:

刚看了下,JAR 没有导齐,还有一种情况是 JDK7的时候,说 solr5 之后,就必须要 JDK8 支持,你们可以是试试

这些是启动所需要的 JAR 包:


solr-6.6.0/server/lib

metrics-core-3.2.2.jar
metrics-ganglia-3.2.2.jar
metrics-graphite-3.2.2.jar
metrics-jetty9-3.2.2.jar
metrics-jvm-3.2.2.jar

solr-6.6.0/server/lib/ext

jcl-over-slf4j-1.7.7.jar
jul-to-slf4j-1.7.7.jar
log4j-1.2.17.jar
slf4j-api-1.7.7.jar
slf4j-log4j12-1.7.7.jar

回答:

我遇到了同样的问题! 请问你解决了吗! 522351468 我QQ

本文地址:H5W3 » Solr 6.6,配置tomcat启动报错

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址