Bottom line: adding this line to the / etc / hosts file solves the following:
127.0.0.1 java.sun.com
It seems that Hibernate recognizes this and other βstandardβ XSDs as something that it has and does not have problems with its internal copy without Internet access.
Problems arise when the HTTP GET for XSD fails but is not interrupted: Returns something else or requires a response. Sleep mode is not ready for these situations. Right now, the URL is forever responding, and Hibernate does not use a quick timeout, as is necessary for situations like today.
Systems without internet access are not affected.
So, as a solution, I emulate the lack of access to the Internet by resolving the name java.sun.com hostname to the IP address of the loopback interface, guaranteeing a quick failure.
source share