Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7995247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:21:16+00:00 2026-06-04T14:21:16+00:00

Whenever I deploy a production application that has an error with an externalized configuration

  • 0

Whenever I deploy a production application that has an error with an externalized configuration I receive the following message in the Tomcat log:

log4j:WARN No appenders could be found for logger (org.codehaus.groovy.grails.commons.cfg.ConfigurationHelper)
log4j:WARN Please initialize the log4j system properly.                                                       
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.                           

Apparently the externalized configuration is processed prior to log4j being initialized properly and therefore no appenders are available to accept the messages from ConfigurationHelper.

Is there a way to pre-initialize log4j to capture these messages before the standard Grails log4j initialization takes place?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:21:17+00:00Added an answer on June 4, 2026 at 2:21 pm

    I was finally able to enable pre-initialization logging by creating a file in $CATALINA_BASE\lib\log4j.properties:

    log4j.rootLogger=WARN, CA                                                          
    log4j.appender.CA=org.apache.log4j.ConsoleAppender                                  
    log4j.appender.CA.layout=org.apache.log4j.PatternLayout                             
    log4j.appender.CA.layout.ConversionPattern=%d{MMM dd, yyyy hh:mm:ss aa} %c%n%p: %m%n
    

    This allowed initial messages to be logged to the console. In the default Tomcat configuration they will be logged to the $CATALINA_BASE\logs\catalina.out file.

    Grails initialization did override these initial settings with the settings from Config.groovy or the external configuration file.

    My external configuration file had incorrect permissions and could not be loaded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to deploy new web application in Tomcat 6.0, but whenever I click
Whenever we deploy an application and the client reviews the app, sometimes the javascript
I am getting a PermGen Space Exception whenever I deploy my web application. I
I have a CMS application that manages multiple websites, today whenever i change the
Whenever we deploy our sharepoint website we have pages that show a login-window to
I have to deploy a Grails application on a Tomcat server. So I packaged
Whenever I deploy CoreDataBooks Apple iOS sample application to my jailbroken device with self
Right now, whenever I want to deploy a node.js server to my production server,
Whenever I use WCF, I always try to make immutable classes that end up
One thing that always been a pain is to log SQL (JDBC) errors when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.