Can't start Tomcat - Error running Tomcat 5.5: Address localhost:8080 is already in use

All the sudden I started getting this error on Win XP with IDEA 6.0.5.  I've seen it before when I didn't cleanly shutdown my webapp.  But what's different this time is I know port 8080 is not in use.  I verified this with "netstat -a".  I've tried rebooting, etc.  I even tried starting up Tomcat as a standalone service - it starts fine, thus proving that port 8080 was not in use before.

I looked in the idea.log file, and I see several instances of this:

2009-02-09 00:41:03,000 [  17891]   INFO - r.jabber.impl.JabberFacadeImpl - SASL authentication failed
SASL authentication failed:
    at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:204)
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:433)
    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:396)
    at jetbrains.communicator.jabber.impl.JabberFacadeImpl._createConnection(JabberFacadeImpl.java:160)
    at jetbrains.communicator.jabber.impl.JabberFacadeImpl.connect(JabberFacadeImpl.java:118)
    at jetbrains.communicator.jabber.impl.JabberFacadeImpl.connect(JabberFacadeImpl.java:114)
    at jetbrains.communicator.jabber.impl.JabberTransport$1.run(JabberTransport.java:118)
    at java.lang.Thread.run(Thread.java:595)

But that doesn't seem to be related to the Tomcat 8080 problem - if I repeatedly try to run my Tomcat webapp from within IDEA, I don't see anything logged to idea.log.

Any ideas how to get around this problem?

thanks,
Tom

3 comments
Comment actions Permalink

I'm getting this now with IDEA 9, same thing.  Running on Linux, my Tomcat is confingured to come up on 8444.  I get the error message:

"Error running Local Server: Address localhost:8080 is already in use"

...which is true, another server is running there.  However, the run target is using a Tomcat that is not configured to come up at 8080, so why the complaint?

Rob

0
Comment actions Permalink

Looks like Tomcat configuration wasn't correctly analyzed by IDEA. Could you please attach your /conf/server.xml file?

I'm getting this now with IDEA 9, same thing.  Running on Linux, my Tomcat is confingured to come up on 8444.  I get the error message:

"Error running Local Server: Address localhost:8080 is already in use"

..which is true, another server is running there.  However, the run target is using a Tomcat that is not configured to come up at 8080, so why the complaint?

Rob

---
Original message URL: http://www.jetbrains.net/devnet/message/5258637#5258637



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I have also the same pb. Altough tomcat's server.xml is configured to use port 9090, the problem occurs.
It also crashes using Jetty web server configured on 9090.
My machine: Ubuntu 8.4, jdk 1.6_18, Idea.93-94.

Is there a workaround or smth in configuring Idea to get this running?

Ps: attach the server.xml



Attachment(s):
server.xml
0

Please sign in to leave a comment.