You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tikii <th...@hardlovecowboys.com> on 2009/08/25 11:28:05 UTC

Struts2 is not outputting to the Glassfish server.log

I am currently building a web application using struts2 and deploying it to a
Glassfish v2.1 application server. I have an issue, in that when a struts2
action results in an Exception, no stack trace is being output to the
server.log, in fact nothing is reported in the log at all. This makes
debugging very tedious.

I am including several parts of my code in the hope that someone can assist
me with turning this error logging on. This code is set up to deliberately
cause a NullPointerException, which I would expect to be logged with a stack
trace to the server.log.

Please note that this issue occurs regardless of struts.devMode being true
or false

struts.xml package
<package name="Game-web" extends="struts-default">
  <action name="GameSearch_search" class="app.GameSearchAction"
method="search">
    <result>game_search.jsp</result>
  </action>
</package>

GamSearchAction search method (I have deliberately set this to cause a
NullPointerException)
public String search() {
  Date date = null;
  date.equals(null);
  return Action.SUCCESS;
}

log4j.properties
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, A1

# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d %-5p %c.%M:%L - %m%n

# try setting struts logging to INFO
log4j.logger.org.apache.struts2=INFO
log4j.logger.com.opensymphony.xwork2=INFO

Result
The result of going to
http://localhost:8080/Game-web/GameSearch_search.action is the default
glassfish 500 error server page.

HTTP Status 500 -

type Exception report

message

descriptionThe server encountered an internal error () that prevented it
from fulfilling this request.

exception

java.lang.NullPointerException

note The full stack traces of the exception and its root causes are
available in the Sun GlassFish Enterprise Server v2.1 logs.
Sun GlassFish Enterprise Server v2.1
-- 
View this message in context: http://www.nabble.com/Struts2-is-not-outputting-to-the-Glassfish-server.log-tp25131136p25131136.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: Struts2 is not outputting to the Glassfish server.log

Posted by Martin Gainty <mg...@hotmail.com>.
change ConsoleAppender to RollingFileAppender e.g.
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=example.log

log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
ceki gulcu has a nice tutorial located at
http://logging.apache.org/log4j/1.2/manual.html

Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 6 Sep 2009 11:02:44 +0200
> Subject: Re: Struts2 is not outputting to the Glassfish server.log
> From: davidcanos@gmail.com
> To: user@struts.apache.org
> 
> Hi Tikiidid you solve the problem?
> 
> 
> 2009/8/27 David Canos <da...@gmail.com>
> 
> > same to me when working with EAR projects in Glassfish v2 and v2.1.
> >
> > try config Exception interceptor, anyway I could not resolved the problem
> > this way,
> > I turn struts.debug to on, and then i'm able to see the exception msg in a
> > configured exception.jsp but never in the server.log!
> >
> > I hope it help you!
> > good luck and if you find a fix please put it in the list :)
> >
> > 2009/8/25 Tikii <th...@hardlovecowboys.com>
> >
> >
> >> I am currently building a web application using struts2 and deploying it
> >> to a
> >> Glassfish v2.1 application server. I have an issue, in that when a struts2
> >> action results in an Exception, no stack trace is being output to the
> >> server.log, in fact nothing is reported in the log at all. This makes
> >> debugging very tedious.
> >>
> >> I am including several parts of my code in the hope that someone can
> >> assist
> >> me with turning this error logging on. This code is set up to deliberately
> >> cause a NullPointerException, which I would expect to be logged with a
> >> stack
> >> trace to the server.log.
> >>
> >> Please note that this issue occurs regardless of struts.devMode being true
> >> or false
> >>
> >> struts.xml package
> >> <package name="Game-web" extends="struts-default">
> >>  <action name="GameSearch_search" class="app.GameSearchAction"
> >> method="search">
> >>    <result>game_search.jsp</result>
> >>  </action>
> >> </package>
> >>
> >> GamSearchAction search method (I have deliberately set this to cause a
> >> NullPointerException)
> >> public String search() {
> >>  Date date = null;
> >>  date.equals(null);
> >>  return Action.SUCCESS;
> >> }
> >>
> >> log4j.properties
> >> # Set root logger level to DEBUG and its only appender to A1.
> >> log4j.rootLogger=INFO, A1
> >>
> >> # A1 is set to be a ConsoleAppender.
> >> log4j.appender.A1=org.apache.log4j.ConsoleAppender
> >>
> >> # A1 uses PatternLayout.
> >> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> >> log4j.appender.A1.layout.ConversionPattern=%d %-5p %c.%M:%L - %m%n
> >>
> >> # try setting struts logging to INFO
> >> log4j.logger.org.apache.struts2=INFO
> >> log4j.logger.com.opensymphony.xwork2=INFO
> >>
> >> Result
> >> The result of going to
> >> http://localhost:8080/Game-web/GameSearch_search.action is the default
> >> glassfish 500 error server page.
> >>
> >> HTTP Status 500 -
> >>
> >> type Exception report
> >>
> >> message
> >>
> >> descriptionThe server encountered an internal error () that prevented it
> >> from fulfilling this request.
> >>
> >> exception
> >>
> >> java.lang.NullPointerException
> >>
> >> note The full stack traces of the exception and its root causes are
> >> available in the Sun GlassFish Enterprise Server v2.1 logs.
> >> Sun GlassFish Enterprise Server v2.1
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Struts2-is-not-outputting-to-the-Glassfish-server.log-tp25131136p25131136.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >

