[jira] Commented: (MYFACES-1338) MyFaces is initialized twice in Portlet
[ http://issues.apache.org/jira/browse/MYFACES-1338?page=comments#action_12434601 ] Michael Lipp commented on MYFACES-1338: --- No problem with that. There is a common misunderstanding about the nature of portlets: portlets *are* servlets. The portlet.xml is (by specification) to be read as an extension of the web.xml (because the JSR-168 group couldn't write the extensions in the web.xml). So we are talking about servlets in any case here. The difference between the two situations is that all information required to initialize MyFaces in a stand-alone context is available when the servlet is loaded. In a portlet context, the required information becomes only available when the portlet is first called. If you want to be independant of the usage scenario, the MyFaces implementation should simply postpone all ExternalContext related initialization work until lifecycle.execute or lifecycle.render is first called. MyFaces is initialized twice in Portlet --- Key: MYFACES-1338 URL: http://issues.apache.org/jira/browse/MYFACES-1338 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.4-SNAPSHOT Environment: Windows XP / Tomcat 5.5.17 / Liferay 4.0.0. Reporter: Eric Scheie I'm using MyFaces 1.1.4 within a portlet and I'm noticing that MyFaces is being initialized twice. Its causing a warning because multiple copies of my managed beans are being created. Here is the log output, I'm using Liferay 4.0.0 and tomcat 5.5.17. 20:52:52,517 INFO [com.liferay.portal.deploy.AutoDeployPortletListener] Portlets for \home\liferay\deploy\MyMessagesPortlet.war copied successfully 20:53:00,122 INFO [org.apache.catalina.startup.HostConfig] Reloading context [/MyMessagesPortlet] DEBUG [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(60)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(96)] ServletContext 'D:\liferay4\webapps\MyMessagesPortlet\' initialized. 20:53:02,575 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Registering portlets for MyMessagesPortlet 20:53:02,606 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Portlets for MyMessagesPortlet registered successfully Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com Loading file:/D:/liferay4/liferay/WEB-INF/classes/portal-ext.properties for liferay.com Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties DEBUG [com.teradata.portlet.MultiModePortlet.init(32)] View page = /view.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(33)] Edit page = /edit.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(34)] Help page = /help.xhtml DEBUG [org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(178)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)]
[jira] Commented: (MYFACES-1338) MyFaces is initialized twice in Portlet
[ http://issues.apache.org/jira/browse/MYFACES-1338?page=comments#action_12434530 ] Dave Brondsema commented on MYFACES-1338: - Here's a theoretical question: what happens if you want to have a JSF webapp containing both servlets and portlet(s)? Do you need two initializations for the two contexts? MyFaces is initialized twice in Portlet --- Key: MYFACES-1338 URL: http://issues.apache.org/jira/browse/MYFACES-1338 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.4-SNAPSHOT Environment: Windows XP / Tomcat 5.5.17 / Liferay 4.0.0. Reporter: Eric Scheie I'm using MyFaces 1.1.4 within a portlet and I'm noticing that MyFaces is being initialized twice. Its causing a warning because multiple copies of my managed beans are being created. Here is the log output, I'm using Liferay 4.0.0 and tomcat 5.5.17. 20:52:52,517 INFO [com.liferay.portal.deploy.AutoDeployPortletListener] Portlets for \home\liferay\deploy\MyMessagesPortlet.war copied successfully 20:53:00,122 INFO [org.apache.catalina.startup.HostConfig] Reloading context [/MyMessagesPortlet] DEBUG [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(60)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(96)] ServletContext 'D:\liferay4\webapps\MyMessagesPortlet\' initialized. 20:53:02,575 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Registering portlets for MyMessagesPortlet 20:53:02,606 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Portlets for MyMessagesPortlet registered successfully Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com Loading file:/D:/liferay4/liferay/WEB-INF/classes/portal-ext.properties for liferay.com Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties DEBUG [com.teradata.portlet.MultiModePortlet.init(32)] View page = /view.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(33)] Edit page = /edit.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(34)] Help page = /help.xhtml DEBUG [org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(178)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.renderkit.RenderKitFactoryImpl.addRenderKit(54)]
[jira] Commented: (MYFACES-1338) MyFaces is initialized twice in Portlet
[ http://issues.apache.org/jira/browse/MYFACES-1338?page=comments#action_12432467 ] Michael Lipp commented on MYFACES-1338: --- The problem is caused by putting the listener registration for MyFaces initialization in myfaces_core.tld (instead of doing it in web.xml). Thus initial initialization with the servlet context cannot be avoided. On the other hand side, the MyFaces servlet must be re-initialized with the portlet external context in the portlet bridge. My workaround is to remove the listener registration from the TLD. If the developers do not want to move the registration from TLD to web.xml, a possible solution would be to add a servlet context parameter that is to be set for portlet usage and only does things that are independant of the context (or northing at all) and provide a different initialization method to be called from the portlet bridge. MyFaces is initialized twice in Portlet --- Key: MYFACES-1338 URL: http://issues.apache.org/jira/browse/MYFACES-1338 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.4-SNAPSHOT Environment: Windows XP / Tomcat 5.5.17 / Liferay 4.0.0. Reporter: Eric Scheie I'm using MyFaces 1.1.4 within a portlet and I'm noticing that MyFaces is being initialized twice. Its causing a warning because multiple copies of my managed beans are being created. Here is the log output, I'm using Liferay 4.0.0 and tomcat 5.5.17. 20:52:52,517 INFO [com.liferay.portal.deploy.AutoDeployPortletListener] Portlets for \home\liferay\deploy\MyMessagesPortlet.war copied successfully 20:53:00,122 INFO [org.apache.catalina.startup.HostConfig] Reloading context [/MyMessagesPortlet] DEBUG [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(60)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(96)] ServletContext 'D:\liferay4\webapps\MyMessagesPortlet\' initialized. 20:53:02,575 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Registering portlets for MyMessagesPortlet 20:53:02,606 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Portlets for MyMessagesPortlet registered successfully Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com Loading file:/D:/liferay4/liferay/WEB-INF/classes/portal-ext.properties for liferay.com Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties DEBUG [com.teradata.portlet.MultiModePortlet.init(32)] View page = /view.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(33)] Edit page = /edit.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(34)] Help page = /help.xhtml DEBUG [org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(178)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO
[jira] Commented: (MYFACES-1338) MyFaces is initialized twice in Portlet
[ http://issues.apache.org/jira/browse/MYFACES-1338?page=comments#action_12432074 ] Eric Scheie commented on MYFACES-1338: -- Why was this marked invalid? I posted to the user forum first and Matthias asked me to open a JIRA issue. MyFaces is initialized twice in Portlet --- Key: MYFACES-1338 URL: http://issues.apache.org/jira/browse/MYFACES-1338 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.4-SNAPSHOT Environment: Windows XP / Tomcat 5.5.17 / Liferay 4.0.0. Reporter: Eric Scheie I'm using MyFaces 1.1.4 within a portlet and I'm noticing that MyFaces is being initialized twice. Its causing a warning because multiple copies of my managed beans are being created. Here is the log output, I'm using Liferay 4.0.0 and tomcat 5.5.17. 20:52:52,517 INFO [com.liferay.portal.deploy.AutoDeployPortletListener] Portlets for \home\liferay\deploy\MyMessagesPortlet.war copied successfully 20:53:00,122 INFO [org.apache.catalina.startup.HostConfig] Reloading context [/MyMessagesPortlet] DEBUG [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(60)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(96)] ServletContext 'D:\liferay4\webapps\MyMessagesPortlet\' initialized. 20:53:02,575 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Registering portlets for MyMessagesPortlet 20:53:02,606 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Portlets for MyMessagesPortlet registered successfully Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com Loading file:/D:/liferay4/liferay/WEB-INF/classes/portal-ext.properties for liferay.com Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties DEBUG [com.teradata.portlet.MultiModePortlet.init(32)] View page = /view.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(33)] Edit page = /edit.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(34)] Help page = /help.xhtml DEBUG [org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(178)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.renderkit.RenderKitFactoryImpl.addRenderKit(54)] RenderKit with renderKitId 'HTML_BASIC' was replaced. WARN
[jira] Commented: (MYFACES-1338) MyFaces is initialized twice in Portlet
[ http://issues.apache.org/jira/browse/MYFACES-1338?page=comments#action_12432156 ] Mike Kienenberger commented on MYFACES-1338: My apologies, Eric. I shouldn't have closed this issue. I didn't read it closely enough. Sorry for the inconvenience. MyFaces is initialized twice in Portlet --- Key: MYFACES-1338 URL: http://issues.apache.org/jira/browse/MYFACES-1338 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.4-SNAPSHOT Environment: Windows XP / Tomcat 5.5.17 / Liferay 4.0.0. Reporter: Eric Scheie I'm using MyFaces 1.1.4 within a portlet and I'm noticing that MyFaces is being initialized twice. Its causing a warning because multiple copies of my managed beans are being created. Here is the log output, I'm using Liferay 4.0.0 and tomcat 5.5.17. 20:52:52,517 INFO [com.liferay.portal.deploy.AutoDeployPortletListener] Portlets for \home\liferay\deploy\MyMessagesPortlet.war copied successfully 20:53:00,122 INFO [org.apache.catalina.startup.HostConfig] Reloading context [/MyMessagesPortlet] DEBUG [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(60)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(96)] ServletContext 'D:\liferay4\webapps\MyMessagesPortlet\' initialized. 20:53:02,575 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Registering portlets for MyMessagesPortlet 20:53:02,606 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Portlets for MyMessagesPortlet registered successfully Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com Loading file:/D:/liferay4/liferay/WEB-INF/classes/portal-ext.properties for liferay.com Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties DEBUG [com.teradata.portlet.MultiModePortlet.init(32)] View page = /view.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(33)] Edit page = /edit.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(34)] Help page = /help.xhtml DEBUG [org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(178)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.renderkit.RenderKitFactoryImpl.addRenderKit(54)] RenderKit with renderKitId 'HTML_BASIC' was
[jira] Commented: (MYFACES-1338) MyFaces is initialized twice in Portlet
[ http://issues.apache.org/jira/browse/MYFACES-1338?page=comments#action_12431239 ] Dave Brondsema commented on MYFACES-1338: - Mailing list thread: http://mail-archives.apache.org/mod_mbox/myfaces-users/200606.mbox/[EMAIL PROTECTED] MyFaces is initialized twice in Portlet --- Key: MYFACES-1338 URL: http://issues.apache.org/jira/browse/MYFACES-1338 Project: MyFaces Core Issue Type: Bug Components: Portlet_Support Affects Versions: 1.1.4-SNAPSHOT Environment: Windows XP / Tomcat 5.5.17 / Liferay 4.0.0. Reporter: Eric Scheie I'm using MyFaces 1.1.4 within a portlet and I'm noticing that MyFaces is being initialized twice. Its causing a warning because multiple copies of my managed beans are being created. Here is the log output, I'm using Liferay 4.0.0 and tomcat 5.5.17. 20:52:52,517 INFO [com.liferay.portal.deploy.AutoDeployPortletListener] Portlets for \home\liferay\deploy\MyMessagesPortlet.war copied successfully 20:53:00,122 INFO [org.apache.catalina.startup.HostConfig] Reloading context [/MyMessagesPortlet] DEBUG [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(60)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.webapp.StartupServletContextListener.initFaces(96)] ServletContext 'D:\liferay4\webapps\MyMessagesPortlet\' initialized. 20:53:02,575 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Registering portlets for MyMessagesPortlet 20:53:02,606 INFO [com.liferay.portal.deploy.HotDeployPortletListener] Portlets for MyMessagesPortlet registered successfully Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com Loading file:/D:/liferay4/liferay/WEB-INF/classes/portal-ext.properties for liferay.com Loading jar:file:/D:/liferay4/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties DEBUG [com.teradata.portlet.MultiModePortlet.init(32)] View page = /view.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(33)] Edit page = /edit.xhtml DEBUG [com.teradata.portlet.MultiModePortlet.init(34)] Help page = /help.xhtml DEBUG [org.apache.myfaces.portlet.MyFacesGenericPortlet.initMyFaces(178)] Initializing MyFaces INFO [org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(151)] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedClassloaderConfigurations(250)] Reading config jar:file:/D:/liferay4/webapps/MyMessagesPortlet/WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar!/META-INF/faces-config.xml INFO [org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(411)] Reading config /WEB-INF/faces-config.xml INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Button renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlButtonRenderer INFO [org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.addRenderer(104)] Overwriting renderer with family = javax.faces.Command rendererType = javax.faces.Link renderer class = org.apache.myfaces.renderkit.html.jsf.DummyFormHtmlLinkRenderer INFO [org.apache.myfaces.renderkit.RenderKitFactoryImpl.addRenderKit(54)] RenderKit with renderKitId 'HTML_BASIC' was replaced. WARN