File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Unable to launch Tomcat from eclipse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to launch Tomcat from eclipse." Watch "Unable to launch Tomcat from eclipse." New topic
Author

Unable to launch Tomcat from eclipse.

naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

I have installed tomcat 6 in my PC wiht port 8080 at locahostand using eclipse ide for running a servlet.

the problem is when i run a servlet from eclipse it show error like this :
Server ports(8080, 8085 ,8009) required by Tomact v6.0 Server at localhost already in use. Server may be running on another process or system process may be using port.


I have make sure that my system(windows -xp) is not running Tomact Server as its service.

Even though i have changed port of tomact inside eclipse setting from (8005, 8080, 8009) to (9005, 9080, 9009) still not working.

how do i rectify that?

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
naveen yadav wrote:I have installed tomcat 6 in my PC wiht port 8080 at locahostand using eclipse ide for running a servlet.

the problem is when i run a servlet from eclipse it show error like this :
Server ports(8080, 8085 ,8009) required by Tomact v6.0 Server at localhost already in use. Server may be running on another process or system process may be using port.


I have make sure that my system(windows -xp) is not running Tomact Server as its service.

Even though i have changed port of tomact inside eclipse setting from (8005, 8080, 8009) to (9005, 9080, 9009) still not working.

how do i rectify that?



Is that Tomca server bundled within eclipse? Or it is a separate installation and later added into eclipse via some plugin.?
Where did you try changing ports? you can change them inside xml files of Tomca installation itself, i suppose it is server.xml
If it is already in use then you can see in browser if something appears at http://localhost:port_number

Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384


it is a separate installation. i tried changing port(from 8080 to 9080) inside eclipse and have stop the tomacat as a window service.


since i have stopped the tomcat as a window service , when i type http://localhost:8080/ nothing appears

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
naveen yadav wrote:
it is a separate installation. i tried changing port(from 8080 to 9080) inside eclipse and have stop the tomacat as a window service.


since i have stopped the tomcat as a window service , when i type http://localhost:8080/ nothing appears



And what appears at http://localhost:9080? after starting the server?
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

Akhilesh Trivedi wrote:

And what appears at http://localhost:9080? after starting the server?



After stating tomcat inside Eclipse and typing http://localhost:9080

i get this: Apcahne Tomcat error HTTP Status 404 - /
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
naveen yadav wrote:
Akhilesh Trivedi wrote:

And what appears at http://localhost:9080? after starting the server?



After stating tomcat inside Eclipse and typing http://localhost:9080

i get this: Apcahne Tomcat error HTTP Status 404 - /


Congrats, it looks your tomcat is up.!

Try http://localhost/manager/list or http://localhost:9080/manager/list

If it asks for username password then i think you may have to configure them in tomcat-users.xml available in Tomact inst directory.
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384


same story

HTTP Status 404 - /manager/list
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
and /manager?
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

same old story.

can i uninstall Tomcat from window-XP and then use Eclipse plug-in to install tomcat ? how can i do that ?
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1511
naveen yadav wrote:same old story.

can i uninstall Tomcat from window-XP and then use Eclipse plug-in to install tomcat ? how can i do that ?


You can uninstall any program on xp from control panel. If you see it in add/remove programs then go ahead.
You can then download zip and install Tomcat(not as windows-service but rather a single folder).
What plug-in are you using currently, i think there is one called sysdeo. You can google it.
Plugin will not have Tomcat, you will have to first install tomcat and then use-plugin (probably copy-paste plugin files into some folders of eclipse inst directory) to connect tomcat with eclipse.
Restart eclipse(close and re-open after plugin-installation)
Now you should see stop-start icons of tomcat inside eclipse itself.
This should do.

Installing plugin enables you to start-stop-deploy-undeploy wars to tomcat from within the eclipse, however you are still free to use eclipse for development alone and manage deployments outside of it.

If you have time, I would suggest you still play around with your old installation before you think of uninstall-reinstall, you may have a learning experience.


Missed it, after successful installation of plugin you may to configure it to point to Tomcat installation directory.
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

thanks
Arvind Chourasia
Greenhorn

Joined: Dec 07, 2011
Posts: 1

Hello Akhilesh,

thanks for the replies.

I was also facing the same problem as Naveen mentioned in the very starting of the thread.

I searched on google and found the page on tomcat site "http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html".
which gave me idea to stop the running tomcat server (as WinNT Service) from Windows Services console (To Open it, Go to 'Run' > type 'Services.msc' and hit enter).

I stopped the Apache Tomcat Service from there and made its startup type as 'Manual' to avoid already started service every time I start the system.

After stopping the 'Apache Tomcat Service', Now i am able to start the Tomcat Server from Eclipse IDE.

Hope this would help.

Thanks Everyone..


Akhilesh Trivedi wrote:
naveen yadav wrote:same old story.

can i uninstall Tomcat from window-XP and then use Eclipse plug-in to install tomcat ? how can i do that ?


You can uninstall any program on xp from control panel. If you see it in add/remove programs then go ahead.
You can then download zip and install Tomcat(not as windows-service but rather a single folder).
What plug-in are you using currently, i think there is one called sysdeo. You can google it.
Plugin will not have Tomcat, you will have to first install tomcat and then use-plugin (probably copy-paste plugin files into some folders of eclipse inst directory) to connect tomcat with eclipse.
Restart eclipse(close and re-open after plugin-installation)
Now you should see stop-start icons of tomcat inside eclipse itself.
This should do.

Installing plugin enables you to start-stop-deploy-undeploy wars to tomcat from within the eclipse, however you are still free to use eclipse for development alone and manage deployments outside of it.

If you have time, I would suggest you still play around with your old installation before you think of uninstall-reinstall, you may have a learning experience.


Missed it, after successful installation of plugin you may to configure it to point to Tomcat installation directory.




I Love my Work ! It gives me something to do between Weekends .. ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to launch Tomcat from eclipse.
 
Similar Threads
Error in running tomcat
Error in running tomcat
Web project in eclipse doesn't find tomcat
starting Tomcat V5.5 server at localhost
Several ports required by Tomcat v5.5 Server at localhost are already in use