struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Hickey" <bhic...@r-effects.com>
Subject Re: Struts Log
Date Tue, 03 Dec 2002 14:01:56 GMT
Wilson,

If it is a standard install and seeing as it is 1.0.2, it is most likely
that there is no Struts error log file.

Tomcat has log files for Jasper(the JSP compiler), Servlet (servlet inits),
and any mods like mod_jk that you may have installed with Tomcat. These are
populated on startup and don't normally contain errors and will not contain
runtime errors, so no help there.

There is only sterr and stdout. So, in Windows NT, you may use a command
prompt in a window to start Tomcat and it may start in that window or open
its own. In this case, the window itself is stderr and stdout. So you would
see runtime errors that wrote to stderr/stdout in that window. Not much
help, but if the error is generated and writes somewhere, that is where it
will show.

If you don't see anything there, you may need to do some
System.out.println()'s in your code to trace the execution.

The interesting aspect is that you are NOT getting a stack trace. Let us
know if you can see the error anywhere other than the browser.

Brian

----- Original Message -----
From: "To, Wilson" <Wilson.To@umusic.com>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
Sent: Tuesday, December 03, 2002 8:15 AM
Subject: RE: Struts Log


> Hi Brian,
>
> Thanks for the response. I'm using version 1.0.2 of Struts and 3.2.1
Tomcat
> under Windows NT.  I'm not actively doing any logging as such so therefore
I
> guess I'm not (knowingly) using Log4J or jakarta-commons etc.
>
> The error that is returned in the actual browser is as I mentioned earier:
>
> Error Found
> A failure occured in the application and the exception was likely handled.
> See Struts log to determine more about the error.
>
> Since the message displayed (some default from Struts?) refers to the
Struts
> log, I'd thought it was something that is written to automatically.
>
> I hope this helps a little.
>
> Wilson
> -----Original Message-----
> From: Brian Hickey [mailto:bhickey@r-effects.com]
> Sent: 03 December 2002 13:50
> To: Struts Users Mailing List
> Subject: Re: Struts Log
>
>
> Wilson,
>
> Logging is dependent on many things. Which version of Struts? What JSP
> container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
> logging?
>
> It would also help if you showed the actual error message.
>
> Brian
>
> ----- Original Message -----
> From: "To, Wilson" <Wilson.To@umusic.com>
> To: <struts-user@jakarta.apache.org>
> Sent: Tuesday, December 03, 2002 7:27 AM
> Subject: Struts Log
>
>
> > I'm sure this is a simple thing but I cannot find any details about this
> > anywhere - apologies for affending anyone if this is too simple and thus
> > clogging up this mailing.
> >
> > I got an error stating "A failure occured in the application and the
> > exception was likely handled. See Struts log to determine more about the
> > error."  This seems to occur if someone tries to access my system after
it
> > has not been accessed for a while (say 1-2 days).  However, the question
> is
> > where is the struts log located and do I need include something in
> > struts-config.xml to enable it?
> >
> > Thanks in advance
> >
> > Wilson
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message