I also just finished converting a JSF application into a Portlet. I did
not face any problem and it is working fine. In your WEB-INF/lib
directory, you should have only jsf implementation libraries (I use
apache myfaces) and any other dependencies for JSF libraries. You will
also need to have portal bridge library if it is not in some shared
location ($TOMCAT_HOME/shared for tomcat).
Regards,
Raj
Frederico Andrade Ramos wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]