The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes starting and stoping server error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "starting and stoping server error" Watch "starting and stoping server error" New topic
Author

starting and stoping server error

Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1044

Hi Rancher,

Today i started my preparation for SCWCD
But facing some problem with the server.not able to start it
the error which i got is:-
Several ports (8080, 8009) required by Tomcat v5.5 Server at localhost are 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).


SCJP6.0,My blog Ranchers from Delhi
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9023

The error says that your port 8080 or 8009 is already in use. Maybe your tomcat is already running or some other software is using that port. On windows use the netstat command to see which application is using those ports...


Javaranch SCJP FAQ | SCWCD Links
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1044

Hi Ankit,
I have changed the port number in server.xml file..
but not able to save the file.
it is saying permission denied.
i am using Windows7 and also login as a Administrator but donot know what is happening.
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9023

If its saying access denied that means the file is already in use. So your tomcat is already running. Use the command catalina stop from the tomcat bin directory to stop the running tomcat. You can also kill it from the windows task manager...
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1044

Done but again showing access is denied.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 712

Could you reboot the server? Sometimes this is the best Windows Solution! =P


[uaiHebert.com] [JPA/Business] One Table Per SubClass [Web/JSF]
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9023

Since you are on windows 7, you might face some difficulties if your tomcat is on C drive (due to some security restrictions)...
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1044

Yes,it is in C drive.I know i am facing problem because of security reason.
Can i correct it,or should i reinstall the Tomcat it in other drive
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9023

If you open command prompt as administrator (by right click on CMD icon and click on "Run as Administrator"), then it might run fine. If that doesn't work, reinstalling tomcat is an option...
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1044

Thanks Ankit
Problem solved now

This message was edited 1 time. Last update was at by Shanky Sohar

 
 
subject: starting and stoping server error
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture