There was an error when starting Tomcat, and port 8080 was occupied. Three solutions
Error message: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
. The solution
Method 1. Modify the configuration file Tomcat — conF –& GT; Server.xml modifies the port number
< The Connector port = “8080” protocol = “HTTP/1.1”
ConnectionTimeout = “20000”
The redirectPort = “8443”/& gt;
Method 2. Kill the process occupying the port
Error message: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
. The solution
Method 1. Modify the configuration file Tomcat — conF –& GT; Server.xml modifies the port number
< The Connector port = “8080” protocol = “HTTP/1.1”
ConnectionTimeout = “20000”
The redirectPort = “8443”/& gt;
Method 2. Kill the process occupying the port
cmd–> Run the netstat -ano command to find the process occupying port 8080
Taskkill – pid/6038 f
Restart the tomcat
Method 3. Right-click on the taskbar and start task Manager — process — go to Javaw.exe — end the process — restart Tomcat
Read More:
- fiddler dns lookup for failed System.Net.Sockets The name of the. Socketexception request
- Unrecognized Windows Sockets error: 10106: solution to create
- Caused by: java.net.SocketException : connection reset or caused by: java.sql.SQLRecoverableException solve
- Eclipse port occupied( java.net.BindException : address already in use: bind) solution
- [Solved] Rabbitmq Warning: java.net.SocketException: socket closed
- java.net.SocketException: Broken pipe (Write failed)
- java.net.SocketException: socket failed: EPERM (Operation not permitted)
- Developing in Android java.net.SocketException : socket failed: eacces (permission denied) reported an error
- Network card problem: Unable to initialize Windows Sockets interface
- solve java.net.ConnectException : Connection refused:connect report errors
- Error: missing `server’ JVM at `C:\Program Files (x86)\Java\jre1.8.0_231\bin\server\jvm.dll’.
- Failed to write output file ‘C:’ windows\ Microsoft.NET \Framework64\v4.0.30319\Temporary ASP.NET Files\root\106f9ae8\cc0e1
- [Solved] Tomcat9 Startup Error: Failed creating Java ‘XXXX\Java\jdk1.8\jre\bin\server\jvm.dll‘.
- Solve the java.net.connectexception: connection rejected: connect error
- How to Fix java.net.ConnectException: Connection refused: connect
- could not open `C:\Program Files\Java\jre1.8.0_191\lib\amd64\jvm.cfg’
- Solve the error in Ubuntu 18.04: called “net usershare info” but it failed: failed to execute child process “net”
- Install. Net Framework 3.5 error 0x800f0950 in Windows 10
- Failed to create JVM. JVM Path: xxxxx
- Idea startup prompt failed to create jvm: error code -1 jvm path solution