Solved

Unable to start Apache Tomcat 6 from eclipse

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
commonTwo  challenge 63 123
Online file editor, manager 6 62
netstat -ano | find "8000" and taskkill /f /pid 2984 3 39
windows explorer path to command prompt 5 33
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

863 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

22 Experts available now in Live!

Get 1:1 Help Now