LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4734|回复: 2

tomcat无法启动, 日志文件如下,大家帮帮忙

[复制链接]
发表于 2007-12-1 16:07:22 | 显示全部楼层 |阅读模式
我首先安装的tomcat,然后又安装了apr,现在不能启动,也重装过tomcat
可是不知道什么原因,用的ubuntu7.04, jdk1.6, eclipse+myeclipse,在eclipse里就不能启动,大家给说这是什么原因啊?
我也修改过端口也不可以。

2007-12-1 16:00:05 org.apache.coyote.http11.Http11AprProtocol init
严重: Error initializing endpoint
java.lang.Exception: Socket bind failed: [22] Invalid argument
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
        at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
        at org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
        at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-12-1 16:00:05 org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [22] Invalid argument
        at org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
        at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
2007-12-1 16:00:05 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1050 ms
2007-12-1 16:00:05 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2007-12-1 16:00:05 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.25
2007-12-1 16:00:05 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2007-12-1 16:00:07 org.apache.coyote.http11.Http11AprProtocol start
严重: Error starting endpoint
java.lang.Exception: Socket bind failed: [22] Invalid argument
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
        at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:686)
        at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:146)
        at org.apache.catalina.connector.Connector.start(Connector.java:1090)
        at org.apache.catalina.core.StandardService.start(StandardService.java:457)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2007-12-1 16:00:07 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.lang.Exception: Socket bind failed: [22] Invalid argument
        at org.apache.catalina.connector.Connector.start(Connector.java:1097)
        at org.apache.catalina.core.StandardService.start(StandardService.java:457)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2007-12-1 16:00:07 org.apache.catalina.startup.Catalina start
信息: Server startup in 1778 ms
2007-12-1 16:00:07 org.apache.catalina.core.StandardServer await
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at org.apache.catalina.core.StandardServer.await(StandardServer.java:363)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2007-12-1 16:00:07 org.apache.coyote.http11.Http11AprProtocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
2007-12-1 16:00:07 org.apache.coyote.ajp.AjpAprProtocol pause
信息: Pausing Coyote AJP/1.3 on ajp-8009
2007-12-1 16:00:08 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2007-12-1 16:00:08 org.apache.catalina.connector.MapperListener destroy
警告: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
        at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
        at org.apache.catalina.connector.Connector.stop(Connector.java:1138)
        at org.apache.catalina.core.StandardService.stop(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
        at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)
2007-12-1 16:00:08 org.apache.coyote.http11.Http11AprProtocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080
2007-12-1 16:00:08 org.apache.catalina.connector.Connector stop
严重: Coyote connector has not been started
 楼主| 发表于 2007-12-1 16:27:38 | 显示全部楼层
现在其它的端口没有用到8080的,不知道什么原因?
大家帮帮我,不知道怎么办了?
我用的查端口的方法 是lsof -i :8080
没有查到占用这个端口的程序
回复 支持 反对

使用道具 举报

发表于 2008-2-21 14:07:40 | 显示全部楼层
你的8005端口被占用了没有?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表