赛车

Eclipse中Tomcat启动错误_a

2020-01-17 01:15:00来源:励志吧0次阅读

Eclipse中Tomcat启动错误

2009-5-24 20:25:31 org.apache.catalina.core.AprLifecycleListener init

信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse\bin;D:\Tomcat 6.0\bin

2009-5-24 20:25:31 org.apache.coyote.http11.Http11Protocol init

严重: Error initializing endpoint

java.net.BindException: Address already in use: JVM_Bind:8080

at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)

at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)

at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)

at org.apache.catalina.core.StandardService.initialize(StandardService.java:581)

at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)

at org.apache.catalina.startup.Catalina.load(Catalina.java:504)

at org.apache.catalina.startup.Catalina.load(Catalina.java:524)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)

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

2009-5-24 20:25:31 org.apache.catalina.startup.Catalina load

严重: Catalina.start

LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:8080

at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)

at org.apache.catalina.core.StandardService.initialize(StandardService.java:581)

at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)

at org.apache.catalina.startup.Catalina.load(Catalina.java:504)

at org.apache.catalina.startup.Catalina.load(Catalina.java:524)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)

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

2009-5-24 20:25:31 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 765 ms

2009-5-24 20:25:31 org.apache.catalina.core.StandardService start

信息: Starting service Catalina

2009-5-24 20:25:31 org.apache.catalina.core.StandardEngine start

信息: Starting Servlet Engine: Apache Tomcat/6.0.7

2009-5-24 20:25:31 org.apache.catalina.core.StandardHost start

信息: XML validation disabled

2009-5-24 20:25:32 org.apache.coyote.http11.Http11Protocol start

严重: Error starting endpoint

java.net.BindException: Address already in use: JVM_Bind:8080

at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)

at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:513)

at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:202)

at org.apache.catalina.connector.Connector.start(Connector.java:1132)

at org.apache.catalina.core.StandardService.start(StandardService.java:460)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

2009-5-24 20:25:32 org.apache.catalina.startup.Catalina start

严重: Catalina.start:

LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:8080

at org.apache.catalina.connector.Connector.start(Connector.java:1139)

at org.apache.catalina.core.StandardService.start(StandardService.java:460)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

2009-5-24 20:25:32 org.apache.catalina.startup.Catalina start

信息: Server startup in 1125 ms

2009-5-24 20:25:32 org.apache.catalina.core.StandardServer await

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

java.net.BindException: Address already in use: JVM_Bind

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

at java.net.PlainSocketImpl.bind(Unknown Source)

at java.net.ServerSocket.bind(Unknown Source)

at java.net.ServerSocket. <init>(Unknown Source)

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

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

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

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

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

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

Oracle会占用8080端口..最好改成8088类似不会被常规软件占用的端口

我觉得你装Tomcat时,没把JDK路径加载正确,或者版本兼容性不好!

换端口在server.xml中改,以下是我改成8088端口的代码:

<Connector port="8088" protocol="HTTP/1.1"

connectionTimeout="20000"

redirectPort="8443" URLEncoding="UTF-8" />

Address already in use: JVM_Bind:8080 tomcat端口被占用

第一种方法修改tomcat端口号在

conf--server.xml中修改端口号

第二种方法关闭被占用的8080端口,关闭方法如下:

1.打开CMD. cmd

2.查找端口号为8080的PID netstat -a -o

3.强行关闭 ntsd -c q -p PID(查询出来的PID号码)

然后再重新启动tomcat即可

云香精外用功效
饭后恶心精神焦虑抑郁消化不良
治疗退行性骨关节病的药有哪些
不含防腐剂的止咳药好使吗
分享到: