You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ciaran Hanley <ci...@sentenial.ie> on 2005/07/05 19:10:31 UTC

[OT] Relating source code to class code

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: ciaran.hanley@sentenial.ie

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
<ma...@sentenial.ie> info@sentenial.ie.

 

 


RE: [OT] Relating source code to class code

Posted by Ciaran Hanley <ci...@sentenial.ie>.
That easy! Thanks :)

-----Original Message-----
From: Larry Meadors [mailto:larry.meadors@gmail.com] 
Sent: 05 July 2005 18:24
To: Tomcat Users List
Subject: Re: [OT] Relating source code to class code

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 <ci...@sentenial.ie> 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: ciaran.hanley@sentenial.ie
> 
> 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
> <ma...@sentenial.ie> info@sentenial.ie.
> 
> 
> 
> 
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [OT] Relating source code to class code

Posted by Larry Meadors <la...@gmail.com>.
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 <ci...@sentenial.ie> 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: ciaran.hanley@sentenial.ie
> 
> 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
> <ma...@sentenial.ie> info@sentenial.ie.
> 
> 
> 
> 
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org