tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Stewart <Brian.Stew...@ahom.com>
Subject RE: TilesContainer Not Intialized Problem
Date Fri, 30 Oct 2009 13:44:55 GMT
My Bad Andy,

You also need the configuration for the stdout appender.  Here is what I use...
# configuration for the console appender 
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-5p [%d] (%c:%L) - %m%n

Regards,
Brian 
mrbcstewart@yahoo.com

-----Original Message-----
From: Andy T [mailto:verygoofyone@gmail.com] 
Sent: Friday, October 30, 2009 8:29 AM
To: users@tiles.apache.org
Subject: Re: TilesContainer Not Intialized Problem

Hi Brian,

I replaced the line as you suggested and restarted Tomcat but unfortunately
I still get the same error:

log4j:ERROR Could not find value for key log4j.appender.stdout

Thanks,
Andy

On Fri, Oct 30, 2009 at 9:15 AM, Brian Stewart <Brian.Stewart@ahom.com>wrote:

> Just add ", stdout" to the top line in your log4j.properties file.
>
> Should look like...
> log4j.rootLogger=DEBUG, testAppender, stdout
>
> Regards,
> Brian
> mrbcstewart@yahoo.com
>
> -----Original Message-----
> From: Andy T [mailto:verygoofyone@gmail.com]
> Sent: Friday, October 30, 2009 8:12 AM
> To: users@tiles.apache.org
> Subject: Re: TilesContainer Not Intialized Problem
>
> Hi Antonio,
>
> Thank you for responding to my question . . .
>
> I'm new to all this and my logger is not properly configured so I'm working
> on this . . .
>
> Currently, I have a log4j.properties file and logging.properties file in
> WEB-INF/Classes Folder.  However, I'm not sure what the contents of these
> files should be . . . the current contents are shown below:
>
> ****************  log4j.properties ********************
>
> log4j.rootLogger=DEBUG, testAppender
>
> log4j.appender.testAppender=
> com.webmethods.sc.logging.log4j.WmDailyFileAppender
>
> log4j.appender.testAppender.file=log/test1.log
>
> log4j.appender.testAppender.datePattern='.'yyyy-MM-dd_HH_mm
>
> log4j.appender.testAppender.Append=false
>
> log4j.appender.testAppender.layout=com.webmethods.sc.log4j.PatternLayout
>
> log4j.appender.testAppender.layout.ConversionPattern=%m%n
>
> log4j.appender.testAppender.stdout.Target=System.out
>
>
>
> log4j.rootLogger=warn, stdout
>
> log4j.logger.org.hibernate=debug
>
> log4j.logger.org.hibernate.type=info
>
> log4j.logger.org.hibernate.tool.hbm2ddl=debug
>
> ******************************  logging.properties
> **************************
>
> handlers = *org*.*apache*.*juli*.FileHandler, java.*util*
> .logging.ConsoleHandler
>
> ############################################################
>
> # Handler specific properties.
>
> # Describes specific configuration info for Handlers.
>
> ############################################################
>
> org.apache.juli.FileHandler.level = FINE
>
> org.apache.juli.FileHandler.directory = ${*catalina*.base}/logs
>
> org.apache.juli.FileHandler.prefix = *servlet*-examples.
>
> java.util.logging.ConsoleHandler.level = FINE
>
> java.util.logging.ConsoleHandler.formatter = java.*util*
> .logging.SimpleFormatter
>
>
>
> I get these messages when I start Tomcat 5.5:
>
> log4j:ERROR Could not find value for key log4j.appender.stdout
>
> log4j:ERROR Could not instantiate appender named "stdout".
>
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.digester.Digester).
>
> log4j:WARN Please initialize the log4j system properly.
>
> Can you assist me in configuring the logger correctly?
>
> Thanks,
>
> Andy
>
>
>
>
>
>
>
> On Fri, Oct 30, 2009 at 3:55 AM, Antonio Petrelli <
> antonio.petrelli@gmail.com> wrote:
>
> > 2009/10/30 Antonio Petrelli <antonio.petrelli@gmail.com>:
> >  > 2009/10/30 Andy T <verygoofyone@gmail.com>:
> > >> I'm trying to apply Tiles in my Struts application for the first time
> > >> and I'm getting this error:  "javax.servlet.ServletException:
> > >> TilesContainer not initialized" when I execute test.jsp.  I'm using
> > >> Struts 1.3 and Tiles 2.1.3.  Relevant code snippets of various files
> > >> are shown below.
> > >
> > > Please post your log.
> >
> > I meant the *entire* log, from the start of the webapp to the error.
> >
> > Antonio
> >
> This message is confidential, intended only for the named recipient
> and may contain information that is privileged or exempt from
> disclosure under applicable law.  If you are not the intended
> recipient, you are notified that the dissemination, distribution or
> copying of this message is strictly prohibited.  If you receive
> this message in error, or are not the named recipient, please
> notify the sender at the email address listed above.
>
>

Mime
View raw message