Foros de discusión

HELP! JS2 + RichFace 4 FINAL + Liferay 6 + PortletFaces Bridge 2.0

Leandro Concon, modificado hace 12 años.

HELP! JS2 + RichFace 4 FINAL + Liferay 6 + PortletFaces Bridge 2.0

New Member Mensajes: 3 Fecha de incorporación: 2/06/11 Mensajes recientes
Hey,

I'm having problem in working with "JS2 + RichFace 4 FINAL + Liferay 6 + PortletFaces Bridge 2.0", and generated the following error:

org.richfaces.context.SkinningExternalContextFactory $ ExternalContextWrapperImpl can not be cast to org.portletfaces.bridge.context.ExternalContextImpl

web.xml


<!--?xml version="1.0" encoding="UTF-8"?-->

<web-app 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" version="2.4">

	<!-- Instruct JBoss AS to look for the JSF implementation within the portlet 
		WAR. -->
	<context-param>
		<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
		<param-value>true</param-value>
	</context-param>
	<!-- Instruct Mojarra to utilize JBoss-EL instead of the EL implementation 
		provided by the servlet container. -->
	<context-param>
		<param-name>com.sun.faces.expressionFactory</param-name>
		<param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
	</context-param>

	<!-- RICHFACES -->

	<context-param>
		<param-name>org.richfaces.skin</param-name>
		<param-value>classic</param-value>
	</context-param>
	<context-param>
		<param-name>org.richfaces.fileUpload.maxRequestSize</param-name>
		<param-value>100000</param-value>
	</context-param>
	<context-param>
		<param-name>org.richfaces.fileUpload.createTempFiles</param-name>
		<param-value>false</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.PROJECT_STAGE</param-name>
		<param-value>Development</param-value>
	</context-param>
	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>server</param-value>
	</context-param>


	<!-- The following listener is required for deployment on JBoss AS. See 
		FACES-183 for more info. -->
	<listener>
		<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
	</listener>
	<!-- Although the FacesServlet will not be invoked by any portlet requests, 
		it is required to initialize JSF. -->
	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>/faces/*</url-pattern>
	</servlet-mapping>
	<!-- Setup the mail session so that it can be shared by the portlet WAR. -->
	<resource-ref>
		<res-ref-name>mail/MailSession</res-ref-name>
		<res-type>javax.mail.Session</res-type>
		<res-auth>Container</res-auth>
		<res-sharing-scope>Shareable</res-sharing-scope>
	</resource-ref>
	<!-- Prevent direct access to Facelet view XHTML by the userAgent (browser). -->
	<security-constraint>
		<web-resource-collection>
			<web-resource-name>Facelet View XHTML</web-resource-name>
			<url-pattern>*.xhtml</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>nobody</role-name>
		</auth-constraint>
	</security-constraint>
	<security-role>
		<role-name>nobody</role-name>
	</security-role>
	<jsp-config>
		<taglib>
			<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
			<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
		</taglib>
	</jsp-config>
</web-app>
thumbnail
Neil Griffin, modificado hace 12 años.

RE: HELP! JS2 + RichFace 4 FINAL + Liferay 6 + PortletFaces Bridge 2.0

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Did you happen to post the following issue in the Liferay JIRA issue tracker? http://issues.liferay.com/browse/LPS-17824

Is it the same issue?
Leandro Concon, modificado hace 12 años.

RE: HELP! JS2 + RichFace 4 FINAL + Liferay 6 + PortletFaces Bridge 2.0

New Member Mensajes: 3 Fecha de incorporación: 2/06/11 Mensajes recientes
Do not report error Jira (Liferay), is not the same error.
In my case I can not even show the fields in the portlet error occurs in the preview.
Do you have any examples using this API? I think there may be some configuration error in web.xml.


regards
Concon
thumbnail
Neil Griffin, modificado hace 11 años.

RE: HELP! JS2 + RichFace 4 FINAL + Liferay 6 + PortletFaces Bridge 2.0

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Concon,

I'm reviewing some old forum posts and I'm sorry that I missed getting back to you on this. When you get a chance, please take a look at the richfaces4-portlet demo. If you still run into a ClassCastException please let me know.

Kind Regards,

Neil