Re: Logging

2025-05-18 Thread Lukasz Lenart
śr., 14 maj 2025 o 23:52 Deborah White napisał(a): > Hello, since updating to Struts 7, I am receiving these errors and have not > had a log4j.properties file for years. > 14:46:37,983 ERROR [stderr] (default task-1) log4j:WARN No appenders could be > found for logger (freemarker.cache). > > 14:

Logging

2025-05-14 Thread Deborah White
Hello, since updating to Struts 7, I am receiving these errors and have not had a log4j.properties file for years. 14:46:37,983 ERROR [stderr] (default task-1) log4j:WARN No appenders could be found for logger (freemarker.cache). 14:46:37,984 ERROR [stderr] (default task-1) log4j:WARN Please ini

Re: Logging problem

2019-04-11 Thread Lukasz Lenart
śr., 10 kwi 2019 o 11:20 Tamás Barta napisał(a): > > Hi, > > We use JBoss as AS where logging is based on Log4J version 1. I see that > Struts 2 uses Log4J version 2 and my problem is that how can I route Struts > logging messages to the Log4J inside JBoss. I guess I need a br

Logging problem

2019-04-10 Thread Tamás Barta
Hi, We use JBoss as AS where logging is based on Log4J version 1. I see that Struts 2 uses Log4J version 2 and my problem is that how can I route Struts logging messages to the Log4J inside JBoss. I guess I need a bridge-like Log4J2 appender which logs into a Log4J Logger, but I couldn't fin

Re: Struts 1 Logging

2014-05-30 Thread Christoph Nenning
> > Websphere is notorious for its poor logging support. I used Websphere for > about 5 years. The server exposes Commons Logging in the parent class > loader so it's already configured -- and not configurable by you. That was > my experience, at least. I think you shou

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
Alright.. Thanks a lot for your help . Regards Usha On Fri, May 30, 2014 at 7:09 PM, Paul Benedict wrote: > Websphere is notorious for its poor logging support. I used Websphere for > about 5 years. The server exposes Commons Logging in the parent class > loader so it's alre

Re: Struts 1 Logging

2014-05-30 Thread Paul Benedict
Websphere is notorious for its poor logging support. I used Websphere for about 5 years. The server exposes Commons Logging in the parent class loader so it's already configured -- and not configurable by you. That was my experience, at least. I think you should google "Websphere Stru

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
yes.. below is how property file looks like. log4j.rootLogger=DEBUG, R log4j.logger.org.apache.struts=DEBUG log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=../updivalidation/UPDISetup.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appende

Re: Struts 1 Logging

2014-05-30 Thread Dave Newton
Did you add the line for Struts debugging? Dave

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
I have the log file created which I have defined in log4j.properties. But I dont see any trace for struts in that File. I only below entries in the log file.- 05/30/14 12:40:20] source=com.ibm.bcg.consoleUI. action.partners.PartnerCreateAction thread=[WebContainer : 0] Logging initialized. [05

Re: Struts 1 Logging

2014-05-30 Thread Paul Benedict
Usha, I don't understand your response. So you have a log file and it's logging? Cheers, Paul On Fri, May 30, 2014 at 7:58 AM, Usha Ladkani wrote: > property file is in classpath , As the log file is being created with > trace. > > We are not using tomcat. we are u

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
de you have to compile to make a "tomcat-juli.jar" > that will understand log4j. > > 2. >> >> Download or build |tomcat-juli.jar| and |tomcat-juli-adapters.jar| >> that are available as an "extras" component for Tomcat. See Additional >>

Re: Struts 1 Logging

2014-05-30 Thread Mark Shifman
li-adapters.jar| that are available as an "extras" component for Tomcat. See Additional Components documentation <http://tomcat.apache.org/tomcat-7.0-doc/extras.html> for details. This |tomcat-juli.jar| differs from the default one. It contains the full Apache Commons Logging

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
now the file is created , but has no trace of struts. below is logged. 05/30/14 12:40:20] source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction thread=[WebContainer : 0] Logging initialized. [05/30/14 12:40:20] source=com.ibm.bcg.consoleUI.action.partners.PartnerCreateAction thread

Re: Struts 1 Logging

