• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with a couple of servlets

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot,

Michele
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome.
reply
    Bookmark Topic Watch Topic
  • New Topic