-
1. Re: richfaces + websphere 7 problem
ilya_shaikovsky Aug 5, 2009 7:00 AM (in response to uterr)
meanwhile, richfaces-demo-3.3.1.GA.war sample runs fine on WAS 7 (and on tomcat 6 whith minor changes)
So, explore what are the difference between applications ? dependencies? web.xml? -
2. Re: richfaces + websphere 7 problem
uterr Aug 5, 2009 7:06 AM (in response to uterr)richfaces-demo-3.3.1.GA.war uses seam, ant, hibernate, (and cannot be compared in direct way)
which we dont want to use in our application, structure of this applications pretty different
or richfaces demands some of these to run on WAS7? -
3. Re: richfaces + websphere 7 problem
ilya_shaikovsky Aug 5, 2009 7:10 AM (in response to uterr)nothing special was done in order to run it on WAS7
-
4. Re: richfaces + websphere 7 problem
uterr Aug 5, 2009 7:26 AM (in response to uterr)we have most basic application, and have no idea, what can be done for now..
mabe web.xml contains problem?
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>test</display-name>
<welcome-file-list>
<welcome-file>/index.xhtml</welcome-file>
</welcome-file-list>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
</web-app>
and our index.jsp:
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<f:view>
<rich:calendar></rich:calendar>
</f:view>
above that there are nothing except standard dynamic web application based on JSF 1.2 -
5. Re: richfaces + websphere 7 problem
uterr Aug 5, 2009 12:20 PM (in response to uterr)Hi again, we dont know why, but changing
from
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
to
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
helped us
but now we got another problem.. in runtime on WAS we get
Error 500: javax.el.ELException: Function 'rich:clientId' not found
:( -
6. Re: richfaces + websphere 7 problem
ilya_shaikovsky Aug 6, 2009 4:33 AM (in response to uterr)remove duplicated org.ajax4jsf.Filter definition.
and seems the problem in missing some el- dependencies.. -
7. Re: richfaces + websphere 7 problem
uterr Aug 6, 2009 7:59 AM (in response to uterr)thanx, we deleted org.ajax4jsf.Filter duplication and added el-api-1.0.jar and el-impl-1.0.jar, but still "'rich:clientId' not found" appears
what el-dependencies we may be missing? -
8. Re: richfaces + websphere 7 problem
sam_pc1611 Mar 26, 2010 8:24 PM (in response to uterr)hi band, i have a problem runing richfaces 3.3.2 SR1 on was 7.0.0.7
my code is
<a4j:outputPanel id="pnlBroker" rendered="#{ExistBean.existBroker}" >
<h:selectOneMenu id="cboListBroker" value="#{ClientBean.broker}">
<f:selectItem itemLabel="Selecciona un broker"></f:selectItem>
<f:selectItems id="itmBroker" value="#{BrokerList.brokerList}"></f:selectItems>
<a4j:support event="onchange" action="#{ClientBean.updateProd}" reRender="pnlProduct"/>
</h:selectOneMenu>
</a4j:outputPanel><a4j:outputPanel id="pnlProduct" >
<h:selectOneMenu id="cboListProd" value="#{ClientBean.product}">
<f:selectItem itemLabel="Selecciona un producto"></f:selectItem>
<f:selectItems value="#{ProductList.productList}"></f:selectItems>
</h:selectOneMenu>
</a4j:outputPanel>when the action ClientBean.updateProd is called all is ok but when intent back the reRender pnlProduct doesnt work, because dont actualize the component with the id = pnlProduct
the trace:
[26/03/10 17:27:23:781 CST] 00000018 AjaxContext W org.ajax4jsf.context.AjaxContextImpl convertId Target component for id pnlProduct not found
thx so much
-
10. Re: richfaces + websphere 7 problem
ramram888 Jan 13, 2011 2:51 AM (in response to uterr)Hi All,
I have similar problem to the posted one. on Websphere 7 the application runs well on JBOSS and Tomcat. Any Ideas what might be causing it???
Error 500: javax.el.ELException: Function 'rich:component' not found
Regards,
Ram
-
11. Re: richfaces + websphere 7 problem
ilya40umov Jan 13, 2011 3:50 AM (in response to ramram888)Take a look at http://community.jboss.org/message/516153 because I guess that your problem is in JSF implementation.
P.S. The better way to post your problem is a creating of a new question on this forum with some links to related discussions. Because it can actually be not the same.
-
12. Re: richfaces + websphere 7 problem
ramram888 Jan 13, 2011 5:31 AM (in response to ilya40umov)Hi Again,
I have checked the URL u posted and yes this will fix the rich:component issue but will generate another error
Error 500: javax.el.ELException: Function 'rich:element' not found.
since i am using also "<rich:hotKey key="return" handler="#{rich:element('hideLangPanellId')}.click()" />"
I think it is related to el-jars compatibility with Websphere!! any help on this ???
Regards,
Ram
-
13. Re: richfaces + websphere 7 problem
ilya40umov Jan 13, 2011 6:24 AM (in response to ramram888)1) You can try to avoid any usages of rich:element in your app. Using of jsFunction can help you to perform the same as clicking on hideLangPanellId.
2) You can try to use some other JSF impl with EL impl instead of using WebSphere's. Is it an appropriate solution?
-
14. Re: richfaces + websphere 7 problem
ramram888 Jan 13, 2011 6:39 AM (in response to ilya40umov)I think I will go with the second advise.
But I faced many excpetions when trying to put the el-api.jar in the class path I had this exception
Class 'org.richfaces.component.ClonedObjectResolver' is not an instance of 'class javax.el.ELResolver'
If I added the jsf-impl.jar and jsf-api.jar another exception appears
java.lang.VerifyError: javax/servlet/jsp/JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V
What do u think??? how can this be fixed ???
What is the jars that must be places and compatible with WAS 7.0 jars that will make the application function normally as it does on the JBOSS and TOMCAT?