Angus M wrote:
> 
> When I dump a stack trace the the brower or to the tomcat log I can seem
> to see the line numbers in the trace.  How do I turn this on?
> 
> build.xml snippet:
>   <target name="compile" depends="prepare">
>     <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
>            classpath="${deploy.home}/WEB-INF/classes"
>            debug="on" optimize="off" deprecation="off"/>
>     <copy   todir="${deploy.home}/WEB-INF/classes">
>       <fileset dir="src" includes="**/*.properties"/>
>     </copy>
>   </target>
> 
> Stack Trace:
> java.lang.NullPointerException
>         at org.phoenix.bugbase.Frame.doGet(Frame.java, Compiled Code)
>         at org.phoenix.bugbase.Frame.doPost(Frame.java, Compiled Code)

I can think of two possible reasons you are seeing Compiled Code 
instead of line numbers.

1) you need to compile with the option that leaves line number 
   information in the .class file. See the compiler options in the
   tooldocs.

2) you need to run without the JIT compiler because it discards 
   line number  information. Try setting the environment variable

set JAVA_COMPILER=NONE

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to