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 Re: problem MyFacesGenericPortlet
Date Sat, 11 Nov 2006 20:26:27 GMT
Yes, thanks, i remove portlet-api jar from WEB-INF/lib and runs. But
now i'm getting an exception like this:

Caused by: javax.faces.FacesException: only absolute URLs or full path
URIs are allowed
	at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
	at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
	at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcherjava:672)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
	at
org.apache.pluto.internal.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:106)

> 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