Exception when starting tomcat

Starting Tomcat throws:

java.net.BindException: Address already in use: JVM_Bind

This is because the port has been used. To find out which program is using that port, open a command prompt

1. Get PID of the process by running netstat -a -n -o

2. Go to Task Manager (CTRL+ALT+DEL) under tab Services

3. Kill the process or change tomcat shutdown port


Auto Shutdown for Windows XP

There is a shutdown command in Microsoft Windows. To use the command go to Start > Run and start typing.

For example:

shutdown -s -f -m \\myComName -t 10800 -c “I will shutdown by myself”

-t take time in seconds as parameter.

Please replace myComName with the actual computer name.

To find out the computer name,

1. Right click at My Computer

2. Properties

To cancel type:

shutdown -a

This is a link to a full documentation on Microsoft’s website: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/shutdown.mspx?mfr=true