portals-jetspeed-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederico Andrade Ramos" <frederico.ra...@auster.com.br>
Subject RES: FW: How to turn a JSF into a portlet
Date Wed, 18 Jan 2006 14:36:17 GMT


  Hi,

  I started in J2 a few weeks ago, and was having a very similar
problem. 

  I built the "simplest-portlet" example and it was broking with a
ClassCastException. But that was because I was bundling the
servlet/portlet api jars in the WEB/lib dir. After I removed these files
my portlet example worked just fine.

  
  Frederico.

____________________________________________

Frederico Andrade Ramos 
Auster Solutions do Brasil 
Office: +55.11.5096.2277 
Mobile: +55.11.9141.0712 
www.auster.com.br 


-----Mensagem original-----
De: news [mailto:news@sea.gmane.org] Em nome de Aaron Evans
Enviada em: quarta-feira, 18 de janeiro de 2006 12:28
Para: jetspeed-user@jakarta.apache.org
Assunto: Re: FW: How to turn a JSF into a portlet


Tiwari, Sunil  Kumar <c_stiwar <at> qualcomm.com> writes:

> 
> I tried it again with a simpler web application. I converted 
> "blank.war" (it is part of myfaces-examples downloaded from apache 
> site) into a portlet but still getting the same error while adding it 
> to a page.
> 
> The stack trace in jetspeed.log file is as follow:
> 
> 2006-01-17 12:53:57,226 [http-8080-Processor23] DEBUG 
> org.apache.jetspeed.aggregator.impl.PageAggregatorImpl - Rendering 
> portlet fragment: [[name, blank::blank], [id, P-108da253283-10000]] 
> 2006-01-17 12:53:57,226 [http-8080-Processor23] DEBUG 
> org.apache.jetspeed.aggregator.impl.RenderingJobImpl - Rendering OID 
> P-108da253283-10000 
> org.apache.jetspeed.engine.servlet.ServletRequestImpl <at> 1eec0c5 
> org.apache.jetspeed.aggregator.impl.HttpBufferedResponse <at> 1b1dd12 
> 2006-01-17 12:53:57,246 [http-8080-Processor23] ERROR 
> org.apache.jetspeed.factory.JetspeedPortletFactory - Cannot create 
> Portlet instance org.apache.myfaces.portlet.MyFacesGenericPortlet for 
> Portlet Application blank java.lang.ClassCastException
> 	at
>
org.apache.jetspeed.factory.JetspeedPortletFactory.getPortletInstance(Je
> tspeedPortletFactory.java:204)
> 
> The MyFacesGenericPortlet.class is in /WEB_INF/lib/myfaces-impl.jar. I

> put it in common/lib also.
> 

Sunil,
I played around with JSF, myfaces and jetspeed 2 way back in September.
I
*think* I recall running into some classpath issues with different JSF
implementations.  

Make sure that you haven't mixed the Sun JSF and MyFaces implementations

somehow...


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org



Mime
View raw message