How can I get the source line number in error stack trace of a jar created by ant build?

I am using ant to build a jar of my project in eclipse. I deploy that jar on tomcat. But whenever an exception happen in my code (which is inside jar), the error stack trace comes but the line number does not come -- instead it says unknown source.

How can I get the line numbers in error stack trace?

11
задан Kevin Panko 28 January 2015 в 19:34
поделиться