Tomcat应用程序404无法加载-无法启动上下文路径中的应用程序

时间:2019-02-03 11:50:21

标签: java tomcat odk

我正在尝试使用以下方法部署预打包的WAR文件(ODK聚合):

  • Centos

  • JVM 1.8.0_191-b12

  • Tomcat 7

我的其他Web应用程序将加载(示例,管理器和一些测试应用程序),但是该特定应用程序将无法加载-我得到了404,这是有道理的,因为在启动tomcat(或尝试启动它)时无法加载通过经理)。 Catalina日志指示“严重:由于先前的错误,上下文[/ jamiibora]启动失败”和“严重:一个或多个侦听器无法启动。有关详细信息,请参见相应的容器日志文件。本地主机日志文件为空。

我尝试根据Tomcat: One or more listeners failed to start添加logging.properties文件。但是,我在catalina或localhost日志文件中没有得到任何其他输出(请注意,我没有CATALINA_HOME env变量)。

建议。

猫/var/log/tomcat/catalina.2019-02-03.log

Feb 03, 2019 5:33:49 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-apr-8080"]
Feb 03, 2019 5:33:49 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Feb 03, 2019 5:33:49 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-apr-8080"]
Feb 03, 2019 5:33:49 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-apr-8080"]
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/7.0.76
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Oct 1 2018 16:39:09 UTC
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         7.0.76.0
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Linux
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            3.10.0-957.1.3.el7.x86_64
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.8.0_191-b12
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         /usr/share/tomcat
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         /usr/share/tomcat
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/usr/share/tomcat
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/usr/share/tomcat
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/var/cache/tomcat/temp
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Feb 03, 2019 5:33:49 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded APR based Apache Tomcat Native library 1.2.17 using APR version 1.4.8.
Feb 03, 2019 5:33:49 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Feb 03, 2019 5:33:49 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.2k-fips  26 Jan 2017)
Feb 03, 2019 5:33:49 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Feb 03, 2019 5:33:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 580 ms
Feb 03, 2019 5:33:50 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 03, 2019 5:33:50 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.76
Feb 03, 2019 5:33:50 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat/webapps/ROOT.war
Feb 03, 2019 5:33:50 AM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching 'Context/JarScanner/JarScanFilter'.
Feb 03, 2019 5:33:50 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:50 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/tomcat/webapps/ROOT.war has finished in 640 ms
Feb 03, 2019 5:33:50 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat/webapps/jamiibora.war
Feb 03, 2019 5:33:50 AM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching 'Context/JarScanner/JarScanFilter'.
Feb 03, 2019 5:33:54 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:55 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Feb 03, 2019 5:33:55 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/jamiibora] startup failed due to previous errors
Feb 03, 2019 5:33:55 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
SEVERE: The web application [/jamiibora] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Feb 03, 2019 5:33:55 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/jamiibora] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/tomcat/webapps/jamiibora.war has finished in 4,853 ms
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/examples
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat/webapps/examples has finished in 333 ms
Feb 03, 2019 5:33:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/sample
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat/webapps/sample has finished in 175 ms
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/host-manager
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat/webapps/host-manager has finished in 219 ms
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/manager
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat/webapps/manager has finished in 409 ms
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/test
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.TldConfig execute
INFO: 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.
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat/webapps/test has finished in 151 ms
Feb 03, 2019 5:33:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Feb 03, 2019 5:33:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6859 ms
Feb 03, 2019 5:34:00 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.  Could not load .  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.

cat /var/log/tomcat/localhost.2019-02-03.log

Feb 03, 2019 5:33:49 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Feb 03, 2019 5:33:49 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Feb 03, 2019 5:33:55 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 03, 2019 5:33:55 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 03, 2019 5:33:55 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5d04f344')

1 个答案:

答案 0 :(得分:0)

根据documentation,ODK Aggregate需要Tomcat 8。