Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Unable to start Apache Tomcat 6 from eclipse

Posted on 2008-10-28
4
1,493 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
strDist challenge 35 125
Core Java. What output will be and why ? 6 67
more than one jdk and one jre 1 50
jmss example java 2 23
-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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

808 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