aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
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: 1051

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
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

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
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

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: 1051

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

Joined: Jul 14, 2010
Posts: 754

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


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

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: 1051

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
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

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: 1051

Thanks Ankit
Problem solved now
 
 
subject: starting and stoping server error