Hi Fred,

Did you use portals-bridges-jsf-1.0.jar file also?
I mean did you get it running by using jsf bridge support?

I have done it using that too.

Stan Silvert(JBoss group) says that there is built in portlet support in
myfaces for JSR 168. It means that you don't need jsf bridge for this.

I followed these steps as described in this link: 
http://mail-archives.apache.org/mod_mbox/myfaces-commits/200503.mbox/%3C
[EMAIL PROTECTED]

This was also presented in a recent myfaces presentation.

If you have followed this then could you send me a example of  this.

Thanks,
Sunil

-----Original Message-----
From: Frederico Andrade Ramos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 6:36 AM
To: 'Jetspeed Users List'
Subject: RES: FW: How to turn a JSF into a portlet



  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:[EMAIL PROTECTED] Em nome de Aaron Evans
Enviada em: quarta-feira, 18 de janeiro de 2006 12:28
Para: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to