portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine AbstractEngine.java
Date Wed, 02 Mar 2005 02:46:28 GMT
ate         2005/03/01 18:46:28

  Modified:    portal/src/java/org/apache/jetspeed/engine Tag:
                        deployment-refactoring AbstractEngine.java
  Log:
  Fix issue with log4j when doing dynamic (re)configuration. First reset the configuration
to prevent append errors on closed appenders.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.14.2.1  +3 -1      jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/AbstractEngine.java
  
  Index: AbstractEngine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/AbstractEngine.java,v
  retrieving revision 1.14
  retrieving revision 1.14.2.1
  diff -u -r1.14 -r1.14.2.1
  --- AbstractEngine.java	5 Jan 2005 15:44:34 -0000	1.14
  +++ AbstractEngine.java	2 Mar 2005 02:46:28 -0000	1.14.2.1
  @@ -36,6 +36,7 @@
   import org.apache.jetspeed.pipeline.Pipeline;
   import org.apache.jetspeed.request.RequestContext;
   import org.apache.jetspeed.request.RequestContextComponent;
  +import org.apache.log4j.LogManager;
   import org.apache.log4j.PropertyConfigurator;
   import org.apache.ojb.broker.util.ClassHelper;
   import org.apache.pluto.PortletContainer;
  @@ -123,6 +124,7 @@
               Properties p = new Properties();
               p.load(new FileInputStream(log4jFile));
               p.setProperty(APPLICATION_ROOT_KEY, context.getApplicationRoot());
  +            LogManager.resetConfiguration();
               PropertyConfigurator.configure(p);
               log.info("Configured log4j from " + log4jFile);
               log.info("Starting Jetspeed Engine ("+getClass().getName()+") at "+format.format(startTime));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message