Try the following steps
Step1: Go to Windows option -> select preference.
Step2: Select General -> Network Connection.
Step3: Select the Active Provider as Manual.
Step4: Restart the tomcat and run. It will work.
If it doesn't work, change the timeout of server in server view. Double click on the tomcat and see timeout options and modify it.