Trying to create a Java App Server project but get errors

Answered

I am trying to create a Java Application Server project, but I get errors when just creating the project file.

When making the project, the options I choose are:

Project SDK: 1.8 (1) Java version 1.8.0_101
Java EE Version: Java EE 7
Application Server: Tomcat 8.5.5
Additional Libraries and Frameworks:

  • Struts 2 - Download
  • WebServices - Download

When I click Finish, I get the following errors:
Failed to download 'http://central.maven.org/maven2/org/freemarker/freemarker/2.3.19/freemarker-2.3.19.jar': connect timed out
Failed to download 'http://download.jetbrains.com/idea/j2ee_libs/jaxws/2.2/javax.annotation.jar': connect timed out

How do I get around these errors?

6 comments
Comment actions Permalink

Connection problem can be caused by the incorrect proxy configuration: https://www.jetbrains.com/help/idea/2016.2/http-proxy.html.

0
Comment actions Permalink

My proxy is set to No Proxy, so I just changed it to Auto-detect Proxy settings. I then did a connection check with the two URLs, and the connection was successful. But when I click Try again, I still get a connection timeout. When I go to the links in my browser, they download fine.

0
Comment actions Permalink

This is really weird. Could it be some antivirus/firewall related issue?

Any related errors in idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085)?

Can you reproduce the problem on any other machine?

0
Comment actions Permalink

I don't have any other machine to really test this on. I checked Wireshark and it showed that packets are successfully being sent to and from central.maven.org. I don't use any firewall installed either. IntelliJ can check for updates just fine, and the Proxy tester works just fine so I don't think it would be any firewall.

There's also no information in idea.log related to the issue.

Edit: I have another machine I just remembered I can remote in. I will update on the issue.

0
Comment actions Permalink

Please add -Didea.connection.timeout=90000 into .vmoptions (https://intellij-support.jetbrains.com/hc/articles/206544869).

1
Comment actions Permalink

Wow, I feel stupid. I power cycled the router, modem, and other network devices after I noticed some packet loss when pinging 8.8.8.8 and now it downloaded fine. Sorry for making this thread. The issue started surfacing only when I used IntelliJ.

That timeout trick helped me figure it out though, because it was inconsistently timing out on different files.

0

Please sign in to leave a comment.