macos - mac eclipse tomcat无法启动。

【字号: 日期:2023-08-18浏览:24作者:雯心

问题描述

mac eclipse tomcat无法启动。

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Server version:Apache Tomcat/8.0.26

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Server built: Aug 18 2015 11:38:37 UTC

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Server number: 8.0.26.0

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Name: Mac OS X

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Version: 10.10.5

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Architecture: x86_64

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Version: 1.8.0_60-b27

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Vendor: Oracle Corporation

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_BASE: /Users/yuanjunwen/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_HOME: /Applications/apache-tomcat-8.0.26

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.base=/Users/yuanjunwen/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.home=/Applications/apache-tomcat-8.0.26

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dwtp.deploy=/Users/yuanjunwen/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Djava.endorsed.dirs=/Applications/apache-tomcat-8.0.26/endorsed

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dfile.encoding=UTF-8

九月 22, 2015 1:56:34 下午 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/yuanjunwen/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

九月 22, 2015 1:56:34 下午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ['http-nio-8090']

九月 22, 2015 1:56:34 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

信息: Using a shared selector for servlet write/read

九月 22, 2015 1:56:34 下午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ['ajp-nio-8009']

九月 22, 2015 1:56:34 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

信息: Using a shared selector for servlet write/read

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 950 ms

九月 22, 2015 1:56:34 下午 org.apache.catalina.core.StandardService startInternal

信息: Starting service Catalina

九月 22, 2015 1:56:34 下午 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/8.0.26

九月 22, 2015 1:56:34 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ['http-nio-8090']

九月 22, 2015 1:56:34 下午 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ['ajp-nio-8009']

九月 22, 2015 1:56:34 下午 org.apache.catalina.startup.Catalina start

信息: Server startup in 382 ms

九月 22, 2015 1:56:39 下午 org.apache.catalina.core.StandardServer await

严重: StandardServer.await: create[localhost:8005]:

java.net.BindException: Can’t assign requested address

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)

at java.net.ServerSocket.bind(ServerSocket.java:375)

at java.net.ServerSocket.<init>(ServerSocket.java:237)

at org.apache.catalina.core.StandardServer.await(StandardServer.java:420)

at org.apache.catalina.startup.Catalina.await(Catalina.java:713)

at org.apache.catalina.startup.Catalina.start(Catalina.java:659)

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:497)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

九月 22, 2015 1:56:39 下午 org.apache.coyote.AbstractProtocol pause

信息: Pausing ProtocolHandler ['http-nio-8090']

九月 22, 2015 1:56:41 下午 org.apache.coyote.AbstractProtocol pause

信息: Pausing ProtocolHandler ['ajp-nio-8009']

九月 22, 2015 1:56:43 下午 org.apache.catalina.core.StandardService stopInternal

信息: Stopping service Catalina

九月 22, 2015 1:56:43 下午 org.apache.coyote.AbstractProtocol stop

信息: Stopping ProtocolHandler ['http-nio-8090']

九月 22, 2015 1:56:46 下午 org.apache.coyote.AbstractProtocol stop

信息: Stopping ProtocolHandler ['ajp-nio-8009']

九月 22, 2015 1:56:48 下午 org.apache.coyote.AbstractProtocol destroy

信息: Destroying ProtocolHandler ['http-nio-8090']

九月 22, 2015 1:56:48 下午 org.apache.coyote.AbstractProtocol destroy

严重: Failed to destroy end point associated with ProtocolHandler ['http-nio-8090']

java.io.IOException: Thread signal failed

at sun.nio.ch.NativeThread.signal(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.implCloseSelectableChannel(ServerSocketChannelImpl.java:292)

at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:234)

at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)

at sun.nio.ch.ServerSocketAdaptor.close(ServerSocketAdaptor.java:137)

at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:476)

at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:818)

at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:532)

at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)

at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)

at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:588)

at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)

at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:859)

at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)

at org.apache.catalina.startup.Catalina.stop(Catalina.java:699)

at org.apache.catalina.startup.Catalina.start(Catalina.java:660)

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:497)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

九月 22, 2015 1:56:48 下午 org.apache.coyote.AbstractProtocol destroy

信息: Destroying ProtocolHandler ['ajp-nio-8009']

尝试了很久,一直不成功,把端口改成了8090,也改了其他的,好像没有什么用

问题解答

回答1:

server.xml:

<Server address='0.0.0.0' port='8005' shutdown='SHUTDOWN'>

相关文章: