The thing is entry.PhoneBookEntry exists, but for some stupid reason the servlet isn't finding it (note: this didn't seem to be an issue when I compiled).
Any ideas/suggestions? If you need more info just ask.
Name:
Anonymous2006-07-13 17:28
Incorrect permissions on PhoneBookEntry file or directory that contains it, perhaps?
Name:
Anonymous2006-07-13 17:45
I don't think so ... everyone has permission to read the file.
Why is AddEntry.class four days older than AddEntry.java?
Name:
Anonymous2006-07-13 19:04
Because the date on the server is all fucked up for some reason.
Name:
Anonymous2006-07-13 19:04
Also, I don't know all the details of import and packages, but maybe the hierarchy is rooted in classes/, and you should import assignment4.entry.* (and have 'package assignment4.entry;')? I remember when I had to do servlets, we had our base servlet class right in the classes dir...
Name:
Anonymous2006-07-13 19:22
I don't THINK that would be a problem, but I could be wrong ... I'll try messing with that later, for some reason my account on the server is fucked up at the moment and I can't get anything to work right, so I'm not going to be able to do any more testing until that gets fixed ....
ugh ...
Name:
Anonymous2006-07-18 17:35
Just move everything from /classes/assignment4 to /classes and get rid of assignment4 dir and everything should be fine. Or at least the exception thrown will change. ;)
Name:
Anonymous2006-07-24 18:38
Servers don't just screw up file dates; you're clearly editing and compiling the local copy. You have only AddEntry.java on the local machine and left everything else on the server, which is why its not working.
Name:
Anonymous2006-07-24 18:49
>>12
Nevermind, it seems you're updating the file on the server after all. Are you sure you're compiling the server copy and not the local copy?
How are you compiling this? If you're compiling from the command line, paste the command you're giving it here. If you're compiling from inside some IDE, then obviously it's not going to work unless you directly edit the remote file.
Name:
Anonymous2006-07-24 21:22
Shouldn't the container automatically recompile if the source is newer than the class file?
Name:
Anonymous2006-07-26 12:47
>>14
AFAIK the ontainers hardly ever recompile anything. It's the best to give them a nice *.war ball straight into he deployment dir. the .war file can be created by hand or by ant :)