_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009

RE: Struts2 is not outputting to the Glassfish server.log

Posted by Martin Gainty <mg...@hotmail.com>.
 
it would be helpful to find what a sun employee says on how to use RollingFileAppender for TC and GLassfish

http://blogs.sun.com/terrygardner/entry/rollingfileappender_file_location

ping terry or myself offline ..please dont ping struts user list for this for obvious reasons
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 6 Sep 2009 11:02:44 +0200
> Subject: Re: Struts2 is not outputting to the Glassfish server.log
> From: davidcanos@gmail.com
> To: user@struts.apache.org
> 
> Hi Tikiidid you solve the problem?
> 
> 
> 2009/8/27 David Canos <da...@gmail.com>
> 
> > same to me when working with EAR projects in Glassfish v2 and v2.1.
> >
> > try config Exception interceptor, anyway I could not resolved the problem
> > this way,
> > I turn struts.debug to on, and then i'm able to see the exception msg in a
> > configured exception.jsp but never in the server.log!
> >
> > I hope it help you!
> > good luck and if you find a fix please put it in the list :)
> >
> > 2009/8/25 Tikii <th...@hardlovecowboys.com>
> >
> >
> >> I am currently building a web application using struts2 and deploying it
> >> to a
> >> Glassfish v2.1 application server. I have an issue, in that when a struts2
> >> action results in an Exception, no stack trace is being output to the
> >> server.log, in fact nothing is reported in the log at all. This makes
> >> debugging very tedious.
> >>
> >> I am including several parts of my code in the hope that someone can
> >> assist
> >> me with turning this error logging on. This code is set up to deliberately
> >> cause a NullPointerException, which I would expect to be logged with a
> >> stack
> >> trace to the server.log.
> >>
> >> Please note that this issue occurs regardless of struts.devMode being true
> >> or false
> >>
> >> struts.xml package
> >> <package name="Game-web" extends="struts-default">
> >>  <action name="GameSearch_search" class="app.GameSearchAction"
> >> method="search">
> >>    <result>game_search.jsp</result>
> >>  </action>
> >> </package>
> >>
> >> GamSearchAction search method (I have deliberately set this to cause a
> >> NullPointerException)
> >> public String search() {
> >>  Date date = null;
> >>  date.equals(null);
> >>  return Action.SUCCESS;
> >> }
> >>
> >> log4j.properties
> >> # Set root logger level to DEBUG and its only appender to A1.
> >> log4j.rootLogger=INFO, A1
> >>
> >> # A1 is set to be a ConsoleAppender.
> >> log4j.appender.A1=org.apache.log4j.ConsoleAppender
> >>
> >> # A1 uses PatternLayout.
> >> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> >> log4j.appender.A1.layout.ConversionPattern=%d %-5p %c.%M:%L - %m%n
> >>
> >> # try setting struts logging to INFO
> >> log4j.logger.org.apache.struts2=INFO
> >> log4j.logger.com.opensymphony.xwork2=INFO
> >>
> >> Result
> >> The result of going to
> >> http://localhost:8080/Game-web/GameSearch_search.action is the default
> >> glassfish 500 error server page.
> >>
> >> HTTP Status 500 -
> >>
> >> type Exception report
> >>
> >> message
> >>
> >> descriptionThe server encountered an internal error () that prevented it
> >> from fulfilling this request.
> >>
> >> exception
> >>
> >> java.lang.NullPointerException
> >>
> >> note The full stack traces of the exception and its root causes are
> >> available in the Sun GlassFish Enterprise Server v2.1 logs.
> >> Sun GlassFish Enterprise Server v2.1
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Struts2-is-not-outputting-to-the-Glassfish-server.log-tp25131136p25131136.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >

_________________________________________________________________
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery

Re: Struts2 is not outputting to the Glassfish server.log

Posted by David Canos <da...@gmail.com>.
Hi Tikiidid you solve the problem?


2009/8/27 David Canos <da...@gmail.com>

> same to me when working with EAR projects in Glassfish v2 and v2.1.
>
> try config Exception interceptor, anyway I could not resolved the problem
> this way,
> I turn struts.debug to on, and then i'm able to see the exception msg in a
> configured exception.jsp but never in the server.log!
>
> I hope it help you!
> good luck and if you find a fix please put it in the list :)
>
> 2009/8/25 Tikii <th...@hardlovecowboys.com>
>
>
>> I am currently building a web application using struts2 and deploying it
>> to a
>> Glassfish v2.1 application server. I have an issue, in that when a struts2
>> action results in an Exception, no stack trace is being output to the
>> server.log, in fact nothing is reported in the log at all. This makes
>> debugging very tedious.
>>
>> I am including several parts of my code in the hope that someone can
>> assist
>> me with turning this error logging on. This code is set up to deliberately
>> cause a NullPointerException, which I would expect to be logged with a
>> stack
>> trace to the server.log.
>>
>> Please note that this issue occurs regardless of struts.devMode being true
>> or false
>>
>> struts.xml package
>> <package name="Game-web" extends="struts-default">
>>  <action name="GameSearch_search" class="app.GameSearchAction"
>> method="search">
>>    <result>game_search.jsp</result>
>>  </action>
>> </package>
>>
>> GamSearchAction search method (I have deliberately set this to cause a
>> NullPointerException)
>> public String search() {
>>  Date date = null;
>>  date.equals(null);
>>  return Action.SUCCESS;
>> }
>>
>> log4j.properties
>> # Set root logger level to DEBUG and its only appender to A1.
>> log4j.rootLogger=INFO, A1
>>
>> # A1 is set to be a ConsoleAppender.
>> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>>
>> # A1 uses PatternLayout.
>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>> log4j.appender.A1.layout.ConversionPattern=%d %-5p %c.%M:%L - %m%n
>>
>> # try setting struts logging to INFO
>> log4j.logger.org.apache.struts2=INFO
>> log4j.logger.com.opensymphony.xwork2=INFO
>>
>> Result
>> The result of going to
>> http://localhost:8080/Game-web/GameSearch_search.action is the default
>> glassfish 500 error server page.
>>
>> HTTP Status 500 -
>>
>> type Exception report
>>
>> message
>>
>> descriptionThe server encountered an internal error () that prevented it
>> from fulfilling this request.
>>
>> exception
>>
>> java.lang.NullPointerException
>>
>> note The full stack traces of the exception and its root causes are
>> available in the Sun GlassFish Enterprise Server v2.1 logs.
>> Sun GlassFish Enterprise Server v2.1
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2-is-not-outputting-to-the-Glassfish-server.log-tp25131136p25131136.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

