Wehn you compile, you have to included debugging information. This can be done with the javac task in ant (debug="true"), or on the commnad line for javac using the -g option.
Larry On 7/5/05, Ciaran Hanley <[EMAIL PROTECTED]> wrote: > Hi, > > > > Is there a way to build a webapp so that once deployed when an error is > thrown that the stack trace will include the line in the java code which > caused the error? Instead of (Unknown Source) coming up, have for example > (LoginAction.java:115) as it does with other classes. Anybody know the steps > to do this? > > > > Thanks > > > > application.db.DataManagerException: There was an error trying to sign user > in > > at application.db.SQLManager.doLogin(Unknown Source) > > at application.actions.LoginAction.verifyUser(Unknown Source) > > at application.actions.LoginAction.execute(Unknown Source) > > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces > sor.java:484) > > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:284) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:204) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:257) > > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:151) > > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) > > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext > Valve.java:245) > > > > _____ > > > Ciaran Hanley > > Software Development > > Sentenial Ltd. > > Tel: 00 353 (1) 629 2403 > Fax: 00 353 (1) 629 2147 > > Mob: 00 353 (0) 87 916 4943 > E-Mail: [EMAIL PROTECTED] > > Web: www.sentenial.ie <http://www.sentenial.ie/> > > _____ > > Notice: > > The information in this e-mail is intended only for the named recipient and > may be privileged or confidential. If you are not the intended recipient, > please notify us immediately and do not copy, distribute or take any action > based on this e-mail. Sentenial Ltd will not be liable for direct, special, > indirect or consequential loss as a result of any virus being passed on or > arising from alteration of the contents of this e-mail by a third party. All > e-mail sent to or from this address is subject to archive and review by > someone other than the intended recipient. Any opinions expressed in this > e-mail are those of the individual and not necessarily those of Sentenial > Ltd. All Personal Data acquired by Sentenial Ltd for which the Data > Protection Act 1998 ("the Act") applies shall be stored and processed in > accordance with the Act. Should you wish to check, amend or remove the > details of your Personal Data held by Sentenial Ltd, please contact us at > <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]