2014-05-30 Thread Christoph Nenning
> Now empty log file is being created. > > I see this error in systemout which i printed too > > [30/5/14 12:23:48:824 UTC] 0086 R UOW= source=SystemErr org=IBM > prod=WebSphere component=Application Server thread=[WebContainer : 0] > log4j:WARN No appenders could be found for logg

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
gt; log4j.appender.R.layout.ConversionPattern=[%d{MM/dd/yy HH:mm:ss}] > source=%c > > thread=[%t] %m%n > > > > I get log file names usha.log created m But it doesnt has any struts > > related logging after I perform the action. Just the below content is > > logged. > > &

Re: Struts 1 Logging

2014-05-30 Thread Christoph Nenning
j.appender.R.MaxBackupIndex=10 > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=[%d{MM/dd/yy HH:mm:ss}] source=%c > thread=[%t] %m%n > > I get log file names usha.log created m But it doesnt has any struts > related logging after

Re: Struts 1 Logging

2014-05-30 Thread Usha Ladkani
log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=[%d{MM/dd/yy HH:mm:ss}] source=%c thread=[%t] %m%n I get log file names usha.log created m But it doesnt has any struts related logging after I perform the action. Just the below content is logged. [05/30/14 09:14:21

Re: Struts 1 Logging

2014-05-29 Thread Paul Benedict
Okay, but Struts 1 uses Apache Commons Logging. That means you'll need to configure that or use Apache Log4j 1.x configuration which is also supported. Cheers, Paul On Thu, May 29, 2014 at 10:38 PM, Usha Ladkani wrote: > Hello Paul. > > We are using java.util.logging

Re: Struts 1 Logging

2014-05-29 Thread Usha Ladkani
Hello Paul. We are using java.util.logging.Logger in our application. Regards Usha On Fri, May 30, 2014 at 9:02 AM, Paul Benedict wrote: > Usha, what logging framework are you using? > > > Cheers, > Paul > > > On Thu, May 29, 2014 at 10:28 PM, Usha Ladkani > wrot

Re: Struts 1 Logging

2014-05-29 Thread Paul Benedict
Usha, what logging framework are you using? Cheers, Paul On Thu, May 29, 2014 at 10:28 PM, Usha Ladkani wrote: > Hello , > > We are using Struts 1 , Can someone tell me how can I enable Struts logs in > debug mode, Basically I am looking for statements as below - > &g

Struts 1 Logging

2014-05-29 Thread Usha Ladkani
Hello , We are using Struts 1 , Can someone tell me how can I enable Struts logs in debug mode, Basically I am looking for statements as below - BeanUtils 1 org.apache.commons.beanutils.BeanUtils populate BeanUtils.populate( Thanks and regards

Re: Keeping current locale after logging out

2013-08-01 Thread Antonio Sánchez
That works. Thank you very much. El Jueves, 1 de agosto de 2013 07:43:26 Lukasz Lenart escribió: > 2013/7/31 Antonio Sánchez : > > At logging out, session is invalidated and redirected page is displayed in > > default language. > > > > Say: default language: Spanish

Re: Keeping current locale after logging out

2013-07-31 Thread Lukasz Lenart
2013/7/31 Antonio Sánchez : > At logging out, session is invalidated and redirected page is displayed in > default language. > > Say: default language: Spanish; current language: English; logging out and > resulted page is in Spanish, but should be English. . > > This is

Re: Keeping current locale after logging out

2013-07-31 Thread JOSE L MARTINEZ-AVIAL
The closeSession redirects to a new page? In that case the setLocale is lost (it only lives during the request) and the new local is picked up from the browser language, or from the default language you have setup. 2013/7/31 Antonio Sánchez > At logging out, session is invalidated

Keeping current locale after logging out

2013-07-31 Thread Antonio Sánchez
At logging out, session is invalidated and redirected page is displayed in default language. Say: default language: Spanish; current language: English; logging out and resulted page is in Spanish, but should be English. . This is not working (code in action class): public String

Logging Exceptions to files

2011-01-26 Thread Edward Seager
Hi, I'm having trouble getting exception logging written to files in Struts 2.2.1. I have enabled the Exception interceptor to log exceptions by adding the following to the interceptor stack: true ERROR And have a log4j.properties

Re: Logging not working

2010-10-06 Thread Mead Lai
If you want to record the ServerError, like ServletException, you can config the Tomcat Server logging, ref the document from Apache.org Regards, Mead On Wed, Oct 6, 2010 at 10:44 PM, Dave Newton wrote: > What do you have your log levels configured as? For struts, xwork, and > OGNL? &g

Re: Logging not working

2010-10-06 Thread Dave Newton
; >> I can't seem to get any errors to appear when struts goes wrong > >> (action trying to set/get an attribute that doesn't exist etc). I have > >> the commons-logging-1.1.jar file in my /WEB-INF/lib > >> folder and have the > >> line in my stru

Re: Logging not working

2010-10-06 Thread Darren Karstens
ren Karstens > wrote: > >> Hi, >> I can't seem to get any errors to appear when struts goes wrong >> (action trying to set/get an attribute that doesn't exist etc). I have >> the commons-logging-1.1.jar file in my /WEB-INF/lib >> folder and have th

Re: Logging not working

2010-10-06 Thread Mead Lai
try the tag on the page Regards, Mead On Wed, Oct 6, 2010 at 9:37 PM, Darren Karstens wrote: > Hi, > I can't seem to get any errors to appear when struts goes wrong > (action trying to set/get an attribute that doesn't exist etc). I have > the commons-logging-1.1.jar f

Logging not working

2010-10-06 Thread Darren Karstens
Hi, I can't seem to get any errors to appear when struts goes wrong (action trying to set/get an attribute that doesn't exist etc). I have the commons-logging-1.1.jar file in my /WEB-INF/lib folder and have the line in my struts.xml file. Despite this I have never seen an error in my

Re: Turning freemarker logging off

2010-08-18 Thread ricoq
: log4j.logger.freemarker.cache=INFO, CA log4j.logger.com.foo.bar=ERROR, CA You do not need to change any java code. Hope this helps. -- View this message in context: http://old.nabble.com/Turning-freemarker-logging-off-tp21287074p29472948.html Sent from the Struts - User mailing list archive at

Re: Turning freemarker logging off

2010-08-18 Thread ricoq
nodje wrote: > > Hi, > > I'm using Struts 2.1.2. I've configured log4j logging with the following > line > log4j.logger.com.opensymphony.xwork2.ognl=ERROR > > in order to turn off what seemed to be xwork logging. > > However, I'm still getting

Re: struts 2.1.6 verbose logging

2009-03-28 Thread Dave Newton
Musachy Barroso wrote: yeah I was thinking about that when I was writing that email, you out there Matt? :) I tweeted him and he said he might have to write a followup now ;) Dave - To unsubscribe, e-mail: user-unsubscr...@s

Re: struts 2.1.6 verbose logging

2009-03-23 Thread dusty
" Pink Floyd > > ----- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.n

Re: struts 2.1.6 verbose logging

2009-03-20 Thread Musachy Barroso
yeah I was thinking about that when I was writing that email, you out there Matt? :) musachy On Fri, Mar 20, 2009 at 10:23 AM, Dave Newton wrote: > Musachy Barroso wrote: >> >> I didnt explain what the fix does, there is a new setting >> "struts.el.throwExceptionOnFailure" which when set  to tru

Re: struts 2.1.6 verbose logging

2009-03-20 Thread Dave Newton
Musachy Barroso wrote: I didnt explain what the fix does, there is a new setting "struts.el.throwExceptionOnFailure" which when set to true, will cause missing properties, or exceptions thrown from OGNL expression evaluations, to throw an exception and "break" the page. This will only happen in

Re: struts 2.1.6 verbose logging

2009-03-19 Thread Musachy Barroso
. I >> think we should take that route and only show errors when they happen >> in tags and not the stack in general (which produces all this noise) >> >> musachy >> >> On Wed, Mar 18, 2009 at 3:01 PM, hernan gonzalez wrote: >>> "Struts 2.1 intr

Re: struts 2.1.6 verbose logging

2009-03-19 Thread Musachy Barroso
sachy > > On Wed, Mar 18, 2009 at 3:01 PM, hernan gonzalez wrote: >> "Struts 2.1 introduces more verbose logging than Struts 2.0. While >> extremely valuable, some users may find these annoying." >> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-st

Re: struts 2.1.6 verbose logging

2009-03-18 Thread Musachy Barroso
route and only show errors when they happen in tags and not the stack in general (which produces all this noise) musachy On Wed, Mar 18, 2009 at 3:01 PM, hernan gonzalez wrote: > "Struts 2.1 introduces more verbose logging than Struts 2.0. While > extremely valuable, some users may

