Tomcat port number conflict needs to be changed How to modify Tomcat port number

  
                  

After installing tomcat and oracle9i, debugging jsp appears - connect to localhost. Tip: The localhost of XDB server requires username and password. The reason is port conflict. The adjustment is as follows

oracle is installed on the machine. Oracle's own http server accounted for 8080 ports, Oracle's tomcat port conflict, either change the tomcat port, or stop the http server. The method to change the tomcat port is as follows:

(1), find the file server.xml

in the word folder conf of the Tomcat installation root directory (2), use it in the notepad program Open, find this text:

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->

<Connector port="8080" maxHttpHeaderSize ="8192"

maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

enableLookups="false" redirectPort="8443" acceptCount=" ;100"

connectionTimeout="20000" disableUploadTimeout="true" />

Change the 8080 in Connector port="8080" in the above text to 8888 Restart Tomcat and log in using http://localhost:8888 and found that the issue has been resolved.

Or: Cause: 8080 port is occupied by other services. Generally installed Oracle system will have this problem, there are two ways to solve: 1, change the port of Tomcat, this is relatively simple, we are in Tomcat The server.xml under 5.5\\conf changes the default port 8080. 2. Disable the Oracle service. We found OracleServiceORCL in the "Services" in "Computer Management" and stopped it. However, this is not a perfect practice, because many times we need to use both Tomcat and Oracle services!

In myeclipse, if you use your own tomcat, when you choose to run the server, select tomcat's config-->port number to be changed to another port.

Same error :

1.StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method)


2.org.apache.catalina.core.StandardServer await Critical: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind

Solution: Use the above The same way to change the port

Copyright © Windows knowledge All Rights Reserved