• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with a couple of servlets

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20494
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20494
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 421
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot,

Michele
 
Rob Spoor
Sheriff
Pie
Posts: 20494
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic