geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1032859 - /geronimo/server/trunk/plugins/myfaces/geronimo-myfaces-builder/src/main/java/org/apache/geronimo/myfaces/deployment/MyFacesModuleBuilderExtension.java
Date Tue, 09 Nov 2010 06:19:52 GMT
Author: xuhaihong
Date: Tue Nov  9 06:19:52 2010
New Revision: 1032859

URL: http://svn.apache.org/viewvc?rev=1032859&view=rev
Log:
Explicitly import a MyFaces package, so that MyFaces-core package could wired to the application
bundle at the first time, not a final solution.

Modified:
    geronimo/server/trunk/plugins/myfaces/geronimo-myfaces-builder/src/main/java/org/apache/geronimo/myfaces/deployment/MyFacesModuleBuilderExtension.java

Modified: geronimo/server/trunk/plugins/myfaces/geronimo-myfaces-builder/src/main/java/org/apache/geronimo/myfaces/deployment/MyFacesModuleBuilderExtension.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/myfaces/geronimo-myfaces-builder/src/main/java/org/apache/geronimo/myfaces/deployment/MyFacesModuleBuilderExtension.java?rev=1032859&r1=1032858&r2=1032859&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/myfaces/geronimo-myfaces-builder/src/main/java/org/apache/geronimo/myfaces/deployment/MyFacesModuleBuilderExtension.java
(original)
+++ geronimo/server/trunk/plugins/myfaces/geronimo-myfaces-builder/src/main/java/org/apache/geronimo/myfaces/deployment/MyFacesModuleBuilderExtension.java
Tue Nov  9 06:19:52 2010
@@ -173,6 +173,9 @@ public class MyFacesModuleBuilderExtensi
         if (!hasFacesServlet(webApp)) {
             return;
         }
+        //This is a workaround for wired bundle cache in the BundleClassloader,
+        //add the import package explicitly to make sure the myface-core-impl is wired immediately
the application bundle is resolved
+        module.getEnvironment().addImportPackage("org.apache.myfaces.ee6");
 
         EARContext moduleContext = module.getEarContext();
         Map sharedContext = module.getSharedContext();



Mime
View raw message