第二个tomcat运行项目就是启动不成功
来源:6-13 单点登录Redis存储Session及SessionId问题说明与集群实战-3
Woods
2017-12-23
tomcat1 和Tomcat2 是可以正常启动的,但是在项目里面用 tomcat1启动项目是正常,由tomcat2 启动项目就未成功,报错日志也没看懂哪里有问题,用maven命令重新打包过,但是没用。
项目也是复制的,更改了一下tomcat的配置
在tomcat1启动项目正常 了 页面打开了,才在项目里启动Tomcat2 ,单独用tomcat2 启动项目也没成功 ,在tomcat2的root 目录下面没看见项目
日志如下
"D:\Program Files\tomcat2\bin\catalina.bat" run
[2017-12-23 10:47:18,863] Artifact mmall:war: Waiting for server connection to start artifact deployment...
Using CATALINA_2_BASE: "D:\Program Files\tomcat2"
Using CATALINA_2_HOME: "D:\Program Files\tomcat2"
Using CATALINA_TMPDIR: "D:\Program Files\tomcat2\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_80"
Using CLASSPATH: "D:\Program Files\tomcat2\bin\bootstrap.jar;D:\Program Files\tomcat2\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:51561', transport: 'socket'
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.73
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Nov 7 2016 21:27:23 UTC
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.73.0
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 7
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 6.1
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: C:\Program Files\Java\jdk1.7.0_80\jre
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.7.0_80-b15
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\Program Files\tomcat2
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\Program Files\tomcat2
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51561,suspend=y,server=n
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -javaagent:C:\Users\Administrator\.IntelliJIdea2017.3\system\captureAgent\debugger-agent.jar=C:\Users\Administrator\AppData\Local\Temp\capture117.props
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote=
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.port=2099
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=D:\Program Files\tomcat2\conf\logging.properties
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\Program Files\tomcat2\endorsed
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\Program Files\tomcat2
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\Program Files\tomcat2
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:\Program Files\tomcat2\temp
十二月 23, 2017 10:47:20 下午 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: C:\Program Files\Java\jdk1.7.0_80\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\ProgramData\Oracle\Java\javapath;D:\app\Administrator\product\11.2.0\client_1\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;D:\Program Files\Instant Client\bin;D:\Program Files\apache-maven-3.0.5\bin;D:\mysql\bin;\Git\cmd;D:\mysql\bin;C:\Program Files\Java\jdk1.7.0_80\bin;D:\Program Files\Git\cmd;D:\Program Files\SVN\bin;D:\Program Files\Gradle\gradle-4.4\bin;D:\Program Files\Fiddler2\Fiddler;.
十二月 23, 2017 10:47:20 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-9080"]
十二月 23, 2017 10:47:20 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-9009"]
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 764 ms
十二月 23, 2017 10:47:20 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十二月 23, 2017 10:47:20 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.73
十二月 23, 2017 10:47:20 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat2\webapps\docs
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files\tomcat2\webapps\docs has finished in 597 ms
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat2\webapps\examples
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files\tomcat2\webapps\examples has finished in 458 ms
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat2\webapps\host-manager
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files\tomcat2\webapps\host-manager has finished in 95 ms
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat2\webapps\manager
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files\tomcat2\webapps\manager has finished in 125 ms
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\Program Files\tomcat2\webapps\ROOT
十二月 23, 2017 10:47:21 下午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(D:\Program Files\tomcat2\webapps\ROOT\WEB-INF\lib\tomcat-servlet-api-7.0.64.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 23, 2017 10:47:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十二月 23, 2017 10:47:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\Program Files\tomcat2\webapps\ROOT has finished in 136 ms
十二月 23, 2017 10:47:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-9080"]
十二月 23, 2017 10:47:21 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-9009"]
十二月 23, 2017 10:47:21 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1500 ms
Connected to server
[2017-12-23 10:47:22,050] Artifact mmall:war: Artifact is being deployed, please wait...
十二月 23, 2017 10:47:22 下午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(D:\Program Files\tomcat2\webapps\ROOT\WEB-INF\lib\tomcat-servlet-api-7.0.64.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
十二月 23, 2017 10:47:22 下午 org.apache.catalina.startup.TldConfig execute
信息: 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.
十二月 23, 2017 10:47:22 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十二月 23, 2017 10:47:22 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [] startup failed due to previous errors
[2017-12-23 10:47:22,795] Artifact mmall:war: Error during artifact deployment. See server log for details.
----------------------------------------------------------------------------------------------------------------
tomcat2 的配置 和 tomcat2 的 log
2回答
-
你好,同学。在一个机器启动多个tomcat实例是会有这样的问题的,一定要保证tomcat1完全启动之后,再启动tomcat2,这样才会没异常。
解决了就好,赞同学。停止的话会这样的。不过没关系,不影响咱们继续学习前行~~
00 -
Woods
提问者
2017-12-24
老师,问题貌似解决了,只是 时灵时不灵。o(╥﹏╥)o,出现启动失败,必须停止 tomcat 1 和 tomcat2,然后再重新启动才有效
00
相似问题