JavaRanch » Java Forums »
Java »
Servlets
| Author |
Problem with a couple of servlets
|
Michele Smith
Ranch Hand
Joined: Oct 27, 2010
Posts: 298
|
|
Hello I had made a couple of servlets today, one called doUploadVideo.java and the other one named doUpdateFuneralHomeInfo.java
What I did was I appended the old servlet, doUpdateFuneralHomeInfo.java with a reference to doUploadVideo.java
no errors inside the IDE (Eclipse Galileo)
When I compiled and distributed on test, I got this stack trace. I wanted to preserve the old code in case I needed to get it back (not using subversion or CVS right now) so I put the extension _old on one of the files. I am not sure if this caused a problem or not, can you help me?
I am reviewing this stack trace from the log:
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Michele Smith wrote:
Your doUpdateFuneralHomeInfo class cannot be compiled because it must be located in file doUpdateFuneralHomeInfo.java. I guess that "_old" is causing these issues. Just move the old source files to a different folder outside the current web application. Or better yet, use a versioning system like Subversion or CVS.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Michele Smith
Ranch Hand
Joined: Oct 27, 2010
Posts: 298
|
|
do you really think that the _old file is causing problems?
I will try in the morning, but I just wanted to double-check.
Thank you for your kind help,
Michele
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
It could be. The error messages says that class doUpdateFuneralHomeInfo is in an incorrectly named file. If that file is doUpdateFuneralHomeInfo_old.java that makes sense.
|
 |
Michele Smith
Ranch Hand
Joined: Oct 27, 2010
Posts: 298
|
|
Thanks a lot,
Michele
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
You're welcome.
|
 |
 |
|
|
subject: Problem with a couple of servlets
|
|
|
|