Question:
The geoserver source code has been compiled successfully, but the debugging fails to start normally in the IDEA environment, reporting the following error:
Failed startup of context o.e.j.w.WebAppContext@74a6a609{/geoserver, file:///D:/work/geoserver/src/web/app/src/main/webapp/, UNAVAILABLE}{src/main/webapp} java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.sochetConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
Solution:
The above error is caused by the start of debugging will be network access (java.sun.com/23.33.94.164:80), modify the gs-web-app project under the src/main/webapp/WEB-INF/web.xml, the DOCTYPE tag can be commented up, modified as follows.
<?xml version="1.0" encoding="UTF-8"?> <!--<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD WebApplication 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">--> <web-app> <display-name>GeoServer></display-name> <context-param> <param-name>serviceStrategy</param-name> ......
Similar Posts:
- [How to Solve] Caused by: java.net.SocketTimeoutException: connect timed out
- com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
- [Soloved] Fastdfs Error: java.net.SocketTimeoutException: connect timed out
- Tomcat Command Error: Catalina.stop: connect reused solution
- Cannot change version of project facet Dynamic Web Module to 2.5.
- [Solved] org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
- Maven compilation error “symbol not found” [How to Solve]
- Initialization failed for” https://start.spring.io Welcome
- How to connect windows remote desktop with xrdp