Re: Struts2 is not outputting to the Glassfish server.log

Posted by David Canos <da...@gmail.com>.
same to me when working with EAR projects in Glassfish v2 and v2.1.

try config Exception interceptor, anyway I could not resolved the problem
this way,
I turn struts.debug to on, and then i'm able to see the exception msg in a
configured exception.jsp but never in the server.log!

I hope it help you!
good luck and if you find a fix please put it in the list :)

2009/8/25 Tikii <th...@hardlovecowboys.com>

>
> I am currently building a web application using struts2 and deploying it to
> a
> Glassfish v2.1 application server. I have an issue, in that when a struts2
> action results in an Exception, no stack trace is being output to the
> server.log, in fact nothing is reported in the log at all. This makes
> debugging very tedious.
>
> I am including several parts of my code in the hope that someone can assist
> me with turning this error logging on. This code is set up to deliberately
> cause a NullPointerException, which I would expect to be logged with a
> stack
> trace to the server.log.
>
> Please note that this issue occurs regardless of struts.devMode being true
> or false
>
> struts.xml package
> <package name="Game-web" extends="struts-default">
>  <action name="GameSearch_search" class="app.GameSearchAction"
> method="search">
>    <result>game_search.jsp</result>
>  </action>
> </package>
>
> GamSearchAction search method (I have deliberately set this to cause a
> NullPointerException)
> public String search() {
>  Date date = null;
>  date.equals(null);
>  return Action.SUCCESS;
> }
>
> log4j.properties
> # Set root logger level to DEBUG and its only appender to A1.
> log4j.rootLogger=INFO, A1
>
> # A1 is set to be a ConsoleAppender.
> log4j.appender.A1=org.apache.log4j.ConsoleAppender
>
> # A1 uses PatternLayout.
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%d %-5p %c.%M:%L - %m%n
>
> # try setting struts logging to INFO
> log4j.logger.org.apache.struts2=INFO
> log4j.logger.com.opensymphony.xwork2=INFO
>
> Result
> The result of going to
> http://localhost:8080/Game-web/GameSearch_search.action is the default
> glassfish 500 error server page.
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> descriptionThe server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> java.lang.NullPointerException
>
> note The full stack traces of the exception and its root causes are
> available in the Sun GlassFish Enterprise Server v2.1 logs.
> Sun GlassFish Enterprise Server v2.1
> --
> View this message in context:
> http://www.nabble.com/Struts2-is-not-outputting-to-the-Glassfish-server.log-tp25131136p25131136.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [OT] Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log

Posted by David Canos <da...@gmail.com>.
anyway thank you for the answer ;) haha

2009/9/7 <ma...@yahoo.com>

> This is really funny...hahaa
> I need to find this movie
>
> -Louis
>
>
>
> ________________________________
> From: Dale Newfield <da...@newfield.org>
> To: Struts Users Mailing List <us...@struts.apache.org>
> Sent: Monday, September 7, 2009 6:42:56 AM
> Subject: Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log
>
> Dave Newton wrote:
> > the movie "Airplane", with the hysterical woman on the plane
>
> YouTube to the rescue:  http://www.youtube.com/watch?v=Y_GJkKMPHxw
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

[OT] Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log

Posted by ma...@yahoo.com.
This is really funny...hahaa
I need to find this movie

-Louis



________________________________
From: Dale Newfield <da...@newfield.org>
To: Struts Users Mailing List <us...@struts.apache.org>
Sent: Monday, September 7, 2009 6:42:56 AM
Subject: Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log

