我有一个名为" app-0.0.1-SNAPSHOT.war"的war文件。我将它复制到我的/ webapps文件夹,它完全爆炸。但是,如果我将其重命名为" app.war"它没有爆炸。如果我将名称更改为" app.war"它完美爆炸。
为什么Tomcat只有在命名为" app.war"?
时才会爆炸我的战争?当我尝试在方案1中运行时,下面是控制台输出。
Jul 14, 2016 9:19:12 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:app' did not find a matching property.
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.35
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: May 11 2016 21:57:08 UTC
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.35.0
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Mac OS X
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.11.5
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86_64
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_92-b14
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: /Users/alanguo/apache-tomcat-8.0.35
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: /Users/alanguo/apache-tomcat-8.0.35
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/Users/alanguo/apache-tomcat-8.0.35
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/Users/alanguo/apache-tomcat-8.0.35
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=/Users/alanguo/apache-tomcat-8.0.35/wtpwebapps
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/Users/alanguo/apache-tomcat-8.0.35/endorsed
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=UTF-8
Jul 14, 2016 9:19:12 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/alanguo/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
Jul 14, 2016 9:19:12 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Jul 14, 2016 9:19:12 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jul 14, 2016 9:19:12 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-nio-8009"]
Jul 14, 2016 9:19:12 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
Jul 14, 2016 9:19:12 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 600 ms
Jul 14, 2016 9:19:12 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 14, 2016 9:19:12 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.35
Jul 14, 2016 9:19:13 AM org.apache.jasper.servlet.TldScanner scanJars
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.
Jul 14, 2016 9:19:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/docs
Jul 14, 2016 9:19:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/docs has finished in 14 ms
Jul 14, 2016 9:19:13 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/examples
Jul 14, 2016 9:19:14 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 14, 2016 9:19:14 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/examples has finished in 490 ms
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/host-manager
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/host-manager has finished in 16 ms
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/manager
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/manager has finished in 14 ms
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/ROOT
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/alanguo/apache-tomcat-8.0.35/webapps/ROOT has finished in 9 ms
Jul 14, 2016 9:19:14 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Jul 14, 2016 9:19:14 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Jul 14, 2016 9:19:14 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1687 ms