cghanassia
Oct 10th, 2007, 08:05 AM
Hello i have some trouble to deploy a spring portlet in liferay portal 4.3.2 on the Tomcat 6.0.13
I try the steps following :
1. I download an exemple of portlet : spring-portlet-sample.zip
2. I extract the war
3. I add :
<listener>
<listener-class>com.liferay.portal.kernel.servlet.PortalContextLis tener</listener-class>
</listener>
In web.xml
4. i add tow files : liferay-portlet.xml and liferay-display.xml
liferay-portlet.xml:
<liferay-portlet-app>
<portlet>
<portlet-name>helloworld</portlet-name>
<portlet-url-class>com.liferay.portlet.PortletURLImplWrapper</portlet-url-class>
</portlet>
....
</liferay-portlet-app>
liferay-display.xml:
<display>
<category name="my.test">
<portlet id="helloworkd"/>
</category>
</display>
4. I deploy the war in folder {tomcat_home}/webapps or {user_home}/liferay/deploy
When my portlet is deployed i have this error inside the portlet :
----------------------------------------------------------------------
Hello World
-----------------------------------------------------------------------
The requested resource (/spring-portlet-sample/helloworld/invoke) is not available.
-----------------------------------------------------------------------
I search very hard but i don't find a solution. I will be very happy if you get the solution.
Best Regards,
Cédric
I try the steps following :
1. I download an exemple of portlet : spring-portlet-sample.zip
2. I extract the war
3. I add :
<listener>
<listener-class>com.liferay.portal.kernel.servlet.PortalContextLis tener</listener-class>
</listener>
In web.xml
4. i add tow files : liferay-portlet.xml and liferay-display.xml
liferay-portlet.xml:
<liferay-portlet-app>
<portlet>
<portlet-name>helloworld</portlet-name>
<portlet-url-class>com.liferay.portlet.PortletURLImplWrapper</portlet-url-class>
</portlet>
....
</liferay-portlet-app>
liferay-display.xml:
<display>
<category name="my.test">
<portlet id="helloworkd"/>
</category>
</display>
4. I deploy the war in folder {tomcat_home}/webapps or {user_home}/liferay/deploy
When my portlet is deployed i have this error inside the portlet :
----------------------------------------------------------------------
Hello World
-----------------------------------------------------------------------
The requested resource (/spring-portlet-sample/helloworld/invoke) is not available.
-----------------------------------------------------------------------
I search very hard but i don't find a solution. I will be very happy if you get the solution.
Best Regards,
Cédric