I am using Tomcat 5.0.28 and jdk1.4. I am compiling and deploying with Ant 1.6. When I deploy an app to Tomcat and there is an exception in my code I am not getting the line number displayed. I'll get something like:
For the line number to be printed, the code needs to have been compiled with the debug flag on. If this is code acquired commercially, then that will most likely not be the case (which doesn't hurt much, since you wouldn't have the source anyway). If it is something you have the source for, then you can recompile it using the debug flag (I think it's called -g).