vmassol 01/07/04 06:32:48 Modified: cactus/src/framework/share/org/apache/commons/cactus/server JspTestCaller.java Log: Log4j was not initialized on the server side when using JSP Redirector (it was initialized only when using the Servlet Redirector) Revision Changes Path 1.4 +10 -0 jakarta-commons/cactus/src/framework/share/org/apache/commons/cactus/server/JspTestCaller.java Index: JspTestCaller.java =================================================================== RCS file: /home/cvs/jakarta-commons/cactus/src/framework/share/org/apache/commons/cactus/server/JspTestCaller.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- JspTestCaller.java 2001/06/17 13:39:13 1.3 +++ JspTestCaller.java 2001/07/04 13:32:46 1.4 @@ -63,6 +63,7 @@ import javax.servlet.jsp.*; import org.apache.commons.cactus.*; +import org.apache.commons.cactus.util.log.*; /** * Call the test method on the server side after assigning the JSP implicit @@ -72,6 +73,15 @@ */ public class JspTestCaller { + /** + * Initialize the logging subsystem so that it can get it's configuration + * details from the correct properties file. Initialization is done here + * as this servlet is the first point of entry to the server code. + */ + static { + LogService.getInstance().init("/log_server.properties"); + } + /** * Name of the attribute in the <code>application</code> scope that will * hold the results of the test.