Tomcat Boot exception: address already in Use:jvm_bind

Source: Internet
Author: User
Tags apache tomcat

Sad urges Ah, the level is too bad, a small problem tangled for a long time .... Summed up the process of the solution, or thanks to the Niang and a lot of previous posts ah ....

2011-8-3 19:22:00 org.apache.catalina.core.AprLifecycleListener init
Information: The APR based Apache Tomcat Native Librar Y which allows optimal performanc
E in production environments is not found on the Java.library.path:g:\program
Files\apache Software Foundation\tomcat 6.0\bin; C:\WINDOWS\Sun\Java\bin; C:\WIN
Dows\system32; C:\WINDOWS; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem
;D: \oracle\product\10.1.0\db_1\bin;d:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\c
Lient;d:\oracle\product\10.1.0\db_1\jre\1.4.2\bin; E:\jdk1.6_update10\bin;
2011-8-3 19:22:00 org.apache.coyote.http11.Http11Protocol init
Serious: Error initializing endpoint
Java.net.BindException:Address already in use:jvm_bind<null>:8080
         at Org.apache.tomcat.util.net.JIoEndpoint.init (jioendpoint.java:509)
         at Org.apache.coyote.http11.Http11Protocol.init (http11protocol.java:176)

At Org.apache.catalina.connector.Connector.initialize (connector.java:105
8)
At Org.apache.catalina.core.StandardService.initialize (STANDARDSERVICE.J
ava:677)
At Org.apache.catalina.core.StandardServer.initialize (standardserver.jav
a:795)
At Org.apache.catalina.startup.Catalina.load (catalina.java:535)
At Org.apache.catalina.startup.Catalina.load (catalina.java:555)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.
JAVA:39)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodacces
SORIMPL.JAVA:25)
At Java.lang.reflect.Method.invoke (method.java:597)
At Org.apache.catalina.startup.Bootstrap.load (bootstrap.java:260)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:412)
2011-8-3 19:22:00 Org.apache.catalina.startup.Catalina Load
Serious: Catalina.start
Lifecycleexception:protocol Handler Initialization failed:java.net.BindExcept
Ion:address already in use:jvm_bind<null>:8080
At Org.apache.catalina.connector.Connector.initialize (connector.java:106
0)
At Org.apache.catalina.core.StandardService.initialize (STANDARDSERVICE.J
ava:677)
At Org.apache.catalina.core.StandardServer.initialize (standardserver.jav
a:795)
At Org.apache.catalina.startup.Catalina.load (catalina.java:535)
At Org.apache.catalina.startup.Catalina.load (catalina.java:555)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.
JAVA:39)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodacces
SORIMPL.JAVA:25)
At Java.lang.reflect.Method.invoke (method.java:597)
At Org.apache.catalina.startup.Bootstrap.load (bootstrap.java:260)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:412)
2011-8-3 19:22:00 Org.apache.catalina.startup.Catalina Load
Info: Initialization processed in 709 MS
2011-8-3 19:22:00 org.apache.catalina.core.StandardService Start
Info: Starting service Catalina
2011-8-3 19:22:00 org.apache.catalina.core.StandardEngine Start
Info: Starting Servlet engine:apache tomcat/6.0.20
2011-8-3 19:22:01 Org.apache.coyote.http11.Http11Protocol Start
Serious: Error starting Endpoint
Java.net.BindException:Address already in use:jvm_bind<null>:8080
At Org.apache.tomcat.util.net.JIoEndpoint.init (jioendpoint.java:509)
At Org.apache.tomcat.util.net.JIoEndpoint.start (jioendpoint.java:526)
At Org.apache.coyote.http11.Http11Protocol.start (http11protocol.java:203
)
At Org.apache.catalina.connector.Connector.start (connector.java:1131)
At Org.apache.catalina.core.StandardService.start (standardservice.java:5
31)
At Org.apache.catalina.core.StandardServer.start (standardserver.java:710
)
At Org.apache.catalina.startup.Catalina.start (catalina.java:583)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.
JAVA:39)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodacces
SORIMPL.JAVA:25)
At Java.lang.reflect.Method.invoke (method.java:597)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
2011-8-3 19:22:01 Org.apache.catalina.startup.Catalina Start
Serious: Catalina.start:
LifecycleException:service.getName (): "Catalina"; Protocol handler start fail
Ed:java.net.BindException:Address already in use:jvm_bind<null>:8080
At Org.apache.catalina.connector.Connector.start (connector.java:1138)
At Org.apache.catalina.core.StandardService.start (standardservice.java:5
31)
At Org.apache.catalina.core.StandardServer.start (standardserver.java:710
)
At Org.apache.catalina.startup.Catalina.start (catalina.java:583)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Nativemethodaccessorimpl.
JAVA:39)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodacces
SORIMPL.JAVA:25)
At Java.lang.reflect.Method.invoke (method.java:597)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
2011-8-3 19:22:01 Org.apache.catalina.startup.Catalina Start
Info: Server Startup in 1115 MS

Start Tomcat appears above error, address already in Use:jvm_bind, a check, is 8080 port slogan is occupied.

First of all, find out which prodigal process accounted for 8080. Hesitation home level comparison dishes, do not know how to find this prodigal process. A meal after Baidu to find a solution. Open cmd, input Netstat-ano, found PID944 occupied, in cmd input tasklist, see the original is TNSLSNR.exe. This is a god horse. It turns out it's in the oracle10g. Khan Ah ...

Then, change the port number of the prodigal process to 8081:

Packages delivered with Oracle:
--Change the Http/webdav port from 8080 to 8081
Sql> Call Dbms_xdb.cfg_update (Updatexml (Dbms_xdb.cfg_get),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text () ', 8081)
/
--Change the FTP port from 2100 to 2111
Sql> Call Dbms_xdb.cfg_update (Updatexml (Dbms_xdb.cfg_get),
'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text () ', 2111)
/
Sql> commit;
sql> exec Dbms_xdb.cfg_refresh;
--Check if the modification has been successful
Sql> select Dbms_xdb.cfg_get from dual;

Oh .... So that we can finally change the good ...

Also appeared in the middle of the episode, is my cmd can not be used, ah, the original installation of the JDK when the path of the old to delete, plus:%systemroot%\system32;%systemroot%;%systemroot%\system32\ Wbem;d:\oracle\product\10.1.0\db_1\bin;d:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;d:\oracle\product\ 10.1.0\db_1\jre\1.4.2\bin; E:\jdk1.6_update10\bin;

Finally got it, I feel happy ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.