jvanzyl     01/07/14 16:11:52

  Modified:    src/java/org/apache/turbine Turbine.java
  Log:
  - fixed a typo, app root must be set before logging is setup.
  
  Revision  Changes    Path
  1.71      +5 -4      jakarta-turbine/src/java/org/apache/turbine/Turbine.java
  
  Index: Turbine.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/Turbine.java,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- Turbine.java      2001/07/14 23:04:50     1.70
  +++ Turbine.java      2001/07/14 23:11:52     1.71
  @@ -112,7 +112,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Frank Y. Kim</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Rafal Krzewski</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
  - * @version $Id: Turbine.java,v 1.70 2001/07/14 23:04:50 jvanzyl Exp $
  + * @version $Id: Turbine.java,v 1.71 2001/07/14 23:11:52 jvanzyl Exp $
    */
   public class Turbine 
       extends HttpServlet 
  @@ -177,6 +177,9 @@
   
               try
               {
  +                // Set the applicationRoot for this webapp.
  +                setApplicationRoot(getServletContext().getRealPath("/"));
  +                
                   // This is for our log4j setup. We are embedding
                   // the log4j configuration in the TRP but log4j
                   // must be initialized with a Properties object.
  @@ -208,9 +211,6 @@
                   setTurbineServletConfig(getServletConfig());
                   setTurbineServletContext(getServletContext());
               
  -                // Set the applicationRoot for this webapp.
  -                setApplicationRoot(getServletContext().getRealPath("/"));
  -                
                   // Get the instance of the service manager
                   ServiceManager serviceManager = TurbineServices.getManager();
                   
  @@ -301,6 +301,7 @@
               catch ( Exception e )
               {
                   // save the exception to complain loudly later :-)
  +                e.printStackTrace();
                   initFailure = e;
                   Log.info ("Turbine: init() failed: " + StringUtils.stackTrace(e));
                   return;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to