/Library/Tomcat/bin/catalina.sh run
[2018-11-23 01:19:56,794] Artifact springmvc_hello:war exploded: Waiting for server connection to start artifact deployment...
23-Nov-2018 01:19:58.350 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.13
23-Nov-2018 01:19:58.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 2 2018 14:27:55 UTC
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.13.0
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.14.1
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_131-b11
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /Users/chiu/Library/Caches/IntelliJIdea2018.2/tomcat/Unnamed_springmvc_hello
23-Nov-2018 01:19:58.352 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /Library/Tomcat
23-Nov-2018 01:19:58.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/chiu/Library/Caches/IntelliJIdea2018.2/tomcat/Unnamed_springmvc_hello/conf/logging.properties
23-Nov-2018 01:19:58.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
23-Nov-2018 01:19:58.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
23-Nov-2018 01:19:58.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
23-Nov-2018 01:19:58.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
23-Nov-2018 01:19:58.354 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
23-Nov-2018 01:19:58.355 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
23-Nov-2018 01:19:58.355 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
23-Nov-2018 01:19:58.355 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
23-Nov-2018 01:19:58.355 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
23-Nov-2018 01:19:58.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
23-Nov-2018 01:19:58.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/chiu/Library/Caches/IntelliJIdea2018.2/tomcat/Unnamed_springmvc_hello
23-Nov-2018 01:19:58.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Library/Tomcat
23-Nov-2018 01:19:58.357 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Library/Tomcat/temp
23-Nov-2018 01:19:58.357 INFO [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/chiu/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
23-Nov-2018 01:19:58.659 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
23-Nov-2018 01:19:58.720 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
23-Nov-2018 01:19:58.723 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:976)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:533)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:883)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.startup.Catalina.load(Catalina.java:646)
at org.apache.catalina.startup.Catalina.load(Catalina.java:669)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:306)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:491)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:236)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210)
at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1067)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1080)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:550)
at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:74)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:973)
... 13 more
23-Nov-2018 01:19:58.725 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-59733"]
23-Nov-2018 01:19:58.729 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
23-Nov-2018 01:19:58.746 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 915 ms
23-Nov-2018 01:19:58.802 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
23-Nov-2018 01:19:58.802 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.13
23-Nov-2018 01:19:58.822 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-59733"]
23-Nov-2018 01:19:58.837 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 91 ms
Connected to server
[2018-11-23 01:19:58,908] Artifact springmvc_hello:war exploded: Artifact is being deployed, please wait...
23-Nov-2018 01:19:59.398 SEVERE [RMI TCP Connection(2)-127.0.0.1] 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-Nov-2018 01:19:59.404 SEVERE [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2018-11-23 01:19:59,425] Artifact springmvc_hello:war exploded: Error during artifact deployment. See server log for details.
23-Nov-2018 01:20:08.828 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Library/Tomcat/webapps/manager]
23-Nov-2018 01:20:08.885 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Library/Tomcat/webapps/manager] has finished in [56] ms
只是为了演示一句话的文档,其中 Tomcat 已配置; 请各位大佬指点一番。
1
Sharuru 2018-11-23 08:10:06 +08:00 via Android
这么大一个:Caused by: java.net.BindException: Address already in use
该情况通常是端口被占用,检查本机 8080 端口的利用情况,若无法释放可通过传递 server.port 的方法改变启动端口。 |
2
zhuawadao 2018-11-23 09:07:25 +08:00
先把任务管理器中的 java.exe 杀掉试试
|
3
mmdsun 2018-11-23 09:10:47 +08:00 via Android
taskkill /f /t /im java* 把 java 进程杀掉。端口占用了
|
4
98jiang 2018-11-23 09:21:03 +08:00
上面的方法都可以,如果找不到的话在设置里的 tomcat 里换个端口呗。
|