Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » eclipse & sts cannot start tomcat: ports already in use(Tomcat startup hangs at 23%)
eclipse & sts cannot start tomcat: ports already in use [message #788750] Thu, 02 February 2012 06:59 Go to next message
Vyacheslav Sakhno is currently offline Vyacheslav SakhnoFriend
Messages: 3
Registered: February 2012
Junior Member
Tested eclipse indigo, STS 2.5.2, STS 2.8.0, STS 2.8.5. Tomcat 6, Tomcat 7.

Tomcat startup hangs at 23%(displayed at right bottom side of eclipse windows/screen). This magic number is always the same. After about 20 seconds at hanged state error occurs. Error info is "ports are already in use".

There is no Tomcat already started in system. No ports with specified numbers appear in netstat.

Changing port numbers does not help anything.

Changing/reinstalling eclipse,STS,tomcat, downloading fresh tomcat zip changes nothing. Deleting workspace and C:/Project/.metadata and stuff - all directories used by fresh install of STS, so deleting them does not help too.

And interesting history aspect: i've used STS 2.8.2 for 2 weeks before this error occured. Reinstall won't fix anything. After that i was able to use STS 2.5.2 for a month. And the same error occured for 2.8.2. But i delete all its files and reinstall again does not fix anything.

Reboot does not help.

Have no any other working with tomcat version of eclipse/STS.

Any help is appreciated.

my os is windows 7. In Virtualbox XP everything is fine. And other Windows 7 guys say it works too on their PCs.

stackoverflow.com/questions/9096490/eclipse-sts-cannot-start-tomcat-ports-already-in-use

[Updated on: Thu, 02 February 2012 07:00]

Report message to a moderator

Re: eclipse & sts cannot start tomcat: ports already in use [message #792433 is a reply to message #788750] Tue, 07 February 2012 01:41 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 2/2/2012 1:59 AM, Vyacheslav Sakhno wrote:
> Tested eclipse indigo, STS 2.5.2, STS 2.8.0, STS 2.8.5. Tomcat 6, Tomcat 7.
>
> Tomcat startup hangs at 23%(displayed at right bottom side of eclipse
> windows/screen). This magic number is always the same. After about 20
> seconds at hanged state error occurs. Error info is "ports are already
> in use".
>
> There is no Tomcat already started in system. No ports with specified
> numbers appear in netstat.
>
> Changing port numbers does not help anything.
>
> Changing/reinstalling eclipse,STS,tomcat, downloading fresh tomcat zip
> changes nothing. Deleting workspace and C:/Project/.metadata and stuff -
> all directories used by fresh install of STS, so deleting them does not
> help too.
>
> And interesting history aspect: i've used STS 2.8.2 for 2 weeks before
> this error occured. Reinstall won't fix anything. After that i was able
> to use STS 2.5.2 for a month. And the same error occured for 2.8.2. But
> i delete all its files and reinstall again does not fix anything.
>
> Reboot does not help.
>
> Have no any other working with tomcat version of eclipse/STS.
>
> Any help is appreciated.
>
> my os is windows 7. In Virtualbox XP everything is fine. And other
> Windows 7 guys say it works too on their PCs.
>
> stackoverflow.com/questions/9...already-in-use

I don't know if you have found a solution, but checking the source code,
anything that causes "new java.net.ServerSocket(port, 0, address)" to
throw an exception results in the "already in use" error. Since it is
more than one port that is in use (there is a singular version of the
error if only one of the ports is in use), something in the OS would
appear to be preventing Eclipse from opening server sockets when testing
for port usage.

There is no logging available to expose the actual exception occurring
in Eclipse, but there are some debugging tricks that can be used. Just
let me know if you need me to supply the specifics.

Cheers,
Larry
Previous Topic:Error on JavaScript File - Unable to Deploy Web Project
Next Topic:Metro Web Service Runtime
Goto Forum:
  


Current Time: Fri Apr 19 19:45:36 GMT 2024

Powered by FUDForum. Page generated in 0.02707 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top