[JBoss JIRA] (RF-12002) javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration in WAS 8
by Bindu Nagesh (JIRA)
Bindu Nagesh created RF-12002:
---------------------------------
Summary: javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration in WAS 8
Key: RF-12002
URL: https://issues.jboss.org/browse/RF-12002
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: base functionality
Affects Versions: 3.3.3.Final
Environment: WAS 8 + ILOG 8.8
Reporter: Bindu Nagesh
Priority: Critical
We get the below exception trace on trying to run our web application on WAS 8 with richfaces 3.3.3 final and Myfaces version2.
css E Could not set property 'font' to @nameFont (rule Subobject#Text2).
[2/24/12 10:07:56:245 EET] 0000006d viewhandler E Error Rendering View[/html/scadaMonitor.xhtml]
javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
at org.ajax4jsf.resource.ResourceBuilderImpl.getWebXml(ResourceBuilderImpl.java:118)
at org.ajax4jsf.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:325)
at org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:218)
at org.richfaces.renderkit.html.InputNumberSpinnerRenderer.doEncodeEnd(InputNumberSpinnerRenderer.java:182)
at org.richfaces.renderkit.html.InputNumberSpinnerRenderer.doEncodeEnd(InputNumberSpinnerRenderer.java:378)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:543)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:315)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:150)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:519)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:281)
at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:368)
at org.richfaces.renderkit.html.ModalPanelRenderer.doEncodeChildren(ModalPanelRenderer.java:363)
at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:488)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:617)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:622)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:622)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1147)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:722)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:449)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1020)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:953)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1655)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1650).
web.xml
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>scadafrmwar</display-name>
<!-- ApplicationParameters -->
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>DEFAULT</param-value>
</context-param>
<context-param>
<param-name>ApplicationResources</param-name>
<param-value>scadafrmwarResources</param-value>
</context-param>
<context-param>
<param-name>CombineApplication</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>ApplicationGroupName</param-name>
<param-value />
</context-param>
<context-param>
<param-name>NavigationStyle</param-name>
<param-value>menu</param-value>
</context-param>
<context-param>
<param-name>HelpStyle</param-name>
<param-value>%context%/help/%language%/%help_id%.htm#%key%</param-value>
</context-param>
<context-param>
<param-name>SupportedLocales</param-name>
<param-value>en_GB,fi_FI</param-value>
</context-param>
<context-param>
<param-name>DefaultHelpId</param-name>
<param-value>sample_help_page</param-value>
</context-param>
<context-param>
<param-name>DefaultHelpKey</param-name>
<param-value />
</context-param>
<context-param>
<param-name>LoginScreenStyle</param-name>
<param-value>normal</param-value>
</context-param>
<context-param>
<param-name>EnableSecurity</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>TimeoutValue</param-name>
<param-value>0</param-value>
</context-param>
<context-param>
<param-name>
org.apache.myfaces.RESOURCE_VIRTUAL_PATH
</param-name>
<param-value>/faces/extensionResource</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>DEFAULT</param-value>
</context-param>
<context-param>
<param-name>net.sf.jsfcomp.chartcreator.USE_CHARTLET</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<context-param>
<param-name>
org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>ilog.views.faces.CONTROLLER_PATH</param-name>
<param-value>/_contr</param-value>
</context-param>
<!-- END:ApplicationParameters -->
<!-- Filters -->
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>FacesServlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<filter>
<filter-name>backButtonFilter</filter-name>
<filter-class>com.nsn.calypso.security.BackButtonFilter</filter-class>
</filter>
<filter>
<filter-name>localeFilter</filter-name>
<filter-class>
com.nsn.calypso.LocaleFilter
</filter-class>
</filter>
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>
com.opensymphony.module.sitemesh.filter.PageFilter
</filter-class>
</filter>
<!-- END:Filters -->
<!-- Filtermappings -->
<filter-mapping>
<filter-name>backButtonFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>localeFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- END:Filtermappings -->
<!-- Listeners -->
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<listener>
<listener-class>com.nsn.calypso.StartupListener</listener-class>
</listener>
<listener>
<listener-class>ilog.views.util.servlet.DeploymentLicenseRequired_for_IBM_ILOG_JViews_Diagrammer_Deployment</listener-class>
</listener>
<!-- END:Listeners -->
<!-- Servlets -->
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Controller</servlet-name>
<servlet-class>
ilog.views.faces.IlvFacesController
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>LocaleServlet</servlet-name>
<servlet-class>
com.nsn.calypso.servlets.LocaleServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ZoomServlet</servlet-name>
<servlet-class>com.nsn.calypso.graph.ZoomServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>LogonServlet</servlet-name>
<servlet-class>
com.nsn.calypso.servlets.LogonServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>LogoutServlet</servlet-name>
<servlet-class>
com.nsn.calypso.servlets.LogoutServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Chartlet</servlet-name>
<servlet-class>com.nsn.calypso.graph.GraphServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ResourceServlet</servlet-name>
<servlet-class>com.nsn.calypso.servlets.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>sessionTimeoutServlet</servlet-name>
<servlet-class>com.nsn.calypso.servlets.AjaxSessionTimeoutServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>customServlet</servlet-name>
<servlet-class>com.nsn.oss.scada.impl.CustomDiagrammerServlet</servlet-class>
</servlet>
<!-- END:Servlets -->
<!-- Servletmappings -->
<servlet-mapping>
<servlet-name>customServlet</servlet-name>
<url-pattern>/CustomServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>/_contr/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>/faces/rfRes/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>FacesServlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LocaleServlet</servlet-name>
<url-pattern>/LocaleServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ZoomServlet</servlet-name>
<url-pattern>/servlet/ZoomServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LogonServlet</servlet-name>
<url-pattern>/LogonServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>LogoutServlet</servlet-name>
<url-pattern>/LogoutServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Chartlet</servlet-name>
<url-pattern>*.chart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ResourceServlet</servlet-name>
<url-pattern>/webuif/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>sessionTimeoutServlet</servlet-name>
<url-pattern>/servlet/SessionTimeOutServlet</url-pattern>
</servlet-mapping>
<!-- END:Servletmappings -->
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
<!-- Securityconstraints -->
<security-constraint>
<web-resource-collection>
<web-resource-name>protected pages</web-resource-name>
<url-pattern>*.html</url-pattern>
<url-pattern>*.htm</url-pattern>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.jsf</url-pattern>
<url-pattern>*.xml</url-pattern>
<url-pattern>*.js</url-pattern>
<url-pattern>/CustomServlet</url-pattern>
<http-method>GET</http-method>
<http-method>PUT</http-method>
<http-method>HEAD</http-method>
<http-method>TRACE</http-method>
<http-method>POST</http-method>
<http-method>DELETE</http-method>
<http-method>OPTIONS</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>User</role-name>
</auth-constraint>
<!--<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>-->
</security-constraint>
<security-role>
<role-name>User</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>default</realm-name>
<form-login-config>
<form-login-page>/logon.jsp</form-login-page>
<form-error-page>/logonerror.jsp</form-error-page>
</form-login-config>
</login-config>
<!-- END:Securityconstraints -->
</web-app>
faces-config xml :
<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
<managed-bean>
<managed-bean-name>firstPageBean</managed-bean-name>
<managed-bean-class>com.nsn.oss.scada.beans.FirstPageBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>scadaLaunchBean</managed-bean-name>
<managed-bean-class>com.nsn.oss.scada.beans.ScadaLaunchBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>scadaMonitorBean</managed-bean-name>
<managed-bean-class>com.nsn.oss.scada.beans.ScadaMonitorBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/html/firstPage.xhtml</from-view-id>
<navigation-case>
<from-action>#{firstPageBean.verifyInputs}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/html/scadaMonitor.xhtml</to-view-id>
<redirect />
</navigation-case>
<navigation-case>
<from-action>#{firstPageBean.clearValues}</from-action>
<from-outcome>clear</from-outcome>
<to-view-id>/html/firstPage.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/html/siteDashBoardLaunch.xhtml</from-view-id>
<navigation-case>
<from-action>#{scadaLaunchBean.validateValues}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/html/scadaMonitor.xhtml</to-view-id>
<redirect />
</navigation-case>
<navigation-case>
<from-action>#{scadaLaunchBean.validateValues}</from-action>
<from-outcome>failure</from-outcome>
<to-view-id>/html/firstPage.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-11999) TabPanel - Tab - onheadermousedown - onheadermouseup - javascript error - item is undefined
by Jean ANDRE (JIRA)
Jean ANDRE created RF-11999:
-------------------------------
Summary: TabPanel - Tab - onheadermousedown - onheadermouseup - javascript error - item is undefined
Key: RF-11999
URL: https://issues.jboss.org/browse/RF-11999
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: RichFaces 4.2.0 CR1 - JSF/Mojorra 2.1.6 - FireFox 10 - Windows 7 - WAS 8.0.0.1 - Spring 3.0.6
Reporter: Jean ANDRE
On rich:tab we use the attribute "onheadermousedown" which a javascript function defined by a4j:jsFunction. When we switch tab, we got the following error:
{code}
item is undefined - Line 363
/**
* @private
* */
__getItemIndex : function (itemName) {
var item;
for (var i = 0; i < this.items.length; i++) {
item = this.items[i];
>>>>> if (!item.disabled && item.getName() === itemName) {
return i;
}
}
rf.log.info("TogglePanel.getItemIndex: item with name '" + itemName + "' not found");
return -1; },
{code}
The error may be linked to the RF-11763.
On rich:tab we use the attribute "onheadermousedown" which a javascript function defined by a4j:jsFunction. When we switch tab, we got the following error:
{code}
item is undefined - Line 363
/**
* @private
* */
__getItemIndex : function (itemName) {
var item;
for (var i = 0; i < this.items.length; i++) {
item = this.items[i];
>>>>> if (!item.disabled && item.getName() === itemName) {
return i;
}
}
rf.log.info("TogglePanel.getItemIndex: item with name '" + itemName + "' not found");
return -1; },
{code}
The error may be linked to the RF-11763.
XHTML fragment code
===================
<c:forEach items="#{desktopTabController.desktopTabBean.tabElements}" var="tab">
<rich:tab id="#{tab.id}" name="#{tab.id}" onheadermousedown="enterTab('#{tab.id}');">
<!-- -->
<!-- DYNAMIC TABS -->
<!-- -->
<f:facet name="header">
<h:panelGrid columns="2" title="#{desktopTabController.getTabHeader(tab.id)}">
<h:outputText value="#{desktopTabController.getAdjustedTabHeader(tab.id)}" />
<h:graphicImage value="/images/closeButton.png"
styleClass="closeButton"
onclick="closeTab('#{tab.id}');event.stopPropagation();" />
</h:panelGrid>
</f:facet>
<f:subview id="#{tab.id}-subView" rendered="#{tab.id eq desktopTabController.activeTab}">
<ui:include src="#{tab.xhtmlFile}" />
</f:subview>
</rich:tab>
</c:forEach>
<!-- -->
<!-- DESKTOP TABS -->
<!-- -->
<a4j:jsFunction name="enterTab" render="menu-opened-tabs">
<a4j:param name="activeTab" assignTo="#{desktopTabController.activeTab}" />
</a4j:jsFunction>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (RF-12001) Rich-DataTable: RenderPhaseDataScrollerVisitor swallows exceptions when thrown in isRendered
by Markus Staab (JIRA)
Markus Staab created RF-12001:
---------------------------------
Summary: Rich-DataTable: RenderPhaseDataScrollerVisitor swallows exceptions when thrown in isRendered
Key: RF-12001
URL: https://issues.jboss.org/browse/RF-12001
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.3.1
Environment: Liferay 5.2.4, Facelets, JSF 1.2
Reporter: Markus Staab
We implemented our own SerializableDataModel.
This datamodel throws an Exception in case the backend is not available or has some technical issues.
Our exception is swallowed by
org.richfaces.component.RenderPhaseDataScrollerVisitor.isRendered(List<UIComponent>).
Is there a reason why all exception are catched in this situation?
private static boolean isRendered(List<UIComponent> components) {
boolean rendered;
for (UIComponent component : components) {
rendered = false;
try {
rendered = component.isRendered();
} catch (Exception e) {
//ignore that
if (log.isDebugEnabled()) {
log.debug(e.getLocalizedMessage(), e);
}
}
if (!rendered) {
return false;
}
}
return true;
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months