Dave Newton wrote:
> the movie "Airplane", with the hysterical woman on the plane

YouTube to the rescue:  http://www.youtube.com/watch?v=Y_GJkKMPHxw

-Dale

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

Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log

Posted by Dale Newfield <da...@newfield.org>.
Dave Newton wrote:
> the movie "Airplane", with the hysterical woman on the plane

YouTube to the rescue:  http://www.youtube.com/watch?v=Y_GJkKMPHxw

-Dale

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


Re: [OT] Re: Struts2 is not outputting to the Glassfish server.log

Posted by Musachy Barroso <mu...@gmail.com>.
lol..that's exactly what I had in mind, in fact, I was remembering the
guy with the baseball bat and laughing.

On Sun, Sep 6, 2009 at 9:55 PM, Dave Newton<ne...@yahoo.com> wrote:
> Musachy Barroso wrote:
>>
>> hey hey...get in line people :)
>
> You ever see the movie "Airplane", with the hysterical woman on the plane?
> Is that the line you're talking about?
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


[OT] Re: Struts2 is not outputting to the Glassfish server.log

Posted by Dave Newton <ne...@yahoo.com>.
Musachy Barroso wrote:
> hey hey...get in line people :)

You ever see the movie "Airplane", with the hysterical woman on the 
plane? Is that the line you're talking about?

Dave


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


Re: Struts2 is not outputting to the Glassfish server.log

Posted by Musachy Barroso <mu...@gmail.com>.
hey hey...get in line people :)

musachy

On Sun, Sep 6, 2009 at 2:05 PM, Dave Newton<ne...@yahoo.com> wrote:
> Martin Gainty wrote:
>>
>> the question started on use of ConsoleAppender
>>  how does one coax a ConsoleAppender to log to server.log?
>
> By following the directions on the link he provided, if reading it is any
> indication, although it's not clear to me if it's a server- or
> application-specific solution.
>
>> your witness  tough guy
>
> Hey, I thought *I* was the list's resident tough guy :(
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Re: Struts2 is not outputting to the Glassfish server.log

Posted by Dave Newton <ne...@yahoo.com>.
Martin Gainty wrote:
> the question started on use of ConsoleAppender
>  
> how does one coax a ConsoleAppender to log to server.log?

By following the directions on the link he provided, if reading it is 
any indication, although it's not clear to me if it's a server- or 
application-specific solution.

> your witness  tough guy

Hey, I thought *I* was the list's resident tough guy :(

Dave


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


RE: Struts2 is not outputting to the Glassfish server.log

Posted by Martin Gainty <mg...@hotmail.com>.
the question started on use of ConsoleAppender
 
how does one coax a ConsoleAppender to log to server.log?

your witness  tough guy
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Sun, 6 Sep 2009 16:19:53 -0400
> From: dale@newfield.org
> To: user@struts.apache.org
> Subject: Re: Struts2 is not outputting to the Glassfish server.log
> 
> http://wiki.glassfish.java.net/Wiki.jsp?page=FaqCongifureLog4J
> 
> And as usual, ignore Martin Gainty's response as it will lead you astray 
> rather than toward an answer.  I admire his enthusiasm, but more often 
> than not his answers reveal either that he doesn't understand the 
> technologies involved, or he doesn't understand the question that was 
> asked.  Martin:  A bad answer that is cryptic and authored in an 
> authoritative manner is worse than no answer.
> 
> -Dale
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009

Re: Struts2 is not outputting to the Glassfish server.log

Posted by Dale Newfield <da...@newfield.org>.
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqCongifureLog4J

And as usual, ignore Martin Gainty's response as it will lead you astray 
rather than toward an answer.  I admire his enthusiasm, but more often 
than not his answers reveal either that he doesn't understand the 
technologies involved, or he doesn't understand the question that was 
asked.  Martin:  A bad answer that is cryptic and authored in an 
authoritative manner is worse than no answer.

-Dale

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