You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2005/08/12 18:19:28 UTC
[Myfaces Wiki] Update of "Installation and Configuration" by GerardCollin
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by GerardCollin:
http://wiki.apache.org/myfaces/Installation_and_Configuration
------------------------------------------------------------------------------
== Orion 2.0.2 ==
See ["Make it work with Orion application server"]
+
+ == SunOne 7 ==
+ * Change the config security file so that MyFaces can delete it's temporary files.
+
+ * In {InstallDir}/SunOne8.1/domains/domain1/config/server.policy
+
+ * Change permission
+
+ java.io.FilePermission "<<ALL FILES>>", "read,write";
+
+ * to
+
+ java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
+
+
+ == SunOne 8.1 ==
+ * Change the config security file so that MyFaces can delete it's temporary files.
+
+ * In {InstallDir}/SunOne8.1/domains/domain1/config/server.policy
+
+ * Change permission
+
+ java.io.FilePermission "<<ALL FILES>>", "read,write";
+
+ * to
+
+ java.io.FilePermission "<<ALL FILES>>", "read,write,delete";
+
+ * Prevent the sun reference implementation from being used
+ * In your WEB-INF, create a sun-web.xml file containing
+
+ <?xml version="1.0" encoding="UTF-8"?>
+
+ <sun-web-app>
+ <class-loader delegate="false"/>
+ </sun-web-app>
+
+ That way, myfaces classes will be loaded instead of Sun RI ones.
+ * And prevent MyFaces from loading the Sun RI context listener
+ By creating in your webapp a "fake" com.sun.faces.config.ConfigureListener that will be loaded BEFORE the sun RI one's.
+
+ Like that:
+
+ package com.sun.faces.config;
+
+ import javax.servlet.*;
+
+ /**
+ * This class is here to prevent from using the real one from the sun reference implementation
+ */
+ public class ConfigureListener implements ServletContextListener
+ {
+ public void contextInitialized(ServletContextEvent servletContextEvent)
+ {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+
+ public void contextDestroyed(ServletContextEvent servletContextEvent)
+ {
+ //To change body of implemented methods use File | Settings | File Templates.
+ }
+ }
+
+
== MyFaces with Sun JSF RI ==