大家帮帮忙!Tomcat启动问题!!!
我在Eclipse里装了Tomcat插件,可是一启动Tomcat就出现异常,
一开始改了端口号,可以启动,就启动了一次,后来就不行了,每次都出现异常,
然后我又把端口改了,可每次启动还是出现这个异常.
请问是怎么回事?哪位高手能帮帮我?在下感激不尽!!!
出现的异常如下:
2007-9-8 11:07:56 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-9090
2007-9-8 11:07:57 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 7952 ms
2007-9-8 11:07:58 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2007-9-8 11:07:58 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.24
2007-9-8 11:07:58 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2007-9-8 11:07:58 org.apache.catalina.core.StandardHost getDeployer
信息: Create Host deployer for direct deployment ( non-jmx )
2007-9-8 11:07:58 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:E:\jakarta-tomcat-5.0.24\conf\Catalina\localhost\admin.xml
2007-9-8 11:08:07 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config= 'org.apache.struts.util.LocalStrings ', returnNull=true
2007-9-8 11:08:07 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config= 'org.apache.struts.action.ActionResources ', returnNull=true
2007-9-8 11:08:16 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config= 'org.apache.webapp.admin.ApplicationResources ', returnNull=true
2007-9-8 11:08:29 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:E:\jakarta-tomcat-5.0.24\conf\Catalina\localhost\balancer.xml
2007-9-8 11:08:31 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:E:\jakarta-tomcat-5.0.24\conf\Catalina\localhost\manager.xml
2007-9-8 11:08:32 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:E:\jakarta-tomcat-5.0.24\conf\Catalina\localhost\HibernateTest.xml
2007-9-8 11:08:34 org.apache.catalina.startup.ContextConfig applicationConfig
信息: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HibernateTest]
2007-9-8 11:08:36 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:E:\jakarta-tomcat-5.0.24\conf\Catalina\localhost\Test.xml
2007-9-8 11:08:36 org.apache.catalina.startup.ContextConfig applicationConfig
信息: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Test]
2007-9-8 11:08:36 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /webdav from URL file:E:\jakarta-tomcat-5.0.24\webapps\webdav
2007-9-8 11:08:37 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /tomcat-docs from URL file:E:\jakarta-tomcat-5.0.24\webapps\tomcat-docs
2007-9-8 11:08:37 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /servlets-examples from URL file:E:\jakarta-tomcat-5.0.24\webapps\servlets-examples
2007-9-8 11:08:38 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /jsp-examples from URL file:E:\jakarta-tomcat-5.0.24\webapps\jsp-examples
2007-9-8 11:08:41 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path from URL file:E:\jakarta-tomcat-5.0.24\webapps\ROOT
2007-9-8 11:08:43 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-9090
2007-9-8 11:08:48 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8009
2007-9-8 11:08:48 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=30/3485 config=E:\jakarta-tomcat-5.0.24\conf\jk2.properties
2007-9-8 11:08:48 org.apache.catalina.startup.Catalina start
信息: Server startup in 50813 ms
StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket. <init> (ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:487)
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
[解决办法]
你的tomcat使用的端口号已经被占用了,是不是在你启动tomcat之前已经启动过了。
[解决办法]
你先停了TOMCAT,直接点,去进程里把它关了
[解决办法]
TOMCAT启动之后不用的时候要正常关闭,否则在下次再启动的时候就会提示端口被占用;若端口已经被占用,解决方法是:把任务管理器中的所有的javaw.exe进程结束掉,然后重新启动ECLIPSE,再启动TOMCAT就可以了。