We're developing a web application with Rational Application Developer 7.5 (based on Eclipse 3.4) for WebSphere Application Server 6.1 . When examining stacktraces on a staging server, the line numbers always point to the beginning of the methods, never to the actual line. In the local development environment (each developer has his local Websphere 6.1 running) all seems perfect.
In the Eclipse Preferences under Java > Compiler > section Classfile Generation everything is checked.
The deployment is done by building an EAR-File using RAD's earExport
Ant target (not the ear
core task). Afterwards it's repackaged to remove some unnecessary files. No explicit compilation is started - classes from the workspace are used.
How can this happen, that those informations get lost? Is this part of some Hotspot optimization? If so, can it be disabled?
And how can I get my correct line numbers back?