myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Merchan Bosch"<jo...@alumni.uv.es>
Subject problem MyFacesGenericPortlet
Date Sat, 11 Nov 2006 13:52:18 GMT
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


Mime
View raw message