10

I am using Intellij Ultimate edition 14.0.2

Working on a Java project using Maven as my build tool.

We are getting this error when attempting to launch my project via Tomcat server.

Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099

Have attempted, mvn clean install, rebuild the project in intellij, open and shut down intellij.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
CalebKing3
  • 154
  • 1
  • 1
  • 10

3 Answers3

3

Thanks for the feedback everyone. I ended up editing my host file to reference my computer name. I have not been able to recreate the issue.

Solved for now.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
CalebKing3
  • 154
  • 1
  • 1
  • 10
  • this one http://biomedicalontologies.com/2012/11/14/fixing-java-net-local-host-name-unknown-error-on-mac-os-x/ is only that helped me in my case. os x, IntelliJ 14, tomcat 8 – Yauhen Jul 08 '15 at 07:10
  • @CalebKing3, whats mean of `editing my host file to reference my computer name` ?? – aircraft Feb 16 '17 at 09:54
  • @aircraft if you go into terminal and start at `root` then `sudo vim /etc/hosts` then you will see your host file. I have localhost set to 127.0.0.1. – CalebKing3 Feb 17 '17 at 16:38
0

The following solution worked for me, i experienced the same error at some point;

  1. Click on Tomcat in your IntelliJ, and then Edit Configurations. On the Startup/Configuration tab, click Debug, on debug properties i have added 52112 as Port number and it worked. enter image description here
-1

Your problem is rarely ambiguous. You should check connection between IntelliJ IDEA and Tomcat Server. Checklist like marked points:
+ Configure Tomcat Server.
+ Before launch application server, you must configure to add artifacts to application sever.
+ Turn off other Tomcat server(s) in your computer (localhost)
etc.

enter image description here

Vy Do
  • 46,709
  • 59
  • 215
  • 313
  • Hello Do Nhu Vy. My configuration is correct. The error only seems to occur if I was running tomcat and my mac goes to sleep. Then it gets stuck. The only solution which is not ideal, is shutting down the computer multiple times before it works again. – CalebKing3 Mar 20 '15 at 16:15
  • 1
    this the does not hep the slightest bit this is an awful answer. – tatsu May 23 '17 at 07:37