[jboss-cvs] JBossAS SVN: r61414 - trunk/tomcat/src/main/org/jboss/web/jsf/integration/config.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Mar 18 19:00:22 EDT 2007
Author: stan.silvert at jboss.com
Date: 2007-03-18 19:00:22 -0400 (Sun, 18 Mar 2007)
New Revision: 61414
Modified:
trunk/tomcat/src/main/org/jboss/web/jsf/integration/config/JBossJSFConfigureListener.java
Log:
Added a workaround for old JspFactory init problem that cropped up again.
Modified: trunk/tomcat/src/main/org/jboss/web/jsf/integration/config/JBossJSFConfigureListener.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/jsf/integration/config/JBossJSFConfigureListener.java 2007-03-18 20:41:54 UTC (rev 61413)
+++ trunk/tomcat/src/main/org/jboss/web/jsf/integration/config/JBossJSFConfigureListener.java 2007-03-18 23:00:22 UTC (rev 61414)
@@ -56,10 +56,27 @@
}
checkForMyFaces();
-
+ initializeJspRuntime();
super.contextInitialized(event);
}
+ // This method accounts for a peculiar problem with Jasper that pops up from time
+ // to time. In some cases, if the JspRuntimeContext is not loaded then the JspFactory
+ // will not be initialized for JSF. This method assures that it will always be
+ // be loaded before JSF is initialized.
+ private static void initializeJspRuntime()
+ {
+
+ try
+ {
+ Class.forName("org.apache.jasper.compiler.JspRuntimeContext");
+ }
+ catch (ClassNotFoundException cnfe)
+ {
+ // do nothing
+ }
+ }
+
private void checkForMyFaces()
{
try
More information about the jboss-cvs-commits
mailing list