Solved

Unable to start Apache Tomcat 6 from eclipse

Posted on 2008-10-28
4
1,488 Views
Last Modified: 2013-12-15
Dear fellow Java developers:

I am trying to launch tomcat 6 from eclipse 3.3 (europa), but it fails while it is in the process of doing so.  I get the following error message:

Port 8005 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

What I don't understand is that I am able to successfuly launch tomcat on my own from the command line, but unable to do so in eclipse.  What gives?

Thanks in advance to all who reply.
Sincerely;
Fayyaz
0
Comment
Question by:fsyed
  • 2
  • 2
4 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 22828197
Is the Tomcat started from the command line running?  If so, stop it and then launch from Eclipse and see if it works.  You can also configure Eclipse to define your standalone Tomcat already running on your system.
0
 

Author Comment

by:fsyed
ID: 22828226
Tomcat is not running from the command line right now, which is why I am wondering what is the problem.  I thought I had already defined tomcat from eclipse to run when I configured it initially.  Am I missing something?

Thanks again for your prompt replies!

Sincerely;
Fayyaz
0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 22828621
I guess you can double check that the server configured in Eclipse is pointing to the correct install directory for localhost Tomcat install.

I remember there was something like this I had issue, with but can't remember how I fixed it at the moment.  Think I just started the server from the server perspective and associated the projects I wanted to run on it ahead of time.  Think the error was happening when I tried to launch my web projects and they had to go startup the server.  Or maybe I have backwards, but that is what I recall right now.
0
 

Author Closing Comment

by:fsyed
ID: 31511033
My apologies for the very lengthy delay.  The solution was that I simply deleted the tomcat instance, and then installed it on eclipse, and now ti works fine.  Once again, I truly am sorry for not replying earlier.  Thanks again for your time and patience.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 58
word0 challenge 3 58
wordlen challenge 3 47
Eclipse Neon and jdk 1.8.0 11 72
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now