In my project I had the same error, I restarted Tomcat and it worked, withtout killing the java process.


I set localhost, and solve this problem.


I had the same problem in of my tomcat for JPDA Options:


After removing JPDA option from my command to start the Tomcat server, I was able to start the server on local environment.


I was getting the same error when i switched to STS version 3.8.3 And imported my entire workspace to the new STS.

Apparently the "Boot Spring App" instance was defective. (i run from STS)

If this is your problem, Simply create the Boot run configuration again.


In case you are working with environments or docker images you can really change /etc/host I recommend just changing the binding from star to

So (basing on my case for instance) instead of:


You would define it as:



Change control panel Java's option about proxy to "direct", change window's internet option to not use proxy and reboot. It worked for me.


This error mostly comes when we forcefully kill the weblogic server ("kill -9 process id"), so before restart kindly check all the ports status which weblogic using e.g. http port , DEBUG_PORT etc by using this command to see which whether this port is active or not.

netstat –an | grep (Admin: 7001 or something, Managed server- 7002, 7003 etc) eg: netstat –an | grep 7001

If it returns value then, option 1: wait for some time, so that background process can release the port option 2: execute Option 3: Bounce the server/host or restart the system.

My issue was resolved by option 2.


if your JVM Cli is: -agentlib:jdwp=transport=dt_socket,address=60000,server=n,suspend=n and JDK version is 7, change "server=n" to "server=y" will be OK.


Encountered this issue and changing the debug port helped. For some reason, the debug port had to be greater than the app port.


I had the same problem because I set the following in of my tomcat:

JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999" 

After removing it, my tomcat worked well.

Hope help you.


EDIT these lines in host file and it should work.

Host file usually located in C:\Windows\System32\drivers\etc\hosts

::1             localhost.localdomain localhost       localhost


Check whether your config string is okay:


I just had this issue today, and in my case it was because there was an invisible character in the jpda config parameter.

To be precise, I had dos line endings in my file on tomcat, causing a carriage-return character right after 'dt_socket'


Encountered this. all I did was to kill all the java process(Task Manager) and run again. It worked!


Does your HOSTS file have an entry for localhost? Some other situations this error is seen in seem to have this as a problem resolution.

Make sure you have localhost set in it...

(from this and this)


This error typically comes up when the necessary port is taken by another program.

You said that you have changed the HTTP connector port from 8080 to 8081 so the two Tomcats do not clash, but have you also changed the <Server port="..." in tomcat/conf/server.xml to be different between your Tomcats?

Are there any other connectors ports which may possibly clash?

Related Query

More Query from same tag