Hi Raj,
Thanks for the response. Related files are attached.
Cheers,
Anish..
-----Original Message-----
From: Raj Saini [mailto:[EMAIL PROTECTED]
Sent: Friday, March 17, 2006 12:17 PM
To: Jetspeed Users List
Subject: Re: Cannot create instance of portlet
Gopalakrishanan,
Can you post your project.xml and portlet class file to know better
what could be wrong?
Regards,
Raj
On 3/17/06, GopalakrishnanNair, Anishkumar
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have successfully installed Jetspeed. I created a portlet and tried
> to deploy it on jetspeed. I have created the portlet.xml and a psml file for
> this portlet. And when i call that psml file from the browser it doesnt work.
> From the log file I found the error as "java.lang.ClassCastException:
> MyFirstPortlet at
> org.apache.jetspeed.factory.JetspeedPortletFactory.getPortletInstance(JetspeedPortletFactory.java:204)"
>
> The configuration for this portlet in portlet.xml is correct and also
> the psml file. I dont know whats going wrong? Anyone, please help me on this.
>
> Thanks and Regards,
> Anish..
>
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any attachment
> and all copies and inform the sender. Thank you.
>
> ---------------------------------------------------------------------
> 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]
<portlet-app version="1.0" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
>
<portlet>
<description xml:lang="en">First Portlet</description>
<portlet-name>MyFirstPortlet</portlet-name>
<display-name xml:lang="en">My first portlet</display-name>
<portlet-class>com.logicacmg.training.portlet.MyFirstPortlet</portlet-class>
<!-- <init-param>-->
<!-- <name>param1</name>-->
<!-- <value>value1</value>-->
<!-- </init-param>-->
<expiration-cache>60</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<!-- <resource-bundle>com.logicacmg.training.portlet.Messages</resource-bundle>-->
<portlet-info>
<title>MyFirstPortlet</title>
<short-title>MyFirstPortlet</short-title>
<keywords>MyFirstPortlet</keywords>
</portlet-info>
<!-- <portlet-preferences>-->
<!-- <preference>-->
<!-- <name>pref1</name>-->
<!-- <value>test</value>-->
<!-- </preference>-->
<!-- </portlet-preferences>-->
</portlet>
</portlet-app>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]