struts 2.1.6 verbose logging

2009-03-18 Thread hernan gonzalez
"Struts 2.1 introduces more verbose logging than Struts 2.0. While extremely valuable, some users may find these annoying." http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html The extremely annoying thing is that struts 2.1 emits those warnings (

Re: Turning freemarker logging off

2009-01-23 Thread harshavs
Turning off package freemarker or freemarker.cache would do the needful I guess. nodje wrote: > > Hi, > > I'm using Struts 2.1.2. I've configured log4j logging with the following > line > log4j.logger.com.opensymphony.xwork2.ognl=ERROR > > in order to turn o

Turning freemarker logging off

2009-01-05 Thread nodje
Hi, I'm using Struts 2.1.2. I've configured log4j logging with the following line log4j.logger.com.opensymphony.xwork2.ognl=ERROR in order to turn off what seemed to be xwork logging. However, I'm still getting hundreds of line like these: Could not find template in cache, c

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
curs. Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21093995.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubsc

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
on occurs. Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21093981.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubsc

Re: Global exception handling prevents logging

2008-12-18 Thread Paul Benedict
in context: > http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21050585.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-u

Global exception handling prevents logging

2008-12-17 Thread Marsman
trace even. How can I get both, the error page and a logfile entry? Thanks, Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21050585.html Sent from the Struts - User mailing list archive at Nabbl

RE: [OT] good logging

2008-07-16 Thread Jishnu Viswanath
avant.com PEOPLE :: PASSION :: EXCELLENCE -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 8:43 PM To: Struts Users Mailing List Subject: [OT] good logging Every time I see this code in S2, it makes me laugh so I will share it here (D

[OT] good logging

2008-07-16 Thread Musachy Barroso
Every time I see this code in S2, it makes me laugh so I will share it here (DefaultActionInvocation.java): ... if (proxy == null) { gripe = "Whoa! No ActionProxy instance found in current ActionInvocation. This is bad ... very bad"; } else if (proxy.getConfig() == null) { gripe = "Sheesh

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
uts 2 going and have not yet removed things that we are not using. Thanks, Paul Zepernick -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 12:24 PM To: Struts Users Mailing List Subject: RE: Logging For SEVERE: Error filterStart does the pkg exten

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Dave Newton
does the pkg extend the jasper pkg? are you really using all those s2 plugins?! (sent via mobile; too lazy to capitalize properly.) dave --- On Fri, 6/20/08, Paul Zepernick <[EMAIL PROTECTED]> wrote: > From: Paul Zepernick <[EMAIL PROTECTED]> > Subject: RE: Logging

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
jasper is removed, so I know the class file is ok. Thanks, Paul Zepernick -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 9:56 AM To: Struts Users Mailing List Subject: RE: Logging For SEVERE: Error filterStart --- On Fri, 6/20/08, Paul

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Dave Newton
--- On Fri, 6/20/08, Paul Zepernick <[EMAIL PROTECTED]> wrote: > Yes, I turned on debug and there was a ton of information, > but no stack trace or anything else saying why the filter > failed to start. I do have all the Jasper dependencies in > now (that email is a couple down). Ah. Not sure wh

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
[mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 9:31 AM To: Struts Users Mailing List Subject: RE: Logging For SEVERE: Error filterStart I thought I already answered that? You can also narrow down the packages that will produce DEBUG-level statements; although that might be a bit hit-or-miss at

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Dave Newton
wrote: > From: Paul Zepernick <[EMAIL PROTECTED]> > Subject: RE: Logging For SEVERE: Error filterStart > To: "'Struts Users Mailing List'" > Date: Friday, June 20, 2008, 9:27 AM > Another tidbit of information...The startup error only > happen when mapi

RE: Logging For SEVERE: Error filterStart

2008-06-20 Thread Paul Zepernick
esult type? Is there any way to get the actual error that caused the filter not to start? Thanks, Paul From: Paul Zepernick [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 9:07 AM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Logging For SEV

RE: Logging For SEVERE: Error filterStart

2008-06-19 Thread Paul Zepernick
error or something so I can figure out exactly what is missing? Paul From: Paul Zepernick [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 4:23 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Logging For SEVERE: Error filterStart Thanks Dave. I

RE: Logging For SEVERE: Error filterStart

2008-06-18 Thread Paul Zepernick
Technology -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 4:19 PM To: Struts Users Mailing List Subject: Re: Logging For SEVERE: Error filterStart You *could* set the default log level to DEBUG, but stand back. My initial assumption, however, would

Re: Logging For SEVERE: Error filterStart

2008-06-18 Thread Dave Newton
TECTED]> wrote: > From: Paul Zepernick <[EMAIL PROTECTED]> > Subject: Logging For SEVERE: Error filterStart > To: "'user@struts.apache.org'" > Date: Wednesday, June 18, 2008, 3:37 PM > How do we correctly setup logging in log4j to capture the > pro

Logging For SEVERE: Error filterStart

2008-06-18 Thread Paul Zepernick
How do we correctly setup logging in log4j to capture the problem causing the SEVERE: Error filterStart? We are trying to add in jasper reporting. We dropped in the jar and receive this error when we configured a jasper result. We have the log4j.properties in the classpath and have the root

Re: redirect after logging in

2008-05-13 Thread Rushikesh Thakkar
trying to implement a scenario in which if the user who has not > > > logged > > > in clicks on a page "for logged in users only" should be > > > redirected to "login page", and then after logging in he should be > > > redirected

Re: redirect after logging in

2008-05-12 Thread Laurie Harper
mplement a scenario in which if the user who has not logged in clicks on a page "for logged in users only" should be redirected to "login page", and then after logging in he should be redirected to the page he originally requested for. I need to implement this in struts2.Can I a

Re: redirect after logging in

2008-05-11 Thread Jim Kiley
:01 PM, Jaarthy <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to implement a scenario in which if the user who has not logged > in clicks on a page "for logged in users only" should be > redirected to "login page", and then after logging in h

redirect after logging in

2008-05-09 Thread Jaarthy
Hi, I'm trying to implement a scenario in which if the user who has not logged in clicks on a page "for logged in users only" should be redirected to "login page", and then after logging in he should be redirected to the page he originally requested for. I need to impl

RE: How to stop the verbose logging INFO in Struts 2.1.x

2008-04-24 Thread Giovanni Azua
(I am posting this because I have been privately asked already couple of times) Helping google: How do I stop the more verbose logging in Struts 2.1.x For Tomcat users: Struts 2 uses JCL i.e. Java Commons Logging which basically enables users plugging any existing concrete Logging

Re: [S2] Logging Issues

2008-04-01 Thread Kelly Graus
he user a stack trace. Making no changes other than adding a single global exception mapping for java.lang.Exception allows me to display a better error page to the user, but from reading the documentation I would have though that this would break my logging, since I didn't set the logEnab

Re: [S2] Logging Issues

2008-04-01 Thread Laurie Harper
der.rollingFileAppender.MaxFileSize=1024KB log4j.appender.rollingFileAppender.MaxBackupIndex=10 log4j.appender.rollingFileAppender.layout=org.apache.log4j.PatternLayout log4j.appender.rollingFileAppender.layout.ConversionPattern=%d %p [%c] - %m%n* # Control logging for other packages l

[S2] Logging Issues

2008-03-31 Thread Kelly.Graus
pender.MaxFileSize=1024KB log4j.appender.rollingFileAppender.MaxBackupIndex=10 log4j.appender.rollingFileAppender.layout=org.apache.log4j.PatternLayout log4j.appender.rollingFileAppender.layout.ConversionPattern=%d %p [%c] - %m%n* # Control logging for other packages log4j.logger.org.apache.commons=WARN log4j.logge

Re: tons of useless logging slowing my app down

2008-02-15 Thread Antonio Petrelli
2008/2/15, Giovanni Azua <[EMAIL PROTECTED]>: > > My setup is: > - Struts 2.1.x built from trunk > - I import only commons.logging.jar and not log4j (is not allowed). Well, if you don't use Log4J, then Commons Logging defaults to JDK 1.4logger. This link may help you: h

tons of useless logging slowing my app down

2008-02-15 Thread Giovanni Azua
hi, I have just bumped into the same logging issue as others have. I basically get tons of this: WARNING: Could not find property [theme] Feb 15, 2008 9:53:06 AM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn My setup is: - Struts 2.1.x built from trunk - I import only

Re: Commons logging in struts

2008-01-13 Thread Laurie Harper
Commons Logging will initialize Log4j automatically if it's present, so you don't need to do that. You do need log4j.jar in your lib directory, though, if you want to use it. You can then write your logging using either the Log4j API directly or using the Commons Logging API, whi

RE: Commons logging in struts

2008-01-10 Thread Raghuveer
Hi, I understand for struts project there needs be commons-logging.jar needs to be placed in web-inf\lib folder. Incase if I want to use Log4j for logging logs related to my own application only ,is it required to configure log4j again and place 1og4j.jar in web-inf\lib. At present i have written

Re: Commons logging in struts

2008-01-10 Thread Chris Pratt
On Jan 10, 2008 1:25 AM, Raghuveer <[EMAIL PROTECTED]> wrote: > Could any one provide information of using commons logging for logging my > application related logs in my JSP-STRUTS application > > Commons logging is just a logging facade, it is not a logging system itse

Commons logging in struts

2008-01-10 Thread Raghuveer
Could any one provide information of using commons logging for logging my application related logs in my JSP-STRUTS application

Re: Struct Logging

2008-01-08 Thread Wendy Smoak
On Jan 8, 2008 9:04 PM, Sohil Rupani <[EMAIL PROTECTED]> wrote: > i m using struct 1.3.8 ... > > "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" >"http://struts.apache.org/dtds/struts-config_1_3.dtd";> And earlier: > > 2.2//EN" > "http://java.sun.com/j2ee/dtds

Re: Struct Logging

2008-01-08 Thread Sohil Rupani
sorry for making two post .. appreciate your help and time. also the struct examples are working fine.. i m using velocity tools 1.3 for view however i installed another tomcat but the same version 5.5.25 .. and could see the logs "hi , i m getting the following error of which i understand the

Re: Struct Logging

2008-01-08 Thread Robert Slama
send your struts-config.xml and requested url r^ Dave Newton wrote / napísal(a): It's probable there's an error in one (or more) of your S1 configuration files. d. --- Sohil Rupani <[EMAIL PROTECTED]> wrote: hi i m using Struts 1 Following is the content of my web.xml file. Please l

Re: Struct Logging

2008-01-08 Thread Dave Newton
It's probable there's an error in one (or more) of your S1 configuration files. d. --- Sohil Rupani <[EMAIL PROTECTED]> wrote: > hi i m using Struts 1 > > Following is the content of my web.xml file. > Please let me know if i m making some mistake in this .. > Thanks > > > > PUBLIC "-//Sun

Re: Struct Logging

2008-01-08 Thread Cheng Wei Lee
Haven't used Struts 1 for quite some time. Just to check, none of your actions worked? Would you be able to build your application using the sample blank WAR file to see if it can work part by part? On Jan 8, 2008 4:09 PM, Sohil Rupani <[EMAIL PROTECTED]> wrote: > hi i m using Struts 1 > > Follow

Re: Struct Logging

2008-01-08 Thread Sohil Rupani
hi i m using Struts 1 Following is the content of my web.xml file. Please let me know if i m making some mistake in this .. Thanks http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> action org.apache.struts.action.ActionServlet config

Re: Struct Logging

2008-01-08 Thread Cheng Wei Lee
Are you using Struts 1? Please check your web.xml file. On Jan 8, 2008 3:56 PM, Sohil Rupani <[EMAIL PROTECTED]> wrote: > Hi , > Thanks for the reply.. appreciate you time. > > Following is the error i m getting on the browser.. > > HTTP Status 404 - Servlet action is not available > type Status

Re: Struct Logging

2008-01-07 Thread Sohil Rupani
Hi , Thanks for the reply.. appreciate you time. Following is the error i m getting on the browser.. HTTP Status 404 - Servlet action is not available type Status report message Servlet action is not available description The requested resource (Servlet action is not available) is not available

Re: Struct Logging

2008-01-07 Thread Cheng Wei Lee
Hi Sohil, Could you provide the stacktrace for troubleshooting? Thanks. On Jan 8, 2008 3:37 PM, Sohil Rupani <[EMAIL PROTECTED]> wrote: > Hi, > > I m new to struts , using tomcat and jdk 1.5. i m getting a error > Servlet action not avaliable.. > which on browsing i learn that is a very common

Struct Logging

2008-01-07 Thread Sohil Rupani
Hi, I m new to struts , using tomcat and jdk 1.5. i m getting a error Servlet action not avaliable.. which on browsing i learn that is a very common error i searched through the tomcat log where i dont see any error messages.. i would like to know where does struts creates its log.. so that i ca

Re: Exception Logging

2007-10-14 Thread Richard Sayre
Thank you. That worked perfect. On 10/13/07, Jeromy Evans <[EMAIL PROTECTED]> wrote: > In addition to configuring log4j to use a FileAppender to write logs to > a file, here's a very simple way to log exceptions manually from the > exception page: > > Within your jsp include the following code: >

Re: Exception Logging

2007-10-13 Thread Jeromy Evans
In addition to configuring log4j to use a FileAppender to write logs to a file, here's a very simple way to log exceptions manually from the exception page: Within your jsp include the following code: <% String stackTrace = (String) pageContext.getAttribute("stackTrace"); new

Re: Exception Logging

2007-10-13 Thread Richard Sayre
I thought I would add this part of the stack trace in case it helps: SEVERE: Error finishing response java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:689)

Exception Logging

2007-10-13 Thread Richard Sayre
I am trying to log the exception that get cought by the struts exception handler. So far I have .jsp page that shows the exception: An Exception Has occured! = I am going to change this page to display a generic error message. I want to write the valu

Re: Exception Handling and Logging

2007-10-12 Thread Richard Sayre
this action so I can not log all of the information. Any ideas? Thanks Rich On 8/2/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > My applications do not catch any errors. I let them bubble out of the > Action and into an ExceptionHandler object for logging. You can log > wh

Re: logging with Log4J

2007-08-28 Thread Laurie Harper
Ashish Kulkarni wrote: Hi Does anyone have an exmple of using log4j for logging struts messages, I have an web application where i use log4j for logging, i have a mapslog4j.xml file in WEB-INF folder and load this log file using DOMConfigurator in a servlet. This servlet is loaded before struts

logging with Log4J

2007-08-27 Thread Ashish Kulkarni
Hi Does anyone have an exmple of using log4j for logging struts messages, I have an web application where i use log4j for logging, i have a mapslog4j.xml file in WEB-INF folder and load this log file using DOMConfigurator in a servlet. This servlet is loaded before struts servlet, but some how

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Chris Pratt
> I have a struts 1.2.4 application, and i have log4j.jar and > commons-logging.jar in classpath In my application i use log4j for logging, > i wanted to know what would be effect of removing commons-logging.jarfile > from classpath Commons Logging isn't really a logger itself.

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Paul Benedict
Just drop a log4.properties or log4j.xml in the root of your classpath. On 8/24/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > > Hi > How do i configure sturts logging then, i have a log4j.properties file > where > i set my application logging, can i use the same for stru

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Ashish Kulkarni
Hi How do i configure sturts logging then, i have a log4j.properties file where i set my application logging, can i use the same for struts logging Ashish On 8/24/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Impossible. Struts is built with Commons Logging. > > On 8/24/0

Re: effect of removing commons-logging from classpath?

2007-08-24 Thread Paul Benedict
Impossible. Struts is built with Commons Logging. On 8/24/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > > Hi > I have a struts 1.2.4 application, and i have log4j.jar and > commons-logging.jar in classpath > In my application i use log4j for logging, > i wanted to know

effect of removing commons-logging from classpath?

2007-08-24 Thread Ashish Kulkarni
Hi I have a struts 1.2.4 application, and i have log4j.jar and commons-logging.jar in classpath In my application i use log4j for logging, i wanted to know what would be effect of removing commons-logging.jar file from classpath

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
In my interceptor stack i added this parameter: true I assume it is using either commons logging or log4j but I'm not sure where the log file is or how to manipulate what information goes into the log file. On 8/6/07, Dave Newton <[EMAIL PROTECTED]> wrote: &g

Re: Exception Handling and Logging

2007-08-06 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > Do I open a file stream on the JSP page or is there a > better way to log this information? Use commons-logging and / or Log4J? d. Need a v

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
information? On 8/2/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > My applications do not catch any errors. I let them bubble out of the > Action and into an ExceptionHandler object for logging. You can log > whatever you want -- including the user -- in the handler. > > Paul &g

  1   2   3   >