2 Replies Latest reply: May 13, 2011 3:26 AM by Basar Daldal RSS

Portlet Bridge breaks?

josef wagmann Newbie

Hello,
I use for the first time the jboss portletbridge 2.0.0 with the GateIn portlet server.

My litte portlet application breaks off with the following message:

 

[PortletViewHandler] Error rendering view by parent ViewHandler, try to render as portletbridge JSP page
java.lang.ClassCastException: org.gatein.pc.portlet.impl.jsr168.api.RenderRequestImpl cannot be cast to javax.servlet.ServletRequest

 

I think, i do not have all required jar files in WEB-INFO/lib. Is there a list of the requested jar files available?

 

 

Thanks for help

 

Greetings

 

Sepp

 

 

 

 

 

This are are my configuration files:

 

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_1_2.xsd"

    version="1.2">

    <application>

        <view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler>

        <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>

    </application>

</faces-config>

 

and portlet.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
    version="2.0">
    <portlet>
        <portlet-name>JSFHelloUserPortlet</portlet-name>
        <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
        <init-param>
            <name>javax.portlet.faces.defaultViewId.view</name>
            <value>index.jsf</value>
        </init-param>
        <init-param>
            <name>javax.portlet.faces.defaultViewId.edit</name>
            <value>index.jsf</value>
        </init-param>
        <init-param>
            <name>javax.portlet.faces.defaultViewId.help</name>
            <value>index.jsf</value>
        </init-param>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>view</portlet-mode>
            <portlet-mode>edit</portlet-mode>
            <portlet-mode>help</portlet-mode>
        </supports>
        <portlet-info>
            <title>JSF Hello User Portlet</title>
        </portlet-info>
    </portlet>
</portlet-app>