Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Simple Question: How to see an Error stack trace in Tomcat... (Struts)

Thread view: 
etienno@gmail.com - 27 Jun 2006 10:00 GMT
Hi,

I have a simple probleme, I guees. I have build a simple Java Web App
(Struts, Log4J) with some JSP pages, and I have some difficulty to see
the stack trace of a Java Exception when running a JSP page. If the
page has started to be written, I can see the java exception (I see the
stack trace in a classic error page). But if the page has been started
to be written, per exemple when the the java exception is thrown in the
middle of the JSP page (in a DAO call), I cannot see any stack trace in
the page in the Log4J log or in the console... Tomcat is catching the
Exception but not writing it anywhere...

How can I change this? I would like to see the exception either in the
console or in the jsp page... I could maybe check in the Struts-config
to redirect Exception in a Error JSP page, but I doubt it would work,
because the jsp page has started to be written and cannot be change for
an other one in the process to be written.

Thanks for replying.

Etienne.
Montreal
aostrik@gmail.com - 27 Jun 2006 21:03 GMT
Have you checked Tomcat logs ?

> Hi,
>
[quoted text clipped - 18 lines]
> Etienne.
> Montreal
etienno@gmail.com - 28 Jun 2006 09:44 GMT
You are right, the stack trace is there! This can be fine for me, but
is it possible to reroute this stack trace into the eclipse (IDE)
console?

Thanks anyway.

Etienne.

> Have you checked Tomcat logs ?
>
[quoted text clipped - 20 lines]
> > Etienne.
> > Montreal
aostrik@gmail.com - 28 Jun 2006 21:29 GMT
I don't know about Eclipse, but you can definitely do that in IDEA.

> You are right, the stack trace is there! This can be fine for me, but
> is it possible to reroute this stack trace into the eclipse (IDE)
[quoted text clipped - 28 lines]
> > > Etienne.
> > > Montreal


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.