reset password
Author Message
sxiao11
Posts: 13
Posted 14:40 Jan 17, 2014 |

It's weird that when i tried to check the hw0 Helloservelt and HelloJSTL links i made few days ago, they just keep loading and never navigate to the page i deployed on cs3 server. they were working few days ago but i dont know why now they just keep loading. Could please help me with it?

cysun
Posts: 2935
Posted 14:44 Jan 17, 2014 |

Tomcat on CS3 is taking up 100% of the server CPU and is very slow to respond. I suspect somebody had some bug in their code. Currently I trying to find out which webapp is causing the problem. I'll let you know when it's fixed.
 

cysun
Posts: 2935
Posted 15:20 Jan 17, 2014 |

The problem was caused by the webapp cs320stu79, which is disabled for now. Everybody else should be fine. I did notice that some webapps failed to start due to invalid URL patterns. If your webapp failed to run on CS3 even after you updated your web.xml, check the URL patterns in your @WebServlet. 

sxiao11
Posts: 13
Posted 17:10 Jan 17, 2014 |

Thank you, it works right now.

cysun
Posts: 2935
Posted 18:54 Jan 17, 2014 |

Alice found the problem in the code:

Okay, here might be the problem:

while( reader.hasNext());

This semicolon is causing an infinite loop.

Next time please don't deploy your webapp to CS3 unless it's already working on your computer. You won't get partial credit if your code clog up the server.