• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Unable to launch Tomcat from eclipse.

 
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
naveen yadav
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

same story

HTTP Status 404 - /manager/list
 
Akhilesh Trivedi
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and /manager?
 
naveen yadav
Ranch Hand
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1609
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 384
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
Greenhorn
Posts: 1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.




 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!