reset password
Author Message
Vanquish39
Posts: 134
Posted 16:03 Oct 07, 2011 |

Hi professor, I have a quick question on file uploading.

I created a dynamic web project with web.xml generated

In the cs3 server there is a www folder, in the www folder there is a WEB-INF folder and inside

the WEB-INF folder there is lib and classes.


Do I put the java class files in the classes folder and the jsps in the WEB-INF folder?


Thanks

cysun
Posts: 2935
Posted 16:54 Oct 07, 2011 |

Yes.

Vanquish39
Posts: 134
Posted 17:11 Oct 07, 2011 |

So I put the files in the correct places, go to the browser and type

http://cs3.calstatela.edu:8080/cs520stuxx/MainRubricPage and it gives me a 404.

MainRubricPage is a servlet.

cysun
Posts: 2935
Posted 17:13 Oct 07, 2011 |

Touch your web.xml to force Tomcat to reload your application.

Vanquish39
Posts: 134
Posted 17:16 Oct 07, 2011 |

We are supposed to move the web.xml to the server also?  I don't remember doing this in cs320.  The web.xml was already there.. wasn't it?

cysun
Posts: 2935
Posted 17:17 Oct 07, 2011 |
Vanquish39 wrote:

We are supposed to move the web.xml to the server also?  I don't remember doing this in cs320.  The web.xml was already there.. wasn't it?

Yes, you need to upload web.xml (and yes, you did it in cs320).

Vanquish39
Posts: 134
Posted 17:44 Oct 07, 2011 |

Ok so I uploaded all the files

.classes ---> www/WEB-INF/classes

jsp files ----> www/WEB-INF/

web.xml ---> www/WEB-INF

I did touch web.xml

called http://cs3.calstatela.edu:8080/cs520stuxx/MainRubricPage

It still shows 404.

It works on my local machine

Last edited by Vanquish39 at 17:51 Oct 07, 2011.
cysun
Posts: 2935
Posted 18:10 Oct 07, 2011 |

Please check out my post on the class file compatibility problem. Send me an email after you upload 1.6-compatible class files. I need to restart Tomcat to load your application.