Download JSF/RichFaces example to run in portal with JBoss Portal Bridge

Download examples from our Liferay demo of JSF/RichFaces applications using JBoss Portlet Bridge.

15 thoughts on “Download JSF/RichFaces example to run in portal with JBoss Portal Bridge

  1. Hi,

    thx for the portlet example but it doesn’t work in LR5.2.2.
    I get the following exception while deploying:

    09:31:58,467 INFO [PluginPackageUtil:1386] Finished checking for available updates in 22 ms
    09:32:09,720 WARN [SkinFactoryImpl:201] Init parameter for a skin name changed to org.richfaces.SKIN
    09:32:12,903 ERROR [InsertTag:922] ServletException in ‘/html/common/themes/portlet.jsp’: File "/welcome.jsf" not found
    javax.servlet.ServletException: File "/welcome.jsf" not found
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:319)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    And the following while running the portlet:

    09:35:50,622 ERROR [BaseXMLFilter:199] Exception in the filter chain
    javax.servlet.ServletException: viewId:/welcome.jsf – View /welcome.jsf could not be restored.
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

    Cheers
    Oliver
    P.S. I’m using the Tomcat bundle

  2. Hi,

    after I’ve restarted the Tomcat Server the welcome page is displayed but after I try to navigate to any link I get the following error (HTTP 500) with a blank page – any idea?

    javax.portlet.faces.BridgeUninitializedException: JSF Portlet bridge was not initialised before AJAX request
    org.jboss.portletbridge.context.ServletExternalContextImpl.(ServletExternalContextImpl.java:100)
    org.jboss.portletbridge.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:164)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:260)
    org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
    org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
    org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

    Thx & Cheers
    Oliver

  3. We are running into the same problem with stand alone Tomcat. Not sure where the source of the problem yet. It definitely works with JBoss AS or WebLogic.

  4. Which version of JBoss do you use? Did you use a new example portlet or still the same version, when it worked?
    Thx
    Oliver

  5. Which problem? There are two different problems in the comments. It would also help if you can send the exact error, log file, etc.

  6. Any one has found out a solution for this issue?We are using Rich faces 2.0 and Portlet bridge on top of JBOSS portal 4.3.0 using JSR 286 stndrds.We are facing the same error of ” jsf portlet bridge not initialized before Ajax request”

  7. Sorry for the confusion max…We are using Jboss portal 4.3.0,JSF 1.2 ,Richfaces with Facelets along with Spring 2.0 when we try deploying the app and accesing the app we are facing the error “JSF portlet bridge not initialized before Ajax request”

  8. @Kartheek: your best option is to post this question on the forum. It’s a pretty general error, they will ask you for more information such as configuration, etc .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s