myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: problem MyFacesGenericPortlet
Date Sat, 11 Nov 2006 19:19:47 GMT
is your app including the portlet-api jar?


On 11/11/06, Jose Merchan Bosch <jomer@alumni.uv.es> wrote:
> Hi,
>
> I'm trying to create a portlet with MyFaces simple example. I'm using
> MyFacesGenericPortlet and Pluto 1.1.0. This is my portlet.xml
>
> <portlet-app
>         xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
>         version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0xsd
> http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
>
> <portlet>
>         <description>Simple</description>
>         <portlet-name>Simple</portlet-name>
>         <display-name>Simple</display-name>
>
>         <portlet-class>
>            org.apache.myfaces.portlet.MyFacesGenericPortlet
>         </portlet-class>
>         <init-param>
>               <name>default-view</name>
>               <value>/home.jsp</value>
>         </init-param>
> </portlet>
> </portlet-app>
>
> I follow the instructions on: http://myfaces.apache.org/docs/portlet.html
>
> The application runs ok as a stand-alone servlet, but as a portlet I
> am getting an exception like this:
>
> Caused by: java.lang.ClassCastException:
> org.apache.myfaces.portlet.MyFacesGenericPortlet
>         at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:119)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
>         at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcherjava:641)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
>         at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
>         at org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
>
> Can anyone help me in resolving this exception...??
> Thanks
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message