I am writing a servlet jsp under Glassfish to download a file from a website, do some processing and display the result in webpage.
When I deploy the servlet, it gave me: java.io.IOException: Server returned HTTP response code: 503 for URL: www.websitename.com error. I check the status code 503 out and it turns out to be a server overload indicator. However, if I write a standalone program, accessing the same website, it works fine.
What can be the reason of the IOException?
Lily