Author | Message |
---|---|
cysun
Posts: 2935
|
Posted 09:02 Apr 13, 2009 |
As mentioned in Homework 2, if you use Dynamic Web Project in Eclipse, deploying the application on CS3 takes two simple steps:
Note that subfolders must be preserved during file transfer. After the application is deployed, you can access it at http://cs3.calstatela.edu:8080/<username>/ (assuming you have an index/welcome file), e.g. http://cs3.calstatela.edu:8080/cs520stu31/, or access a servlet directly at http://cs3.calstatela.edu:8080/<username>/<servlet_name>. Sometimes you may encounter an error "HTTP Status 503 - The application is not currently available". This error is usually caused by the web.xml file containing the declaration of a servlet that does not exist. For example, suppose you have the following in your web.xml:
If you don't have HelloServlet.class under WEB-INF/classes/cs520/servlet/, Tomcat will not be able to load your application, and you'll get the 503 error. |
jberney
Posts: 5
|
Posted 01:30 Apr 16, 2009 |
I'm getting the 503 error. Here's my tomcat url: http://cs3.calstatela.edu:8080/cs520stu26/ I'm attaching the following screenshots:
I think I've done it right. It works locally through Eclipse. I'm guessing Tomcat just needs a restart, but thought I'd post this to check. -Jonathan Last edited by jberney at
01:39 Apr 16, 2009.
|
cysun
Posts: 2935
|
Posted 09:09 Apr 16, 2009 |
I restarted the server. The application seems to be working now. |
abhijeet_ubale
Posts: 10
|
Posted 13:30 Apr 16, 2009 |
Is there some sort of caching on the server. My .JSPs do not reflect the changes I have made. I tried refreshing the browser several times, and also deleting the .JSPs from the server and re-deploying. Can you pls. suggest? Thank you. Regards, Abhijeet |
cysun
Posts: 2935
|
Posted 14:02 Apr 16, 2009 |
It sounds like IE browser cache. It's not a server problem unless you got some kind of error. |
abhijeet_ubale
Posts: 10
|
Posted 14:44 Apr 16, 2009 |
PS: Changes to HTML files are reflected immediately by pressing F5. Last edited by abhijeet_ubale at
14:49 Apr 16, 2009.
|
cysun
Posts: 2935
|
Posted 14:49 Apr 16, 2009 |
So what's the URL? |
abhijeet_ubale
Posts: 10
|
Posted 15:01 Apr 16, 2009 |
URL: http://cs3.calstatela.edu:8080/cs520stu12/ Ok, I think I got it to work at last. Here's what I tried: Regards, |